A Drush script that can be used to bulk export datastreams given a Solr query.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
CONTRIBUTING.md
LICENSE.txt
README.md
islandora_datastream_exporter.drush.inc
islandora_datastream_exporter.info
islandora_datastream_exporter.module

README.md

Islandora Datastream Exporter

Introduction

This module provides a Drush script that can be used to bulk export datastreams given a Solr query.

Requirements

This module requires the following modules/libraries:

Installation

Install as usual, see this for further information.

Troubleshooting/Issues

Having problems or solved a problem? Check out the Islandora google groups for a solution.

Usage

Output of 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" or 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.

Maintainers/Sponsors

Current maintainers:

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.

Development

If you would like to contribute to this module, please check out our helpful Documentation for Developers info, as well as our Developers section on the Islandora.ca site.

License

GPLv3