Kiwi R3 2021 Release: Updates on default mapping rules
- MODSOURMAN-563Getting issue details... STATUS
Updates to the default MARC Bib-to-Inventory Instance MAP:
- 019$a and 035$z mapped to Instance Identifier type = Cancelled System Control Number
This change relies on new default Identifier type values available in Kiwi, in Settings/Inventory/Instances:
- Cancelled system control number
Mandatory or Optional: Optional
Steps:
- Send GET request to /mapping-rules/marc-bib to retrieve the mapping rules
- Place rule for 019 field in the received json (place it before the rule for "020" field for readability)
"019": [
{
"entityPerRepeatedSubfield": true,
"entity": [
{
"target": "identifiers.identifierTypeId",
"description": "Type for Cancelled system control number",
"subfield": [
"a"
],
"rules": [
{
"conditions": [
{
"type": "set_identifier_type_id_by_name",
"parameter": {
"name": "Cancelled system control number"
}
}
]
}
]
},
{
"target": "identifiers.value",
"description": "Cancelled system control number",
"subfield": [
"a"
],
"rules": [
{
"conditions": [
{
"type": "trim"
}
]
}
]
}
]
}
],
3. Extend the rule for "035" field (add only the section marked in green)
"035": [
{
"entityPerRepeatedSubfield": true,
"entity": [
{
"target": "identifiers.identifierTypeId",
"description": "Type for System Control Number",
"subfield": [
"a"
],
"rules": [
{
"conditions": [
{
"type": "set_identifier_type_id_by_value",
"parameter": {
"names": [
"System control number",
"OCLC"
],
"oclc_regex": "(\\(OCoLC\\)|ocm|ocn|on).*"
}
}
]
}
]
},
{
"target": "identifiers.value",
"description": "System Control Number",
"subfield": [
"a"
]
}
]
},
{
"entityPerRepeatedSubfield": true,
"entity": [
{
"target": "identifiers.identifierTypeId",
"description": "Type for Cancelled system control number",
"subfield": [
"z"
],
"rules": [
{
"conditions": [
{
"type": "set_identifier_type_id_by_name",
"parameter": {
"name": "Cancelled system control number"
}
}
]
}
]
},
{
"target": "identifiers.value",
"description": "Cancelled system control number",
"subfield": [
"z"
],
"rules": [
{
"conditions": [
{
"type": "trim"
}
]
}
]
}
]
}
],
4. Send PUT request to /mapping-rules/marc-bib and put in the body the updated json
- MODDICORE-172Getting issue details... STATUS
Updates to the default MARC Bib-to-Inventory Instance MAP:
- 024/Ind1=1, $aq mapped to Instance Identifier type = UPC
- 024/Ind1=1, $zq mapped to Instance Identifier type = Invalid UPC
- 024/Ind1=2, $aq mapped to Instance Identifier type = ISMN
- 024/Ind1=2, $zq mapped to Instance Identifier type = Invalid ISMN
This change relies on new default Identifier type values available in Kiwi, in Settings/Inventory/Instances:
- UPC
- Invalid UPC
- ISMN
- Invalid ISMN
Steps:
- Send GET request to /mapping-rules/marc-bib to retrieve the mapping rules
- Extend rule for 024 field in the received json (add the section marked in green)
"024": [
{
"entity":