Bayou City DAMS digital collections migration utilities
This script creates lists of unique CONTENTdm values for each of the elements defined in a crosswalk config file. Each value is checked against the University of Houston Libraries Vocabularies. If an exact match is found, then the ARK identifier for that vocabulary term is recorded in the report for that element.
In a command prompt, enter a CDM collection alias, crosswalk file name from the 'dmwg' directory, and your name as shown in your O: drive config file.
Example: ruby element_list.rb p15195coll38 p15195coll38_crosswalk andy
- Before running
element_list.rb
, pull any recent changes to the DMWG repository. - If necessary, create a new project folder in the DMWG repository for the CONTENTdm collection.
- Run
element_list.rb
with the instructions above. - Commit reports to the DMWG repository to share with the metadata team if desired.
This script creates reports for the BCDAMS-MAP Migration site: https://vocab.lib.uh.edu/bcdams-map/migration
In a command prompt, enter a CDM collection alias, crosswalk file name from the 'dmwg' directory, and your name as shown in your O: drive config file.
Example: ruby migration_report.rb p15195coll38 p15195coll38_crosswalk andy
- Before running
migration_report.rb
, pull any recent changes to the BCDAMS-MAP repository. - Run
migration_report.rb
with the instructions above. - If desired, edit the new report link
label:
inbcdams-map/_data/migration.yml
. - After running
migration_report.rb
and making edits to the reportlabel:
, push the changes to the BCDAMS-MAP repository. Results will be immediately available here: https://uhlibraries-digital.github.io/bcdams-map/migration/ - The changes to BCDAMS-MAP will be available here on the following day: https://vocab.lib.uh.edu/bcdams-map/migration
The output of these scripts depends on a valid metadata crosswalk config file in the dmwg repository. The crosswalk config must be nested in the project folder for a CONTENTdm collection. Each element from the BCDAMS-MAP should be followed with a list of CONTENTdm field labels, as shown below.
Example Config: crosswalk_controlled_vocab.yml
creator:
- Creator (LCNAF)
- Creator (HOT)
- Creator (ULAN)
- Creator (Local)
publisher:
- Publisher
subject:
- Subject.Topical (LCSH)
- Subject.Topical (TGM-1)
- Subject.Topical (AAT)
- Subject.Topical (SAA)
- Subject.Topical (Local)
- Subject.Name (LCNAF)
- Subject.Name (HOT)
- Subject.Name (ULAN)
- Subject.Name (Local)
In order to run these scripts, you must have a valid personal config file in the following folder: O:\Metadata and Digitization Services\Metadata\Migration\config
Example Config: andy.yml
dmwg: 'M:\Software\dmwg'
map: 'M:\Software\bcdams-map'
items:
dmwg:
points to the location of your local dmwg repository clone.map:
points to the location of your local bcdams-map repository clone.items:
identifies the CDM numbers for a collection subset in the following format:[363,350,358]
. This must be left blank (shown in the Example Config) if the report should include all items in a collection.