I need to add $$c Gift to local extension MARC 597 and reorder the subfields. How can I do this with a normalization (norm) rule?

Answer

Subfields can be added and reordered using norm rules in Alma. The following norm rule actions can be used to in the following order:

  1. addSubField
  2. moveSubfieldsToEndOfField


To add $$c Gift to local extension MARC 597 and reorder the subfields as $$c $$a $$d $$9, use one of the following rules:


Option 1: Not Exists "597.c.Gift"

rule "597|c|Gift"
when
not exists "597.c.Gift"
then
addSubfield "597.c.Gift"
moveSubfieldsToEndOfField "597" "c,a,d,9"
end


Option 2: exists "597" AND not exists "597.c.Gift"

rule "597|c|Gift"
when
exists "597" AND not exists "597.c.Gift"
then
addSubfield "597.c.Gift"
moveSubfieldsToEndOfField "597" "c,a,d,9"
end

 

Option 3: exists "597" with "if" statements in the actions:

rule "597|c|Gift"
when
exists "597"
then
addSubfield "597.c.Gift" if(not exists "597.c.Gift")
moveSubfieldsToEndOfField "597" "c,a,d,9"
end

  • Last Updated Aug 29, 2024
  • Views 70
  • Answered By Margaret McGee

FAQ Actions

Was this helpful? 1 0
https://sunyolis.libanswers.com/faq/342025
sunyolis.libanswers.com
CC-MAIN-2024-38
20880
application/http; msgtype=response
sha1:4SQIZXG6W3WF54INU3A4KU2D6FKT7ZBC
<urn:uuid:09c9bb31-cb5d-4190-b872-048e8bcbfe90>
2024-09-18T01:17:01Z
52.55.227.221
text/html
sha1:2XQ4WK4N25T76SMTVZHFC5S2DF5HRSHS
<urn:uuid:4945c8fe-adad-4f78-98df-0fe6f9f3b914>
https://sunyolis.libanswers.com/faq/342025
response
<urn:uuid:e73353f1-e345-4b55-b6ce-f90d36f0ba1a>
isPartOf: CC-MAIN-2024-38
publisher: Common Crawl
description: Wide crawl of the web for September 2024
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-15
software: Apache Nutch 1.20 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.5-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/