From 633c3830fc87f9378b7178bc0a94c4ea4151229d Mon Sep 17 00:00:00 2001 From: Petra Maier Date: Mon, 4 Mar 2024 12:49:58 +0100 Subject: [PATCH] Add Subfield 689$p (#1972) --- src/main/resources/alma/fix/macros.fix | 1 + .../resources/alma-fix/99373637266706441.json | 208 +++++++++++++++++ .../resources/alma-fix/99373637266706441.xml | 214 ++++++++++++++++++ 3 files changed, 423 insertions(+) create mode 100644 src/test/resources/alma-fix/99373637266706441.json create mode 100644 src/test/resources/alma-fix/99373637266706441.xml diff --git a/src/main/resources/alma/fix/macros.fix b/src/main/resources/alma/fix/macros.fix index 9218f3c79..f6bcbbbd6 100644 --- a/src/main/resources/alma/fix/macros.fix +++ b/src/main/resources/alma/fix/macros.fix @@ -191,6 +191,7 @@ end do put_macro("gndOtherCombinedLabel") set_array("$[field].@combinedLabel") # check if GND concept has combined variant copy_field("$[field].a","$[field].@combinedLabel.$append") + copy_field("$[field].p","$[field].@combinedLabel.$append") copy_field("$[field].b","$[field].@combinedLabel.$append") join_field("$[field].@combinedLabel", ". ") # This is the difference to gnd person if exists("$[field].c") diff --git a/src/test/resources/alma-fix/99373637266706441.json b/src/test/resources/alma-fix/99373637266706441.json new file mode 100644 index 000000000..85105994f --- /dev/null +++ b/src/test/resources/alma-fix/99373637266706441.json @@ -0,0 +1,208 @@ +{ + "@context" : "http://lobid.org/resources/context.jsonld", + "almaMmsId" : "99373637266706441", + "urn" : [ "urn:nbn:de:bvb:384-opus4-1094038" ], + "hbzId" : "HT030654927", + "deprecatedUri" : "http://lobid.org/resources/HT030654927#!", + "oclcNumber" : [ "1420187639" ], + "dnbId" : "1316737470", + "title" : "Münsterischer Anzeiger, 1852 - 1945: Beschreibung des Zeitungsunternehmens", + "publication" : [ { + "startDate" : "2022", + "type" : [ "PublicationEvent" ], + "location" : [ "Augsburg", "Bonn" ] + } ], + "describedBy" : { + "id" : "http://lobid.org/resources/99373637266706441", + "label" : "Webseite der hbz-Ressource 99373637266706441", + "type" : [ "BibliographicDescription" ], + "inDataset" : { + "id" : "http://lobid.org/resources/dataset#!", + "label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data" + }, + "resultOf" : { + "type" : [ "CreateAction" ], + "endTime" : "0000-00-00T00:00:00", + "instrument" : { + "id" : "https://github.com/hbz/lobid-resources", + "type" : [ "SoftwareApplication" ], + "label" : "Software lobid-resources" + }, + "object" : { + "id" : "https://lobid.org/marcxml/99373637266706441", + "dateCreated" : "2024-02-14", + "dateModified" : "2024-02-15", + "type" : [ "DataFeedItem" ], + "label" : "hbz-Ressource 99373637266706441 im Exportformat MARC21 XML", + "inDataset" : { + "id" : "https://datahub.io/dataset/hbz_unioncatalog", + "label" : "hbz_unioncatalog" + }, + "sourceOrganization" : { + "id" : "http://lobid.org/organisations/DE-6#!", + "label" : "Universitäts- und Landesbibliothek Münster, Zentralbibliothek" + }, + "provider" : { + "id" : "http://lobid.org/organisations/DE-6#!", + "label" : "Universitäts- und Landesbibliothek Münster, Zentralbibliothek" + }, + "modifiedBy" : [ { + "id" : "http://lobid.org/organisations/DE-6#!", + "label" : "Universitäts- und Landesbibliothek Münster, Zentralbibliothek" + } ] + } + }, + "license" : [ { + "id" : "http://creativecommons.org/publicdomain/zero/1.0", + "label" : "Creative Commons-Lizenz CC0 1.0 Universal" + } ] + }, + "sameAs" : [ { + "id" : "http://hub.culturegraph.org/resource/HBZ-HT030654927", + "label" : "Culturegraph Ressource" + }, { + "id" : "http://worldcat.org/oclc/1420187639", + "label" : "OCLC Ressource" + }, { + "id" : "https://d-nb.info/1316737470", + "label" : "DNB-Ressource" + }, { + "id" : "https://nbn-resolving.de/urn:nbn:de:bvb:384-opus4-1094038", + "label" : "urn:nbn:de:bvb:384-opus4-1094038" + }, { + "id" : "http://nwbib.de/99373637266706441#!", + "label" : "NWBib-Ressource" + } ], + "fulltextOnline" : [ { + "label" : "Verlag", + "id" : "https://zeitpunkt.nrw/ulbms/periodical/titleinfo/8700398" + }, { + "label" : "Verlag", + "id" : "https://opus.bibliothek.uni-augsburg.de/opus4/frontdoor/index/index/docId/109403" + }, { + "id" : "https://nbn-resolving.de/urn:nbn:de:bvb:384-opus4-1094038", + "label" : "URN-Link" + } ], + "inCollection" : [ { + "id" : "http://lobid.org/organisations/DE-655#!", + "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", + "type" : [ "Collection" ] + }, { + "id" : "http://lobid.org/resources/HT014176012#!", + "label" : "Nordrhein-Westfälische Bibliographie (NWBib)", + "type" : [ "Collection" ] + } ], + "language" : [ { + "id" : "http://id.loc.gov/vocabulary/iso639-2/ger", + "label" : "Deutsch" + } ], + "bibliographicCitation" : "zeitpunkt.nrw; 25.01.2022,; Augsburg, Bonn 2022; [2] Seiten", + "subject" : [ { + "notation" : "070", + "type" : [ "Concept" ], + "source" : { + "label" : "Sachgruppen der DNB", + "id" : "https://bartoc.org/en/node/20049" + }, + "label" : "Nachrichtenmedien, Journalismus, Verlagswesen" + }, { + "type" : [ "Concept" ], + "source" : { + "label" : "Dewey-Dezimalklassifikation", + "id" : "https://d-nb.info/gnd/4149423-4" + }, + "label" : "Dokumentarische Medien, publizistische Medien, Unterrichtsmedien; Journalismus; Verlagswesen", + "notation" : "070", + "version" : "sdnb" + }, { + "id" : "https://nwbib.de/subjects#N882020", + "label" : "Presse", + "notation" : "882020", + "type" : [ "Concept" ], + "source" : { + "id" : "https://nwbib.de/subjects", + "label" : "Sachsystematik der Nordrhein-Westfälischen Bibliographie" + } + }, { + "type" : [ "ComplexSubject" ], + "label" : "Westfälische Nachrichten. Ausgabe MS | Geschichte 1852-1945", + "componentList" : [ { + "type" : [ "Work" ], + "label" : "Westfälische Nachrichten. Ausgabe MS", + "source" : { + "label" : "Gemeinsame Normdatei (GND)", + "id" : "https://d-nb.info/gnd/7749153-1" + }, + "id" : "https://d-nb.info/gnd/7569204-1", + "gndIdentifier" : "7569204-1", + "altLabel" : [ "Westfälische Tageszeitung (Münster, Westfalen, 1940-1945)", "Münsterischer Anzeiger und Münsterische Volkszeitung", "Münsterischer Anzeiger", "Westfälische Nachrichten. Ausgabe M", "Westfälische Nachrichten. Ausgabe A" ] + }, { + "label" : "Geschichte 1852-1945" + } ] + } ], + "spatial" : [ { + "id" : "https://nwbib.de/spatial#N04", + "label" : "Westfalen", + "notation" : "04", + "type" : [ "Concept" ], + "source" : { + "id" : "https://nwbib.de/spatial", + "label" : "Raumsystematik der Nordrhein-Westfälischen Bibliographie" + }, + "focus" : { + "id" : "http://www.wikidata.org/entity/Q8614", + "label" : "Westfalen", + "type" : [ "http://www.wikidata.org/entity/Q82794" ], + "geo" : { + "lat" : "52.0", + "lon" : "8.0" + } + } + }, { + "id" : "https://nwbib.de/spatial#Q2742", + "label" : "Münster", + "type" : [ "Concept" ], + "source" : { + "id" : "https://nwbib.de/spatial", + "label" : "Raumsystematik der Nordrhein-Westfälischen Bibliographie" + }, + "focus" : { + "id" : "http://www.wikidata.org/entity/Q2742", + "label" : "Münster", + "type" : [ "http://www.wikidata.org/entity/Q106517174", "http://www.wikidata.org/entity/Q707813", "http://www.wikidata.org/entity/Q42744322", "http://www.wikidata.org/entity/Q1549591", "http://www.wikidata.org/entity/Q85635630", "http://www.wikidata.org/entity/Q1392581" ], + "geo" : { + "lat" : "51.9625", + "lon" : "7.625555555" + } + } + } ], + "subjectslabels" : [ "Westfälische Nachrichten. Ausgabe MS", "Geschichte 1852-1945" ], + "medium" : [ { + "label" : "Datenträger", + "id" : "http://rdaregistry.info/termList/RDAMediaType/1003" + }, { + "label" : "Online-Ressource", + "id" : "http://rdaregistry.info/termList/RDACarrierType/1018" + } ], + "bibliographicLevel" : { + "label" : "Monographic component part", + "id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monographic_component_part" + }, + "type" : [ "BibliographicResource", "Article" ], + "responsibilityStatement" : [ "Kristopher Muckel" ], + "contribution" : [ { + "agent" : { + "gndIdentifier" : "1309974918", + "id" : "https://d-nb.info/gnd/1309974918", + "label" : "Muckel, Kristopher", + "type" : [ "Person" ], + "dateOfBirthAndDeath" : "ca. 20./21. Jh." + }, + "role" : { + "id" : "http://id.loc.gov/vocabulary/relators/aut", + "label" : "Autor/in" + }, + "type" : [ "Contribution" ] + } ], + "id" : "http://lobid.org/resources/99373637266706441#!" +} diff --git a/src/test/resources/alma-fix/99373637266706441.xml b/src/test/resources/alma-fix/99373637266706441.xml new file mode 100644 index 000000000..6ff89f32b --- /dev/null +++ b/src/test/resources/alma-fix/99373637266706441.xml @@ -0,0 +1,214 @@ + + + 01821naa a2200457 c 4500 + DE-605 + 20240215092118.0 + cr|||||||||||| + 240214s2022 gw |||||o|||| 00||| ger c + 99373637266706441 + + 24,O02 + dnb + + + 1316737470 + DE-101 + + + 1420187639 + (OCoLC) + + + urn + urn:nbn:de:bvb:384-opus4-1094038 + + + (DE-605)HT030654927 + + + DE-6 + ger + DE-6 + DE-6 + rda + + + ger + + + XA-DE-BY + + + 070 + sdnb + + + Westfalen + https://nwbib.de/spatial#N04 + nwbib + + + Münster + https://nwbib.de/spatial#Q2742 + nwbib + + + Presse + https://nwbib.de/subjects#N882020 + nwbib + + + Muckel, Kristopher + ca. 20./21. Jh. + (DE-588)1309974918 + aut + http://d-nb.info/gnd/1309974918 + http://viaf.org/viaf/sourceID/DNB|1309974918 + GND-1309974918 + + + Münsterischer Anzeiger, 1852 - 1945: Beschreibung des Zeitungsunternehmens + Kristopher Muckel + + + Augsburg + Bonn + 2022 + + + txt + + + c + + + cr + + + Westfälische Nachrichten + Ausgabe MS + u + (DE-588)7569204-1 + GND-984115234 + + + Geschichte 1852-1945 + z + + + (DE-599)DNB1316737470 + + + (OCoLC)1420187639 + + + (DE-101)1316737470 + + + iall + + + NWBib-6 + + + https://nbn-resolving.org/urn:nbn:de:bvb:384-opus4-1094038 + Resolving-System + + + https://d-nb.info/1316737470/34 + Langzeitarchivierung Nationalbibliothek + + + application/pdf + https://zeitpunkt.nrw/ulbms/periodical/titleinfo/8700398 + Verlag + kostenfrei + + + https://opus.bibliothek.uni-augsburg.de/opus4/frontdoor/index/index/docId/109403 + Verlag + kostenfrei + + + Enthalten in + zeitpunkt.nrw + 25.01.2022, + Augsburg, Bonn 2022 + [2] Seiten + + + Archivierung/Langzeitarchivierung gewährleistet + DE-101 + pdager + + + 49HBZ_NETWORK + 99373637266706441 + HBZ Network + + + System + DNB NZ + marc21 + 01 + false + 2024-02-15 13:12:48 Europe/Berlin + 99373637266706441 + 60 + niemani######49HBZ_ULM + 2024-02-14 15:59:02 Europe/Berlin + + + 1309974918 + http://d-nb.info/gnd/1309974918 + gnd + GND + GND-1309974918 + 024 + + + Westfälische Tageszeitung + Münster, Westfalen, 1940-1945 + GND + GND-984115234 + 430 + + + Münsterischer Anzeiger und Münsterische Volkszeitung + v:1852-1929 + GND + GND-984115234 + 430 + + + Münsterischer Anzeiger + v:1930-1940 + GND + GND-984115234 + 430 + + + Westfälische Nachrichten + Ausgabe M + v:1946-1952 + GND + GND-984115234 + 430 + + + Westfälische Nachrichten + Ausgabe A + v:1953-1981 + GND + GND-984115234 + 430 + + + 7569204-1 + http://d-nb.info/gnd/7569204-1 + gnd + GND + GND-984115234 + 024 + +