Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

After registering member libraries with dcb-service:

The following details are required

  1. Register Host LMS definitions

  2. Register Agencies

  3. Import mappings

    1. Local Item Type to Canonical Item Type

    2. Canonical Item Type to Local Item Type

    3. Local Patron Type to Spine

    4. Spine to Local Patron Type

    5. Flattened Location

To ensure the above details are loaded consistently between different environments, the details can be setup in tab separated, json or for some folio data in spreadsheets

So for processing the scripts for 1 or more sites

  1. Ensure your unix environment has jq and pip installed

  2. Now we need cvskit installed, so run the command “pip install csvkit”

  3. Clone the git repository git@gitlab.com:knowledge-integration/libraries/implementations/mobius.git

  4. Change directory to scripts

  5. Now run the command “./processSites.sh -h”

  6. 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 corrrect, so it would be the case, ignore what you read here as it will probably be out of date.

  7. 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.

  8. Any output is sent to the logs directory and is begins with the site directory name, hopefully any errors will be easy to spot.

  9. 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).

  10. 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.sh

    1. Validates that the patron is valid

    2. Authenticates the patron