This repository contains Ruby scripts to facilitate reparative archival description in ArchivesSpace.
Currently there is just one script, which takes a text file containing terms (one per line) and finds those terms in notes included in ArchivesSpace records. It generates a CSV file listing those records and the note content so that they can be reviewed and updated if needed.
-
Make sure you have Ruby installed.
-
Install the bundler gem with
gem install bundler
-
Make a copy of
as_config_production_default.rb
and save it asas_config_production.rb
-
Modify the following lines in that file:
a.
@username = 'YOUR USER NAME'
- change to your ArchivesSpace user nameb.
@password = 'YOUR PASSWORD'
- change to your ArchivesSpace password -
Install the dependencies with:
bundle install
-
Run the script:
ruby find_terms_in_notes.rb
This should search notes fields for all terms included in search_terms.txt
and generate a report (in csv
)