Skip to content
This repository was archived by the owner on Dec 4, 2019. It is now read-only.

Table Schemas

Mark Allen Matney, Jr edited this page Aug 14, 2017 · 9 revisions

rs_oaipmh_src.py

In order to use the multi sub-command, add a row for each collection to the template rs_oaipmh_src_collections.csv. For a description of what should go in each field, see the "positional arguments" and "optional arguments" sections of the following command's output:

python3 rs_oaipmh_src.py multi --help

Also, note the following:

  • resource-dir, metadata-dir, and no-set-param are optional (you may leave these fields blank in order to use the defaults)
  • anything can go in the no-set-param field (a blank field is interpreted as false, and a non-blank field as true)

rs_oaipmh_dest.py

In order to use the destination-side wrapper script, a local TinyDB instance should be created, with rows following this schema:

field name type description
collection_key string unique identifier for the set of resources (collection)
institution_key string unique identifier for the institution
resourcelist_url string URL of the collection's ResourceList (or ResourceListIndex)
changelist_url string URL of the collection's Changelist (or ChangeListIndex)
url_map_from string portion of each resource's URL that should be mapped to a local filesystem path
file_path_map_to string local filesystem path where each resource will be put upon synchronization
new boolean whether or not a baseline synchronization has been performed on the collection
Clone this wiki locally