Islandora Datastream Exporter
This module provides a Drush script that can be used to bulk export datastreams given a Solr query.
This module requires the following modules/libraries:
Install as usual, see this for further information.
Having problems or solved a problem? Check out the Islandora google groups for a solution.
drush islandora_datastream_export --help:
Exports a specified datastream from all objects given a fielded Solr query. Examples: drush -u 1 islandora_datastream_export Exporting datastream from object. --export_target=/tmp --query=PID:\"islandora:9\" --dsid=DC Options: --dsid The datastream id of to be exported datastream. Required. --query The Solr query to be ran. Required. --export_target The directory to export the datastreams to. Required.
It's to be noted that when specifying a value that some values will need to be
escaped as the value is passed directly to Solr. An example of this is for the
PID field where
islandora:test will not work, while
islandora\:test will. For queries taking advantage of Lucene syntax all parts
of the query string must be provided as escaped. Boolean logic is allowed.
Finally the user option (-u) needs to be specified or errors could be encountered when attempting to write the contents of the datastream to a file.
This project has been sponsored by:
- University of Saskatchewan The University of Saskatchewan is a Canadian public research university, founded in 1907, and located on the east side of the South Saskatchewan River in Saskatoon, Saskatchewan, Canada.