Update of mapping to add MARC 720 field R1 2023 Orchid release

MODSOURMAN-873 - Getting issue details... STATUS

Update to the default MARC Bib-to-Inventory Instance MAP:

  • Map MARC 720 field to instance contributor

Mandatory or Optional: Optional

Steps:

  1. If library tenant is using default mapping rules with NO changes (no customizations), then call PUT  /mapping-rules/marc-bib/restore
  2. 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
    • Add field 720 to mapping rules: 

      "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_period, trim"
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "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_period, trim"
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "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_period, trim"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
    • Send PUT request to /mapping-rules/marc-bib and put in the body the updated JSON