/
MARC-to-Instance mapping rules update instructions (Orchid)

MARC-to-Instance mapping rules update instructions (Orchid)

NOTE!!! This script would overwrite contributors.contributorTypeId rule and

delete  contributors.contributorTypeId rule, be careful if you have any custom rules for those targets - relevant for Orchid release

FOLIO-3754 - Getting issue details... STATUS

Overview

Scripts were created to adjust mandatory MARC-to-instance mapping rules updates for the Orchid release (relator term updates and authority control updates)

If existing mapping rules have incorrect structure, the script will not update the rules and will specify field with an incorrect rule in the logs 

Note that this script does NOT update existing Inventory Instances based on the updated mapping rules. The revised rules will only apply to Source = MARC Instances that are created or updated after the mapping changes are made. To refresh all existing instances against the updated rules, libraries will need to run a separate script. This refresh script will take a long time if the library has many instances. 

Script execution

Script executable for ORCHIDfolio-mapping-rules-update-orchid.jar

java -jar folio-mapping-rules-update-orchid.jar configuration.json

In order to run the script, you need the following:

  1. Create JSON file with configuration (see: configuration file)
  2. Open terminal (Mac OS or UNIX Systems) or Power shell (Windows) 
  3. Go to the folder where the script is located.
  4. Run Script with configuration file path parameter (just file name if the script is located in the same folder)
     • example of an executed script - java -jar folio-mapping-rules-update-orchid.jar configuration.json (Should be executed with java 17)

Configuration File

  • okapiUrl          - your library okapi url. (Can be seen in the app settings → software versions → okapi services → okapi)
  • tenant             - admin tenant
  • username        - admin user name
  • password        - admin user name password

Example:

Json
{
  "okapiUrl": "https://folio-snapshot-okapi.dev.folio.org",
  "tenant": "diku",
  "username": "diku_admin",
  "password": "admin"
}

Related content

Script to update mapping rules with required condition for specified fields
Script to update mapping rules with required condition for specified fields
More like this
MODDATAIMP-567: Script to refresh Instances against an updated MARC Bib-to-Inventory Instance map
MODDATAIMP-567: Script to refresh Instances against an updated MARC Bib-to-Inventory Instance map
Read with this
Update of mapping rules for the 050, 060, 082, 090 fields to adjust mapping for the classification field
Update of mapping rules for the 050, 060, 082, 090 fields to adjust mapping for the classification field
More like this
Update of mapping to correct handling of repeated classification fields and subfields
Update of mapping to correct handling of repeated classification fields and subfields
Read with this
Script to detect customizations in the marc-to-instance mapping rules for the "classifications" and "contributors" fields
Script to detect customizations in the marc-to-instance mapping rules for the "classifications" and "contributors" fields
More like this
Marc Authorities update instructions
Marc Authorities update instructions
More like this