Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions whelk-core/src/main/resources/ext/marcframe.json
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,24 @@
},
"back": "both"
},
{
"name": "Metatesting postprocess merge",
"source": {
"marc:primaryProvisionActivity": {
"@type": "PrimaryProvisionActivity",
"marc:publicationStatus": "marc:SingleKnownDateProbableDate",
"year": "2021",
"country": [ {"@id": "https://id.kb.se/country/sw"} ]
},
"publication": [ {"@type": "Publication", "year": "2021" } ]
},
"result": {
"publication": [
{"@type": "PrimaryPublication", "country": [ {"@id": "https://id.kb.se/country/sw"} ], "year": "2021"}
]
},
"back": "both"
},
{
"source": {
"publication": [ {"@type": "Publication", "date": ["1977", "1978"]} ]
Expand Down Expand Up @@ -11511,6 +11529,98 @@
]
}}
},
{
"name": "With publication place, agent and date (264 $a $b $c) and 008",
"source": [
{"008": "| s2020 sw |||||||||||000 || | "},
{"264": {"ind1": " ", "ind2": "1", "subfields": [
{"a": "Stockholm :"},
{"b": "Norstedts,"},
{"c": "2020"}
]
}}
],
"result": {
"mainEntity":
{
"marc:primaryProvisionActivity" : {
"@type" : "PrimaryProvisionActivity",
"country" : [ {
"@id" : "https://id.kb.se/country/sw"
} ],
"marc:publicationStatus" : "marc:SingleKnownDateProbableDate",
"year" : "2020"
},
"publication":
[
{
"@type": "Publication",
"agent": {"@type": "Agent", "label": "Norstedts"},
"place" : {
"@type" : "Place",
"label" : "Stockholm"
},
"year": "2020"
}
]
}}
},
{
"name": "No publication place (264 $a) and 008",
"source": [
{"008": "| s2021 sw |||||||||||000 || | "},
{"264": {"ind1": " ", "ind2": "1", "subfields": [
{"b": "Bonnier,"},
{"c": "2021"}
]
}}
],
"result": {
"mainEntity":
{
"marc:primaryProvisionActivity" : {
"@type" : "PrimaryProvisionActivity",
"country" : [ {
"@id" : "https://id.kb.se/country/sw"
} ],
"marc:publicationStatus" : "marc:SingleKnownDateProbableDate",
"year" : "2021"
},
"publication":
[
{
"@type": "Publication",
"agent": {"@type": "Agent", "label": "Bonnier"},
"year": "2021"
}
]
}}
},
{
"name": ": No publication place or date (264 $a and $c) and 008",
"NOTE": "False Strings too large to calculate edit distance.",
"NOTE:source": [
{"008": "| snnnn xx |||||||||||000 || | "},
{"264": {"ind1": " ", "ind2": "1", "subfields": [
{"b": "Saga Egmont"}
]
}}
],
"NOTE:result": {
"marc:primaryProvisionActivity" : {
"@type" : "PrimaryProvisionActivity",
"country" : [ { "@id" : "https://id.kb.se/country/xx" } ],
"marc:publicationStatus" : "marc:SingleKnownDateProbableDate",
"year" : "nnnn"
},
"publication" : [
{
"@type" : "Publication",
"agent" : { "@type" : "Agent", "label" : "Saga Egmont" }
}
]
}
},
{
"source": [
{"264": {"ind1": " ", "ind2": "1", "subfields": [
Expand Down