Update of mapping to correct handling of repeated classification fields and subfields
- MODDICORE-323Getting issue details... STATUS
Update to the default MARC Bib-to-Inventory Instance MAP:
- Update mapping rules for the classification field in order to create separate entities per subfield 'a'
Update script: - MODSOURMAN-1052Getting issue details... STATUS
Steps:
- If library tenant is using default mapping rules with NO changes (no customizations), then call PUT /mapping-rules/marc-bib/restore
- If library tenant is using default mapping rules, WITH changes (local customization), then follow the next steps:
- Send a GET request to /mapping-rules/marc-bib to retrieve the mapping rules
Update rules for classification type and id. Under fields 050, 060, 082, 090 add new property entityPerRepeatedSubfield :
- Under fields 050, 060, 082, 090 in target "classifications.classificationTypeId" remove property applyRulesOnConcatenatedData:
Under fields 050, 060, 082, 090 in target "classifications.classificationTypeId" remove "b" from subfield, result:
Under fields 050, 060, 082, 090 in target "classifications.classificationNumber" remove applyRulesOnConcatenatedData:
Under fields 050, 060, 082, 090 in target "classifications.classificationNumber" remove "b" from subfield, result:
- Under fields 050, 060, 082, 090 in target "classifications.classificationNumber" add rule concat_subfields_by_name (NOTE: for 082 do not delete existing rule):
Expected result:
- Before changes:
- After changes:
- Send PUT request to /mapping-rules/marc-bib and put in the body the updated JSON