How do I change the location on a set of records and add $$k location?
Answer
To update the location and add subfield $$k on a set of records:
- Step 1: Create a Local Normalization Rule
- Step 2: Create a Normalization Process
- Step 3: Run the "Change Holding Information" Job
- Other $$k Norm Rules
STEP 1: Create a Local Normalization Rule
- Open the MD Editor
- Make sure the "Placement of new rules" is set to local
- Click New>Placement Options
- Click on the Rules tab
- Click New>Normalization Rules
- Write the rule below:
rule "replace 852|c and add |k to holdings record"
when
(TRUE)
then
replaceContents "852.c.*" with "[location]"
addSubField "852.k.[location]"
end
*a normalization rule would need to be created for each location. Replace [location] with the location code and replace 852.k.[location] with the $$k the location - Click Save
- Test the rule on an existing holdings record. Edit the rule if necessary
- Click X to close the rule in the main pane of the MD Editor
NOTE: Always test normalization rules to make sure the rule works as expect before applying the normalization rule to a set of records.
STEP 2: Create a Normalization Process:
- Go to Configuration>Resources>Cataloging>Metadata Configuration
- Click on MARC21 Holding under active profiles
- Click on the Normalization Process tab
- Click Add Process
- Name the process and add a description
- The name is how you will find the normalization rule to apply it to the the IZ integration and import profiles
- Click Next
- Click Add Tasks
- Click on the Marc Drools Normalization check box
- Click Add and Close
- Click Next
- Select the Drools File Key for the local Normalization Rule
- Click Save
STEP 3: Run the "Change Holding Information" Job
- Create a Physical Titles set in Alma
- Go to Admin>Manage Jobs and Set>Run a Jon
- Search by name for: "Change Holding Information"
- Click on the radio button next to the "Change Holding Information" job
- Click Next
- Click on the radio button next to the physical items set
- Click Next
- Run a Job - Enter Task Parameters screen opens
- Click in the check box next to "Correct data using normalization rule"
- Select the normalization rule from the drop-down menu
- Click Next
- Review the job
- Click Submit
- Click Confirm when the Confirmation Message appears
Normalization Rules for other $$k scenarios:
Add $$k only:
rule "add 852|k"
when
not exists "852.k"
then
addSubField "852.k.PACAF"
end
Remove $$k:
rule "add 852|k"
when
exists "852.k"
then
removeSubField "852.k"
end