This repository was archived by the owner on Dec 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Table Schemas
Mark Allen Matney, Jr edited this page Jul 26, 2018
·
9 revisions
In order to use the multi sub-command, add a row for each collection to the template source_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 source.py single --helpAlso, note the following:
-
resource-dir,metadata-dir, andno-set-paramare optional (you may leave these fields blank in order to use the defaults) - anything can go in the
no-set-paramfield (a blank field is interpreted asfalse, and a non-blank field astrue)
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) |
collection_name |
string | human-readable name for the set of resources (collection) |
institution_key |
string | unique identifier for the institution |
institution_name |
string | human-readable name for the institution |
resourcelist_uri |
string | URL of the collection's ResourceList (or ResourceListIndex) |
changelist_uri |
string | URL of the collection's Changelist (or ChangeListIndex) |
url_map_from |
string | the part of a resource's URL to cut off in order to obtain the resource's name, which will become its local filename |
file_path_map_to |
string | base directory on the local filesystem for synchronized files, relative to the user's home directory; will contain directories for each institution containing directories for each collection |
new |
boolean | whether or not a baseline synchronization has yet been performed on the collection |