ualbertalib / digitization_script

Ruby version of the peel-scripts to ingest and process digitization materials.
0 stars 0 forks source link

Peel-Ingest-Script with Ruby

This is a script written in Ruby to handle the ingest of digitized objects to OpenStack Swift.

Available Variables:

Usage

In order to use the script, the workstation running the script need to have ruby installed, and run

bundle install

to install all the necessary ruby gems. And database.yml.template and properties.yml.template need to be updated with valid access information

To ingest newspaper:

ruby ingest.rb -t newspaper -d /The_drive/ShipmentSample/ -p LEM -delivery westcan-frenews -drive 2648 -l deliveries/westcan-lem.xml

To ingest peelbib:

ruby ingest.rb -t peelbib -d /The_drive/ShipmentSample/ -drive 8093 -l deliveries/shipmentSample.xml -delivery bkstg0036

To-Do

To track shipping list

This is script that check the status of items listed in the shipping list. The reports includes:

  1. missing objects: report any object that is missing from the tracking database for each shipping list. insert missing objects into the tracking database with digstatus as shipped.
  2. mounted: For objects that are already in the tracking database,it includes all objects that have a digstatus:mounted.
  3. not_in_openstack: For objects that are already in the tracking database, it includes objects that don't have a noid number.
  4. parent: reports include all objects which is a parent of a book series.
  5. mods_record: include the mods records status, version information of all objects who should have a mod reocords. (series parent, single items).

Usage:

  1. install surporting gem like: gem install spreadsheet
  2. To generate the first three reports ruby tracking.rb -f PATH_TO_FILE
  3. To generate the last two reports ruby records.rb -f PATH_TO_FILE