...
Ensure your unix environment has jq and pip installed
Now we need cvskit installed, so run the command “pip
pip install
csvkit”csvkit
Clone the git repository git@gitlab.com:knowledge-integration/libraries/implementations/mobius.git
Change directory to scripts
Now run the command “
./processSites.sh -
h”h
The
-h
option gives you help, it is informing you of what options you can supply it and if the option takes a parameter. I will not list here the options offered by the script here as you will be confused if this says one thing and the script says another, what the script reports will always be corrrectcorrect, so it would be the case, ignore what you read here as it will probably be out of date.When you have supplied a legitimate command line you will prompted to confirm what you have entered before it executes the script,
if you are happy press
y
otherwise press any other key, a <carriage return> is not required as it just takes the first keystroke. Note: If a site that the script is being run against has a number of mappings, then the script may take a while to run through the number of calls being made to the DCB service.
Any output is sent to the logs directory and is begins with the site directory name, hopefully any errors will be easy to spot.
If the
-i
flag was specified to enable ingest, then ingest should start happening not long after the start of processing the site (normally within 2 minutes).If the
-t
option was specified then the output from patron authentication is in the file called <SITE NAME>_test.log, there are 2 tests performed using the patron details contained in test-data.shValidates that the patron is valid
Authenticates the patron
When you have finished running your scripts perform a commit / push back to the repository, for if . If you are running against any non local environment then this will be recorded in the site directory file
executed.csv
, this is so we have a record of what has been run where.
...