-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
We need to work on importing data from the old production site for the gallery feature to be fully complete. To do that, we need to do the following:
- Create Drupal views on the old site which export the data we need (partially complete: http://drupal.streamwebs.org/admin/build/views/edit/gallery_csv)
- Add CSV new files to
csvs
directory - Add files to pull to
data_scripts/pull-files.sh
using wget - Create a
data_scripts/get_gallery_images.py
(and similar scripts for the other file types) which imports the files into the data model. You can look atdata_scripts/get_site_images.py
as an example of how this is done - Add the python scripts to the end of
data_scripts/get_all.sh
after./get_site_images.py
CSV Exports
The CSV exports are split into two types of Drupal Views:
- metadata view
- URL to gallery file
There are also currently two types of exports, one for images and another for files. Specifically, you can use the following urls for the data:
- files metadata: http://drupal.streamwebs.org/gallery_csv/files.csv
- files urls: http://drupal.streamwebs.org/gallery_csv/files
- images metadata: http://drupal.streamwebs.org/gallery_csv/images.csv
- images url: http://drupal.streamwebs.org/gallery_csv/images