This code demonstrates one potential mapping of METS and EAD to an intermediate JSON format to be used as input for the finding aid viewer in ExploreUK as developed by people at the University of Kentucky Libraries (UKL).
Overview of METS, EAD, and the mapping to JSON
Once installed, run within working directory with bundle exec ruby exe/process-mets-ead
.
Options:
-e, --environment=<s> Environment (prod or test) (default: test)
-i, --id=<s> Document to process (leave blank to process all)
-l, --log=<s> Error log
-h, --help Show this message
Prerequisites:
- Ruby
- Bundler
Procedure:
- Check out a copy of the code, or
git pull
it up to date. - Run
bundle install
. - Copy
config/config.yml.example
toconfig/config.yml
and edit to match local conditions. Theprod
andtest
sections refer to production and test ExploreUK and have consequences for some of the links in the output.search_url_prefix
: for production ExploreUK, this ishttps://exploreuk.uky.edu
, althoughhttps://exploreuk.uky.edu/catalog
will also work.dip_url_prefix
: for production ExploreUK, this ishttps://exploreuk.uky.edu/dips
.dip_root
: (input) where is the Pairtree root for the web content storage node ("DIP store")?id_list
: where can a list of identifiers for finding aid objects be found?json_root
: (output) where is the Pairtree root for the JSON intermediate output storage node?
This package is primarily intended for use by UKL employees. We license it under the MIT license. See LICENSE.txt for details.
This was originally written by MLE Slone.