match
0
when
$b & $t & i2=2 & i1=1
1
when
$t & i2=2 & i1=1
2
when
$b & $t & i1=1
3
when
$t & i1=1
4
when
$b & $t & i2=2
5
when
$t & i2=2
6
when
$b & $t
7
when
$t
8
when
$b & i1=2
9
when
i1=2
10
when
$b & i1=1
11
when
i1=1
12
when
$b & i1=0
13
when
i1=0
14
when
$b
15
TODO
0
change splitValueProperties to work on result, to handle match combo
i1
marcDefault
2
TODO:i2
How to map when no $t?
Exempel: -
MARC
{
  "710": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "a": "National Fire Protection Association."
      },
      {
        "t": "National electrical code (1993)"
      },
      {
        "x": "1111-1111"
      },
      {
        "4": "oth"
      },
      {
        "0": "auth uri"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "National electrical code (1993)"
              }
            ],
            "identifiedBy": [
              {
                "@type": "ISSN",
                "value": "1111-1111"
              }
            ],
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Jurisdiction",
                  "name": "National Fire Protection Association."
                },
                "role": [
                  {
                    "@id": "https://id.kb.se/relator/oth",
                    "@type": "Role",
                    "code": "oth"
                  }
                ]
              }
            ],
            "marc:uri": [
              "auth uri"
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "a": "Sverige."
      },
      {
        "b": "Riksdagen."
      },
      {
        "b": "Borgarståndet."
      },
      {
        "t": "Protokoll,"
      },
      {
        "n": "9"
      },
      {
        "0": "auth uri"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Jurisdiction",
                  "isPartOf": {
                    "@type": "Jurisdiction",
                    "name": "Sverige."
                  },
                  "marc:subordinateUnit": [
                    "Riksdagen.",
                    "Borgarståndet."
                  ]
                }
              }
            ],
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "Protokoll",
                "partNumber": [
                  "9"
                ]
              }
            ],
            "marc:uri": [
              "auth uri"
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "0",
    "ind2": " ",
    "subfields": [
      {
        "a": "Nationell gammaldags organisation."
      },
      {
        "4": "oth"
      },
      {
        "t": "Handlingar 1920-1950"
      },
      {
        "n": "10"
      },
      {
        "0": "auth uri"
      }
    ]
  }
}
Normalized MARC:
{
  "710": {
    "ind1": "2",
    "ind2": " ",
    "subfields": [
      {
        "a": "Nationell gammaldags organisation."
      },
      {
        "t": "Handlingar 1920-1950,"
      },
      {
        "n": "10"
      },
      {
        "4": "oth"
      },
      {
        "0": "auth uri"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "Handlingar 1920-1950",
                "partNumber": [
                  "10"
                ]
              }
            ],
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Organization",
                  "name": "Nationell gammaldags organisation."
                },
                "role": [
                  {
                    "@id": "https://id.kb.se/relator/oth",
                    "@type": "Role",
                    "code": "oth"
                  }
                ]
              }
            ],
            "marc:uri": [
              "auth uri"
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "2",
    "ind2": " ",
    "subfields": [
      {
        "a": "National Fire Protection Association."
      },
      {
        "t": "National electrical code (1993),"
      },
      {
        "n": "42"
      },
      {
        "4": "aut"
      },
      {
        "0": "auth uri"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "relationship": [
        {
          "@type": "Relationship",
          "entity": {
            "@type": "Work",
            "hasTitle": [
              {
                "@type": "Title",
                "mainTitle": "National electrical code (1993)",
                "partNumber": [
                  "42"
                ]
              }
            ],
            "contribution": [
              {
                "@type": "PrimaryContribution",
                "agent": {
                  "@type": "Organization",
                  "name": "National Fire Protection Association."
                },
                "role": [
                  {
                    "@id": "https://id.kb.se/relator/aut",
                    "@type": "Role",
                    "code": "aut"
                  }
                ]
              }
            ],
            "marc:uri": [
              "auth uri"
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "2",
    "ind2": " ",
    "subfields": [
      {
        "a": "International Council of Nurses."
      },
      {
        "b": "Quinquennial Meeting"
      },
      {
        "d": "1904"
      },
      {
        "c": "Berlin, Germany)"
      },
      {
        "n": "(1st :"
      },
      {
        "e": "author."
      },
      {
        "0": "auth uri"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "contribution": [
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Organization",
            "marc:subordinateUnit": [
              "Quinquennial Meeting"
            ],
            "date": [
              "1904"
            ],
            "marc:numeration": [
              "(1st :"
            ],
            "isPartOf": {
              "@type": "Organization",
              "name": "International Council of Nurses."
            },
            "place": [
              {
                "@type": "Place",
                "label": "Berlin, Germany)"
              }
            ],
            "marc:uri": [
              "auth uri"
            ]
          },
          "role": [
            {
              "@type": "Role",
              "label": "author."
            }
          ]
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "a": "National Fire Protection Association."
      },
      {
        "n": "101"
      },
      {
        "0": "auth uri"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "contribution": [
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Jurisdiction",
            "name": "National Fire Protection Association.",
            "marc:numeration": [
              "101"
            ],
            "marc:uri": [
              "auth uri"
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "2",
    "ind2": " ",
    "subfields": [
      {
        "a": "Umeå universitet."
      },
      {
        "b": "Institutionen för ABM."
      },
      {
        "b": "Kulturgeografi,"
      },
      {
        "n": "101"
      },
      {
        "4": "fnd"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "contribution": [
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Organization",
            "marc:subordinateUnit": [
              "Institutionen för ABM.",
              "Kulturgeografi"
            ],
            "marc:numeration": [
              "101"
            ],
            "isPartOf": {
              "@type": "Organization",
              "name": "Umeå universitet."
            }
          },
          "role": [
            {
              "@id": "https://id.kb.se/relator/fnd",
              "@type": "Role",
              "code": "fnd"
            }
          ]
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "a": "Palmblad & C."
      },
      {
        "4": "prt"
      },
      {
        "4": "oth"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "contribution": [
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Jurisdiction",
            "name": "Palmblad & C."
          },
          "role": [
            {
              "@id": "https://id.kb.se/relator/prt",
              "@type": "Role",
              "code": "prt"
            },
            {
              "@id": "https://id.kb.se/relator/oth",
              "@type": "Role",
              "code": "oth"
            }
          ]
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "1",
    "ind2": " ",
    "subfields": [
      {
        "a": "National Fire Protection Association."
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "contribution": [
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Jurisdiction",
            "name": "National Fire Protection Association."
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "2",
    "ind2": " ",
    "subfields": [
      {
        "a": "Schweizerische Käseunion AG (Bern)"
      },
      {
        "l": "ger."
      },
      {
        "0": "auth uri"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "contribution": [
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Organization",
            "name": "Schweizerische Käseunion AG (Bern)",
            "language": {
              "@type": "Language",
              "label": "ger."
            },
            "marc:uri": [
              "auth uri"
            ]
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "2",
    "ind2": " ",
    "subfields": [
      {
        "a": "Chalmers tekniska högskola."
      },
      {
        "b": "Institutionen för teknikens ekonomi och organisation."
      },
      {
        "b": "Industriell organisation och ekonomi"
      },
      {
        "l": "Svenska"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "contribution": [
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Organization",
            "marc:subordinateUnit": [
              "Institutionen för teknikens ekonomi och organisation.",
              "Industriell organisation och ekonomi"
            ],
            "isPartOf": {
              "@type": "Organization",
              "name": "Chalmers tekniska högskola."
            },
            "language": {
              "@type": "Language",
              "label": "Svenska"
            }
          }
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "1",
    "ind2": "2",
    "subfields": [
      {
        "a": "Sverige."
      },
      {
        "t": "Lagen om vissa kommunala befogenheter,"
      },
      {
        "n": "9"
      },
      {
        "x": "2222-2222"
      },
      {
        "4": "oth"
      },
      {
        "0": "auth uri"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "hasPart": [
        {
          "@type": "Work",
          "hasTitle": [
            {
              "@type": "Title",
              "mainTitle": "Lagen om vissa kommunala befogenheter",
              "partNumber": [
                "9"
              ]
            }
          ],
          "identifiedBy": [
            {
              "@type": "ISSN",
              "value": "2222-2222"
            }
          ],
          "contribution": [
            {
              "@type": "PrimaryContribution",
              "agent": {
                "@type": "Jurisdiction",
                "name": "Sverige."
              },
              "role": [
                {
                  "@id": "https://id.kb.se/relator/oth",
                  "@type": "Role",
                  "code": "oth"
                }
              ]
            }
          ],
          "marc:uri": [
            "auth uri"
          ]
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "2",
    "ind2": "2",
    "subfields": [
      {
        "a": "Arbetsmarknadsverket."
      },
      {
        "t": "Arbetsmiljölagen,"
      },
      {
        "n": "9"
      },
      {
        "4": "oth"
      },
      {
        "0": "auth uri"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "hasPart": [
        {
          "@type": "Work",
          "hasTitle": [
            {
              "@type": "Title",
              "mainTitle": "Arbetsmiljölagen",
              "partNumber": [
                "9"
              ]
            }
          ],
          "contribution": [
            {
              "@type": "PrimaryContribution",
              "agent": {
                "@type": "Organization",
                "name": "Arbetsmarknadsverket."
              },
              "role": [
                {
                  "@id": "https://id.kb.se/relator/oth",
                  "@type": "Role",
                  "code": "oth"
                }
              ]
            }
          ],
          "marc:uri": [
            "auth uri"
          ]
        }
      ]
    }
  }
}
Exempel: -
MARC
{
  "710": {
    "ind1": "0",
    "ind2": "2",
    "subfields": [
      {
        "a": "Namngalen organisation."
      },
      {
        "t": "Söderbykyrka"
      },
      {
        "n": "9"
      },
      {
        "4": "oth"
      }
    ]
  }
}
Normalized MARC:
{
  "710": {
    "ind1": "2",
    "ind2": "2",
    "subfields": [
      {
        "a": "Namngalen organisation."
      },
      {
        "t": "Söderbykyrka,"
      },
      {
        "n": "9"
      },
      {
        "4": "oth"
      }
    ]
  }
}
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "hasPart": [
        {
          "@type": "Work",
          "hasTitle": [
            {
              "@type": "Title",
              "mainTitle": "Söderbykyrka",
              "partNumber": [
                "9"
              ]
            }
          ],
          "contribution": [
            {
              "@type": "PrimaryContribution",
              "agent": {
                "@type": "Organization",
                "name": "Namngalen organisation."
              },
              "role": [
                {
                  "@id": "https://id.kb.se/relator/oth",
                  "@type": "Role",
                  "code": "oth"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}
Exempel: -
MARC
[
  {
    "710": {
      "ind1": "1",
      "ind2": " ",
      "subfields": [
        {
          "a": "Sverige."
        },
        {
          "b": "Riksdagen."
        },
        {
          "b": "Konstitutionsutskottet"
        },
        {
          "d": "(1996-04-13)"
        }
      ]
    }
  },
  {
    "710": {
      "ind1": "1",
      "ind2": " ",
      "subfields": [
        {
          "a": "Sverige."
        },
        {
          "b": "Regeringen i Bremen-Verden"
        }
      ]
    }
  }
]
JSON-LD
{
  "mainEntity": {
    "instanceOf": {
      "@type": "Text",
      "contribution": [
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Jurisdiction",
            "marc:subordinateUnit": [
              "Riksdagen.",
              "Konstitutionsutskottet"
            ],
            "isPartOf": {
              "@type": "Jurisdiction",
              "name": "Sverige."
            },
            "date": [
              "(1996-04-13)"
            ]
          }
        },
        {
          "@type": "Contribution",
          "agent": {
            "@type": "Jurisdiction",
            "marc:subordinateUnit": [
              "Regeringen i Bremen-Verden"
            ],
            "isPartOf": {
              "@type": "Jurisdiction",
              "name": "Sverige."
            }
          }
        }
      ]
    }
  }
}