Test Environment
- Operating System: MacOS 10.12.2
- Java Version: Oracle Java 1.8.0_60
- Integrated With: Plum, see branch grocer and Grocer (Rails engine for exporting content from Hydra using the import/export utility)
Composition of Resources
- Small-scale testing with a handful of resources. Each resource consists of:
- A pcdm:Object with a members container, with proxies linking to 1-5 FileSets
- Each FileSet contains a files container, with a TIFF image and a JP2 image
- The files are stored outside of Fedora and linked to using External Content
Initialization
Start Rails, Solr and Fedora using the Rake task:
bundle exec rake hydra:server
Resulting java command:
java -Dfcrepo.log.http.api=WARN -Dfcrepo.log.kernel=ERROR \ -Dfcrepo.home=tmp/fcrepo4-development-data \ -Dfcrepo.spring.jms.configuration=file:///.../spring-noop.xml \ -jar .../fcrepo-webapp-4.7.0-jetty-console.jar \ -Xmx512m --headless --port 8984
Create resources using Plum, attaching and ordering files.
- Download 0.1.0 import/export jar
- Create the directory
plum/tmp/export
and put export.jar in that directory.
- Create the directory
- Create sample Bag metadata config file:
Create the file
plum/tmp/export/metadata.yml
:bag-info.txt: Source-Organization: Princeton University Library Organization-Address: One Washington Road, Princeton, NJ 08544-2098 USA Contact-Name: Esme Cowles Contact-Phone: +16092581470 Contact-Email: escowles@princeton.edu
Test 0 - Initial Export
Advance an object into the Metadata Review workflow state, and the object should be exported by a background job.
Test 0 Conclusions
- Metadata was exported, but external content was not retrieved.
- I updated the import-export utility to have an option to retrieve external content instead of creating placeholders for it (see https://github.com/fcrepo4-labs/fcrepo-import-export/pull/74).
Test 1 - Export With External Content
- Repeated Test 0, using an
export.jar
file built from the master branch after #74 was merged.
Test 1 Conclusions
- Metadata and external content were both exported.