Jira Legacy server System Jira columnIds issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution columns key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution serverId 01505d01-b853-3c2e-90f1-ee9b165564fc key MODDICORE-347
Update to the default MARC Bib-to-Inventory Instance MAP:
- todoUpdate mapping rules for the classification field to adjust punctuation handling for contributor name.
Script for updating such mapping: Jira Legacy server System Jira columnIds issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution columns key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution serverId 01505d01-b853-3c2e-90f1-ee9b165564fc key MODDICORE-355
Steps:
- If library tenant is using default mapping rules with NO changes (no customizations), then call PUT /mapping-rules/marc-bib/restore endpoint
- If library tenant is using default mapping rules, WITH changes (local customization), then follow the next step
- Send a GET request to /mapping-rules/marc-bib to retrieve the mapping rules
Under 100, 110, 111, 700, 710, 711, 720 fields update rule for contributor name (section where target = "contributors.name") for the "type" property replace
"trim_period, trim"
value with"trim_punctuation"
value
before changes:Code Block language js collapse true "rules": [ { "conditions": [ { "type": "trim_period, trim" } ] } ]
after changes:Code Block
collapse true "rules": [ { "conditions": [ { "type": "trim_punctuation" } ] } ]
- Send PUT request to /mapping-rules/marc-bib and put in the body the updated JSON
Please noteNote, that the array of the section for "720" field contains three "type" properties so the value for each of them should be updated.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
"720": [ { "indicators": { "ind1": "1", "ind2": "*" }, "entity": [ { "target": "contributors.contributorNameTypeId", "description": "Type for Personal Name", "applyRulesOnConcatenatedData": true, "subfield": [], "rules": [ { "conditions": [ { "type": "set_contributor_name_type_id", "parameter": { "name": "Personal name" } } ] } ] }, { "target": "contributors.contributorTypeId", "description": "Type of contributor", "applyRulesOnConcatenatedData": true, "subfield": [ "4", "e" ], "rules": [ { "conditions": [ { "type": "set_contributor_type_id_by_code_or_name", "parameter": { "contributorCodeSubfield": "4", "contributorNameSubfield": "e" } } ] } ], "alternativeMapping": { "target": "contributors.contributorTypeText", "description": "Contributor type free text", "ignoreSubsequentSubfields": true, "subfield": [ "e" ] } }, { "target": "contributors.primary", "description": "Primary contributor", "applyRulesOnConcatenatedData": true, "subfield": [ ], "rules": [ { "conditions": [], "value": "false" } ] }, { "target": "contributors.name", "description": "Personal Name", "applyRulesOnConcatenatedData": true, "subfield": [ "a" ], "rules": [ { "conditions": [ { "type": "trim_punctuation" } ] } ] } ] }, { "indicators": { "ind1": " ", "ind2": "*" }, "entity": [ { "target": "contributors.contributorNameTypeId", "description": "Type for Personal Name", "applyRulesOnConcatenatedData": true, "subfield": [], "rules": [ { "conditions": [ { "type": "set_contributor_name_type_id", "parameter": { "name": "Personal name" } } ] } ] }, { "target": "contributors.contributorTypeId", "description": "Type of contributor", "applyRulesOnConcatenatedData": true, "subfield": [ "4", "e" ], "rules": [ { "conditions": [ { "type": "set_contributor_type_id_by_code_or_name", "parameter": { "contributorCodeSubfield": "4", "contributorNameSubfield": "e" } } ] } ], "alternativeMapping": { "target": "contributors.contributorTypeText", "description": "Contributor type free text", "ignoreSubsequentSubfields": true, "subfield": [ "e" ] } }, { "target": "contributors.primary", "description": "Primary contributor", "applyRulesOnConcatenatedData": true, "subfield": [ ], "rules": [ { "conditions": [], "value": "false" } ] }, { "target": "contributors.name", "description": "Personal Name", "applyRulesOnConcatenatedData": true, "subfield": [ "a" ], "rules": [ { "conditions": [ { "type": "trim_punctuation" } ] } ] } ] }, { "indicators": { "ind1": "2", "ind2": "*" }, "entity": [ { "target": "contributors.contributorNameTypeId", "description": "Type for Corporate Name", "applyRulesOnConcatenatedData": true, "subfield": [], "rules": [ { "conditions": [ { "type": "set_contributor_name_type_id", "parameter": { "name": "Corporate name" } } ] } ] }, { "target": "contributors.contributorTypeId", "description": "Type of contributor", "applyRulesOnConcatenatedData": true, "subfield": [ "4", "e" ], "rules": [ { "conditions": [ { "type": "set_contributor_type_id_by_code_or_name", "parameter": { "contributorCodeSubfield": "4", "contributorNameSubfield": "e" } } ] } ], "alternativeMapping": { "target": "contributors.contributorTypeText", "description": "Contributor type free text", "ignoreSubsequentSubfields": true, "subfield": [ "e" ] } }, { "target": "contributors.primary", "description": "Primary contributor", "applyRulesOnConcatenatedData": true, "subfield": [ ], "rules": [ { "conditions": [], "value": "false" } ] }, { "target": "contributors.name", "description": "Personal Name", "applyRulesOnConcatenatedData": true, "subfield": [ "a" ], "rules": [ { "conditions": [ { "type": "trim_punctuation" } ] } ] } ] } ] |
...