From 1ff30a67d1101ce924b43a7059b939ccae50bc36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Fri, 13 Sep 2024 15:24:12 +0200 Subject: [PATCH 1/5] Add test files 990173607780206441 and 990126426530206441 --- .../alma-fix/990126426530206441.json | 136 +++++ .../resources/alma-fix/990126426530206441.xml | 156 ++++++ .../alma-fix/990173607780206441.json | 232 +++++++++ .../resources/alma-fix/990173607780206441.xml | 484 ++++++++++++++++++ 4 files changed, 1008 insertions(+) create mode 100644 src/test/resources/alma-fix/990126426530206441.json create mode 100644 src/test/resources/alma-fix/990126426530206441.xml create mode 100644 src/test/resources/alma-fix/990173607780206441.json create mode 100644 src/test/resources/alma-fix/990173607780206441.xml diff --git a/src/test/resources/alma-fix/990126426530206441.json b/src/test/resources/alma-fix/990126426530206441.json new file mode 100644 index 000000000..cfbdf4a0d --- /dev/null +++ b/src/test/resources/alma-fix/990126426530206441.json @@ -0,0 +1,136 @@ +{ + "@context" : "http://lobid.org/resources/context.jsonld", + "id" : "http://lobid.org/resources/990126426530206441#!", + "type" : [ "BibliographicResource", "Article" ], + "medium" : [ { + "label" : "Print", + "id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010" + } ], + "title" : "Gute Chancen. Stand und Perspektiven der Kombikraftwerkstechnik mit Kohlevergasung", + "almaMmsId" : "990126426530206441", + "hbzId" : "TT000252730", + "deprecatedUri" : "http://lobid.org/resources/TT000252730#!", + "oclcNumber" : [ "1046441573" ], + "publication" : [ { + "startDate" : "1996", + "type" : [ "PublicationEvent" ] + } ], + "describedBy" : { + "id" : "http://lobid.org/resources/990126426530206441", + "label" : "Webseite der hbz-Ressource 990126426530206441", + "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/990126426530206441", + "dateCreated" : "2021-04-05", + "dateModified" : "2024-08-14", + "type" : [ "DataFeedItem" ], + "label" : "hbz-Ressource 990126426530206441 im Exportformat MARC21 XML", + "inDataset" : { + "id" : "https://datahub.io/dataset/hbz_unioncatalog", + "label" : "hbz_unioncatalog" + }, + "sourceOrganization" : { + "id" : "http://lobid.org/organisations/DE-Bm3#!", + "label" : "Bibliothek des Ruhrgebiets" + }, + "provider" : { + "id" : "http://lobid.org/organisations/DE-Bm3#!", + "label" : "Bibliothek des Ruhrgebiets" + }, + "modifiedBy" : [ { + "id" : "http://lobid.org/organisations/DE-605#!", + "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen" + } ] + } + }, + "license" : [ { + "id" : "http://creativecommons.org/publicdomain/zero/1.0", + "label" : "Creative Commons-Lizenz CC0 1.0 Universal" + } ] + }, + "sameAs" : [ { + "id" : "https://hub.culturegraph.org/resource/(DE-605)990126426530206441", + "label" : "Culturegraph Ressource" + }, { + "id" : "http://worldcat.org/oclc/1046441573", + "label" : "OCLC Ressource" + } ], + "containedIn" : [ { + "id" : "http://lobid.org/resources/ZDB-626249-1#!", + "label" : "lobid Ressource" + } ], + "inCollection" : [ { + "id" : "https://nrw.digibib.net/search/hbzvk/", + "label" : "DigiBib hbz Verbundkatalog", + "type" : [ "Collection" ] + }, { + "id" : "http://lobid.org/organisations/DE-655#!", + "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", + "type" : [ "Collection" ] + } ], + "language" : [ { + "id" : "http://id.loc.gov/vocabulary/iso639-2/deutsch", + "label" : "deutsch" + } ], + "note" : [ "In: Energie Spektr.. - 11 (1996) Nr. 3 S. 18/21 : Abb.; 2 Lit." ], + "bibliographicCitation" : "Energie Spektr.. - 11 (1996) Nr. 3 S. 18/21 : Abb.; 2 Lit.", + "hasItem" : [ { + "label" : "lobid Bestandsressource", + "type" : [ "Item", "PhysicalObject" ], + "serialNumber" : "61992-10", + "currentLibrary" : "BR003", + "currentLocation" : "S", + "heldBy" : { + "isil" : "DE-Bm3-3", + "id" : "http://lobid.org/organisations/DE-Bm3-3#!", + "label" : "Bibliothek des Ruhrgebiets, Bestandsabteilung Bergbau-Bücherei und Ruhrgebiet" + }, + "inCollection" : [ { + "id" : "http://lobid.org/organisations/DE-Bm3#!", + "label" : "Bibliothek des Ruhrgebiets" + } ], + "id" : "http://lobid.org/items/990126426530206441:DE-Bm3-3:2310018530007508#!" + } ], + "bibliographicLevel" : { + "label" : "Monographic component part", + "id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monographic_component_part" + }, + "contribution" : [ { + "agent" : { + "label" : "Kuske, E.", + "type" : [ "Person" ] + }, + "role" : { + "id" : "http://id.loc.gov/vocabulary/relators/aut", + "label" : "Autor/in" + }, + "type" : [ "Contribution" ] + }, { + "agent" : { + "gndIdentifier" : "117215481", + "id" : "https://d-nb.info/gnd/117215481", + "label" : "Schellberg, Wilhelm", + "type" : [ "Person" ], + "dateOfBirth" : "1880", + "dateOfDeath" : "1937", + "altLabel" : [ "Schellberg, Wilh.", "Schellberg, W." ] + }, + "role" : { + "id" : "http://id.loc.gov/vocabulary/relators/aut", + "label" : "Autor/in" + }, + "type" : [ "Contribution" ] + } ] +} diff --git a/src/test/resources/alma-fix/990126426530206441.xml b/src/test/resources/alma-fix/990126426530206441.xml new file mode 100644 index 000000000..afd6c4ef8 --- /dev/null +++ b/src/test/resources/alma-fix/990126426530206441.xml @@ -0,0 +1,156 @@ + + + 00810naa#a2200253#c#4500 + 20210408144638.0 + tu + 020507|1996####xx############|||#|#####c + DE-605 + 990126426530206441 + + 1046441573 + OCoLC + + + (DE-605)TT000252730 + + + Bm 3 + ger + Bm 3 + rakwb + DE-605 + + + deutsch + + + Kuske, E. + aut + + + Gute Chancen. Stand und Perspektiven der Kombikraftwerkstechnik mit Kohlevergasung. + + + 1996 + + + (OCoLC)1046441573 + + + 030 + a|1uc||||||17 + + + 050 + a||||||||||||| + + + 051 + a||||||| + + + Schellberg, Wilhelm + 1880-1937 + (DE-588)117215481 + aut + https://d-nb.info/gnd/117215481 + http://viaf.org/viaf/100223623 + GND-117215481 + + + Enthalten in + 1996 + (DE-600)626249-1 + + + In: Energie Spektr.. - 11 (1996) Nr. 3 S. 18/21 : Abb.; 2 Lit. + F:525 + + + (DE-599)HBZTT000252730 + + + 49HBZ_NETWORK + 990126426530206441 + HBZ Network + + + 49HBZ_BRIDGE_BDR + 9925154707508 + Bibliothek des Ruhrgebiets, Bochum + + + System + OTHER + marc21 + 01 + false + 2024-08-14 04:06:09 Europe/Berlin + 012642653-HBZ01 + 60 + import + 2021-04-05 07:59:18 Europe/Berlin + + + BR003 + S + 2210018630007508 + + + 2023-02-16 01:48:14 + 2210018630007508 + 2023-02-16 01:48:14 + 49HBZ_BRIDGE_BDR + false + System + System + + + 2210018630007508 + S + BOOK + S + 32 + System + 2002-05-07 02:00:00 Europe/Berlin + 49HBZ_BRIDGE_BDR + 1 + 0 + System + 61992-10 + 2310018530007508 + 00000000 + 2023-02-16 02:48:15 Europe/Berlin + BR003 + BR003 + + + Schellberg, Wilh. + 1880-1937 + GND + GND-117215481 + 400 + + + Schellberg, W. + 1880-1937 + GND + GND-117215481 + 400 + + + 117215481 + http://d-nb.info/gnd/117215481 + gnd + GND + GND-117215481 + 024 + + + 5110475 + geprishisp + GND + GND-117215481 + 024 + + diff --git a/src/test/resources/alma-fix/990173607780206441.json b/src/test/resources/alma-fix/990173607780206441.json new file mode 100644 index 000000000..86a16ea8a --- /dev/null +++ b/src/test/resources/alma-fix/990173607780206441.json @@ -0,0 +1,232 @@ +{ + "@context" : "http://lobid.org/resources/context.jsonld", + "id" : "http://lobid.org/resources/990173607780206441#!", + "type" : [ "BibliographicResource", "Book" ], + "medium" : [ { + "label" : "Print", + "id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010" + } ], + "title" : "David Milne - Watercolours", + "almaMmsId" : "990173607780206441", + "hbzId" : "HT015844659", + "deprecatedUri" : "http://lobid.org/resources/HT015844659#!", + "isbn" : [ "1553651006", "9781553651000", "1553651332", "9781553651338" ], + "oclcNumber" : [ "315766831" ], + "otherTitleInformation" : [ "Painting toward the light [published on the occasion of David Milne Watercolours: Painting toward Light, the exhibition organized and circulated by the Art Gallery of Ontario, ... coincide with exhibitions held at the British Museum in London, July 7 - Sept. 25, 2005, the Metropolitan Museum of Art, New York, Nov. 8, 2005 - Jan. 29, 2006, and the Art Gallery of Ontario, Toronto, Feb. 25 - May 21, 2006]" ], + "publication" : [ { + "startDate" : "2005", + "type" : [ "PublicationEvent" ], + "location" : [ "Vancouver" ], + "publishedBy" : [ "Douglas & McIntyre" ] + } ], + "describedBy" : { + "id" : "http://lobid.org/resources/990173607780206441", + "label" : "Webseite der hbz-Ressource 990173607780206441", + "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/990173607780206441", + "dateCreated" : "2021-04-06", + "dateModified" : "2024-08-13", + "type" : [ "DataFeedItem" ], + "label" : "hbz-Ressource 990173607780206441 im Exportformat MARC21 XML", + "inDataset" : { + "id" : "https://datahub.io/dataset/hbz_unioncatalog", + "label" : "hbz_unioncatalog" + }, + "sourceOrganization" : { + "id" : "http://lobid.org/organisations/DE-Kn3#!", + "label" : "Kunst- und Museumsbibliothek der Stadt Köln" + }, + "modifiedBy" : [ { + "id" : "http://lobid.org/organisations/DE-Kn3#!", + "label" : "Kunst- und Museumsbibliothek der Stadt Köln" + } ] + } + }, + "license" : [ { + "id" : "http://creativecommons.org/publicdomain/zero/1.0", + "label" : "Creative Commons-Lizenz CC0 1.0 Universal" + } ] + }, + "sameAs" : [ { + "id" : "https://hub.culturegraph.org/resource/(DE-605)990173607780206441", + "label" : "Culturegraph Ressource" + }, { + "id" : "http://worldcat.org/oclc/315766831", + "label" : "OCLC Ressource" + } ], + "inCollection" : [ { + "id" : "https://nrw.digibib.net/search/hbzvk/", + "label" : "DigiBib hbz Verbundkatalog", + "type" : [ "Collection" ] + }, { + "id" : "http://lobid.org/organisations/DE-655#!", + "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", + "type" : [ "Collection" ] + } ], + "language" : [ { + "id" : "http://id.loc.gov/vocabulary/iso639-2/eng", + "label" : "Englisch" + }, { + "id" : "http://id.loc.gov/vocabulary/iso639-2/engl.", + "label" : "engl." + } ], + "extent" : "192 S. : zahlr. Ill., teils farb.", + "natureOfContent" : [ { + "label" : "Ausstellungskatalog", + "id" : "https://d-nb.info/gnd/4135467-9" + } ], + "subject" : [ { + "type" : [ "ComplexSubject" ], + "label" : "Milne, David | Aquarell | Geschichte 1911-1952", + "componentList" : [ { + "type" : [ "Person" ], + "label" : "Milne, David", + "source" : { + "label" : "Gemeinsame Normdatei (GND)", + "id" : "https://d-nb.info/gnd/7749153-1" + }, + "id" : "https://d-nb.info/gnd/119439735", + "gndIdentifier" : "119439735", + "dateOfBirth" : "1882", + "dateOfDeath" : "1953", + "altLabel" : [ "Milne, David Brown", "Milne, David B.", "Brown Milne, David" ] + }, { + "type" : [ "SubjectHeading" ], + "label" : "Aquarell", + "source" : { + "label" : "Gemeinsame Normdatei (GND)", + "id" : "https://d-nb.info/gnd/7749153-1" + }, + "id" : "https://d-nb.info/gnd/4002511-1", + "gndIdentifier" : "4002511-1", + "altLabel" : [ "Aquarellmalerei", "Aquarelle" ] + }, { + "type" : [ "SubjectHeading" ], + "label" : "Geschichte 1911-1952" + } ] + } ], + "subjectslabels" : [ "Milne, David", "Aquarell", "Geschichte 1911-1952" ], + "hasItem" : [ { + "label" : "lobid Bestandsressource", + "type" : [ "Item", "PhysicalObject" ], + "callNumber" : "Monogr.", + "serialNumber" : "keinBarcode", + "currentLibrary" : "Z9049", + "currentLocation" : "MF", + "heldBy" : { + "isil" : "DE-E10", + "id" : "http://lobid.org/organisations/DE-E10#!", + "label" : "Museum Folkwang, Museumsbibliothek" + }, + "inCollection" : [ { + "id" : "http://lobid.org/organisations/DE-E10#!", + "label" : "Museum Folkwang, Museumsbibliothek" + } ], + "id" : "http://lobid.org/items/990173607780206441:DE-E10:236661330007827#!" + }, { + "label" : "lobid Bestandsressource", + "type" : [ "Item", "PhysicalObject" ], + "callNumber" : "KMB/K MILNE, 7 2005/06", + "serialNumber" : "KMB/17/0106881", + "currentLibrary" : "KN3", + "currentLocation" : "KN3-KMB", + "heldBy" : { + "isil" : "DE-Kn3", + "id" : "http://lobid.org/organisations/DE-Kn3#!", + "label" : "Kunst- und Museumsbibliothek der Stadt Köln" + }, + "seeAlso" : [ "https://katalog.ub.uni-koeln.de/portal/search.html?num=20&page=1&l=de&srt=year_desc&tab=books&hbzid=990173607780206441&fdb=uni" ], + "inCollection" : [ { + "id" : "http://lobid.org/organisations/DE-38#!", + "label" : "Universitäts- und Stadtbibliothek Köln, Hauptabteilung" + } ], + "id" : "http://lobid.org/items/990173607780206441:DE-Kn3:23319675420006476#!" + } ], + "bibliographicLevel" : { + "label" : "Monograph/Item", + "id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item" + }, + "responsibilityStatement" : [ "Katharine Lochnan, with contributions by John O'Brian ..." ], + "contribution" : [ { + "agent" : { + "gndIdentifier" : "119439735", + "id" : "https://d-nb.info/gnd/119439735", + "label" : "Milne, David", + "type" : [ "Person" ], + "dateOfBirth" : "1882", + "dateOfDeath" : "1953", + "altLabel" : [ "Milne, David Brown", "Milne, David B.", "Brown Milne, David" ] + }, + "role" : { + "id" : "http://id.loc.gov/vocabulary/relators/ill", + "label" : "Illustration" + }, + "type" : [ "Contribution" ] + }, { + "agent" : { + "gndIdentifier" : "129768545", + "id" : "https://d-nb.info/gnd/129768545", + "label" : "Lochnan, Katharine", + "type" : [ "Person" ], + "dateOfBirth" : "1946", + "altLabel" : [ "Lochnan, Katharine Aileen", "Lochnan, Katharine Jordan", "Lochnan, Katherine Aileen", "Lochnan, K.", "Lochnan, Katharine A.", "Jordan Lochnan, Katharine", "Jordan, Katharine A." ] + }, + "role" : { + "id" : "http://id.loc.gov/vocabulary/relators/oth", + "label" : "Sonstige" + }, + "type" : [ "Contribution" ] + }, { + "agent" : { + "gndIdentifier" : "134138848", + "id" : "https://d-nb.info/gnd/134138848", + "label" : "O'Brian, John", + "type" : [ "Person" ], + "dateOfBirth" : "1944" + }, + "role" : { + "id" : "http://id.loc.gov/vocabulary/relators/ctb", + "label" : "Beitragende/r" + }, + "type" : [ "Contribution" ] + }, { + "agent" : { + "gndIdentifier" : "1042203-1", + "id" : "https://d-nb.info/gnd/1042203-1", + "label" : "Art Gallery of Ontario", + "type" : [ "CorporateBody" ], + "altLabel" : [ "Musée des Beaux-Arts de l'Ontario", "AGO" ] + }, + "role" : { + "id" : "http://id.loc.gov/vocabulary/relators/oth", + "label" : "Sonstige" + }, + "type" : [ "Contribution" ] + }, { + "agent" : { + "gndIdentifier" : "38379-X", + "id" : "https://d-nb.info/gnd/38379-X", + "label" : "British Museum", + "type" : [ "CorporateBody" ], + "altLabel" : [ "The British Museum", "Das Britische Museum", "Britanskij Muzej", "Daiei Hakubutsukan", "Museum Britannicum", "Musée Britannique", "Britisches Museum", "BM", "Museu Britanico", "London, British Museum", "ダイエイ ハクブツカン", "大英博物館" ] + }, + "role" : { + "id" : "http://id.loc.gov/vocabulary/relators/oth", + "label" : "Sonstige" + }, + "type" : [ "Contribution" ] + } ] +} diff --git a/src/test/resources/alma-fix/990173607780206441.xml b/src/test/resources/alma-fix/990173607780206441.xml new file mode 100644 index 000000000..3daee6d4b --- /dev/null +++ b/src/test/resources/alma-fix/990173607780206441.xml @@ -0,0 +1,484 @@ + + + 01713nam#a2200361#c#4500 + DE-605 + 20230803162419.0 + tu + 090225|2005####xx############|||#|#eng#c + 990173607780206441 + + 315766831 + OCoLC + + + 1553651006 + 1-55365-100-6 + + + 1553651332 + 1-55365-133-2 + + + (DE-605)HT015844659 + + + Kn 3 + ger + Kn 3 + rakwb + + + eng + engl. + + + David Milne - Watercolours + Painting toward the light [published on the occasion of David Milne Watercolours: Painting toward Light, the exhibition organized and circulated by the Art Gallery of Ontario, ... coincide with exhibitions held at the British Museum in London, July 7 - Sept. 25, 2005, the Metropolitan Museum of Art, New York, Nov. 8, 2005 - Jan. 29, 2006, and the Art Gallery of Ontario, Toronto, Feb. 25 - May 21, 2006] + Katharine Lochnan, with contributions by John O'Brian ... + + + Vancouver + Douglas & McIntyre + 2005 + + + 192 S. : zahlr. Ill., teils farb. + + + Milne, David + 1882-1953 + p + (DE-588)119439735 + GND-119439735 + + + Aquarell + s + (DE-588)4002511-1 + GND-04002511X + + + Geschichte 1911-1952 + z + + + (OCoLC)315766831 + + + (DE-599)BSZ262030039 + + + 030 + a|1uc||||||37 + + + 050 + a||||||||||||| + + + 051 + m||||||| + + + Milne, David + 1882-1953 + (DE-588)119439735 + ill + https://d-nb.info/gnd/119439735 + http://viaf.org/viaf/40188681 + GND-119439735 + + + Lochnan, Katharine + 1946- + (DE-588)129768545 + oth + https://d-nb.info/gnd/129768545 + http://viaf.org/viaf/79038616 + GND-129768545 + + + O'Brian, John + 1944- + (DE-588)134138848 + ctb + https://d-nb.info/gnd/134138848 + http://viaf.org/viaf/85445774 + GND-134138848 + + + Art Gallery of Ontario + (DE-588)1042203-1 + oth + https://d-nb.info/gnd/004256018 + http://viaf.org/viaf/151879312 + GND-004256018 + + + British Museum + (DE-588)38379-X + oth + https://d-nb.info/gnd/000383791 + http://viaf.org/viaf/134857252 + GND-000383791 + + + Ausstellungskatalog + 2005 + Toronto + (DE-588)4135467-9 + gnd-content + + + 49HBZ_NETWORK + 990173607780206441 + HBZ Network + + + 49HBZ_BRIDGE_MFE + 9912773307827 + Museum Folkwang, Museumsbibliothek, Essen + + + 49HBZ_UBK + 991042054709706476 + Universität Köln + + + System + ILS + marc21 + 01 + false + 2024-08-13 04:05:51 Europe/Berlin + 017360778-HBZ01 + 60 + import + 2021-04-06 01:38:33 Europe/Berlin + + + Z9049 + MF + Monogr. + 226661350007827 + + + 2023-08-07 13:28:35 + 226661350007827 + 2023-08-07 13:28:35 + 49HBZ_BRIDGE_MFE + false + System + System + + + 226661350007827 + MF + BOOK + MF + 11 + System + 2011-09-20 02:00:00 Europe/Berlin + Monogr. + 49HBZ_BRIDGE_MFE + 1 + 0 + System + keinBarcode + 236661330007827 + Monogr. + 2008/35948 + 20110920 + 2023-08-07 15:28:35 Europe/Berlin + Z9049 + Z9049 + + + KN3 + KN3-KMB + 22319675430006476 + + + 2023-08-22 16:41:42 + 22319675430006476 + 49HBZ_UBK + false + import + + + 22319675430006476 + KN3-KMB + BOOK + KN3-KMB + X + AMO_HBZ_FIX + 2023-08-21 12:59:00 Europe/Berlin + 2023-08-24 04:52:25 Europe/Berlin + false + KMB/K MILNE, 7 2005/06 + 1 + 49HBZ_UBK + 1 + # + import + Materialart: BOOK;Exemplar: 1. Ex.;Änderungsdatum: 16.12.2009;Abrufzeichen: BK + KMB/17/0106881 + HBZ01: HT015844659 | Aufnahmedatum: 2017-01-09 | Klassifikation: 0 + 23319675420006476 + G2009-3991 + 2023-08-22 18:41:42 Europe/Berlin + KN3 + KN3 + + + <<The>> British Museum + GND + GND-000383791 + 410 + + + <<Das>> Britische Museum + GND + GND-000383791 + 410 + + + Britanskij Muzej + GND + GND-000383791 + 410 + + + Daiei Hakubutsukan + v:Vorlage + GND + GND-000383791 + 410 + + + Museum Britannicum + GND + GND-000383791 + 410 + + + Musée Britannique + GND + GND-000383791 + 410 + + + Britisches Museum + GND + GND-000383791 + 410 + + + BM + abku + Abkuerzung + GND + GND-000383791 + 410 + + + Museu Britanico + GND + GND-000383791 + 410 + + + London, British Museum + GND + GND-000383791 + 410 + + + U:Kana + ダイエイ ハクブツカン + GND + GND-000383791 + 410 + + + U:Jpan + 大英博物館 + v:Vorlage + GND + GND-000383791 + 410 + + + 38379-X + http://d-nb.info/gnd/38379-X + gnd + GND + GND-000383791 + 024 + + + Musée des Beaux-Arts de l'Ontario + GND + GND-004256018 + 410 + + + AGO + abku + Abkuerzung + GND + GND-004256018 + 410 + + + 1042203-1 + http://d-nb.info/gnd/1042203-1 + gnd + GND + GND-004256018 + 024 + + + Aquarellmalerei + GND + GND-04002511X + 450 + + + Aquarelle + GND + GND-04002511X + 450 + + + 4002511-1 + http://d-nb.info/gnd/4002511-1 + gnd + GND + GND-04002511X + 024 + + + Milne, David Brown + 1882-1953 + GND + GND-119439735 + 400 + + + Milne, David B. + 1882-1953 + GND + GND-119439735 + 400 + + + Brown Milne, David + 1882-1953 + GND + GND-119439735 + 400 + + + http://d-nb.info/gnd/119439735 + uri + GND + GND-119439735 + 024 + + + 134138848 + http://d-nb.info/gnd/134138848 + gnd + GND + GND-134138848 + 024 + + + Lochnan, Katharine Aileen + 1946- + v:BN Opale plus + GND + GND-129768545 + 400 + + + Lochnan, Katharine Jordan + 1946- + v:LoC-NA + GND + GND-129768545 + 400 + + + Lochnan, Katherine Aileen + 1946- + GND + GND-129768545 + 400 + + + Lochnan, K. + 1946- + GND + GND-129768545 + 400 + + + Lochnan, Katharine A. + 1946- + GND + GND-129768545 + 400 + + + Jordan Lochnan, Katharine + 1946- + GND + GND-129768545 + 400 + + + Jordan, Katharine A. + 1946- + GND + GND-129768545 + 400 + + + 129768545 + http://d-nb.info/gnd/129768545 + gnd + GND + GND-129768545 + 024 + + + Milne, David Brown + 1882-1953 + GND + GND-119439735 + 400 + + + Milne, David B. + 1882-1953 + GND + GND-119439735 + 400 + + + Brown Milne, David + 1882-1953 + GND + GND-119439735 + 400 + + + http://d-nb.info/gnd/119439735 + uri + GND + GND-119439735 + 024 + + From 2aba6dc09396954a46efc096eb8d034ee807dc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Fri, 13 Sep 2024 15:48:18 +0200 Subject: [PATCH 2/5] Exclude all language-info that do not match the marc code #2062 --- src/main/resources/alma/fix/otherFields.fix | 10 +++++++--- src/test/resources/alma-fix/990126426530206441.json | 4 ---- src/test/resources/alma-fix/990173607780206441.json | 3 --- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/main/resources/alma/fix/otherFields.fix b/src/main/resources/alma/fix/otherFields.fix index 86ed031bc..848601406 100644 --- a/src/main/resources/alma/fix/otherFields.fix +++ b/src/main/resources/alma/fix/otherFields.fix @@ -6,19 +6,23 @@ substring("@008-lang", "35", "3") copy_field("@008-lang", "@language.$append") copy_field("041[ 01] .[adj]", "@language.$append") -uniq("@language") +flatten("@language") set_array("language[]") do list(path:"@language", "var":"$i") unless any_match("$i","zxx|mul|sgn|und|.*[\\|\\#].*|\\s*") - copy_field("$i", "language[].$append.id") - copy_field("$i", "language[].$last.label") + if any_match("$i","[A-Za-z]{3}") + copy_field("$i", "language[].$append.id") + copy_field("$i", "language[].$last.label") + end end end lookup("language[].*.label","ISO639-2-to-GND") prepend("language[].*.id", "http://id.loc.gov/vocabulary/iso639-2/") +uniq("language[]") + # 300 - Physical Description (R) # We reuse the introx transformation here. diff --git a/src/test/resources/alma-fix/990126426530206441.json b/src/test/resources/alma-fix/990126426530206441.json index cfbdf4a0d..a558f1aef 100644 --- a/src/test/resources/alma-fix/990126426530206441.json +++ b/src/test/resources/alma-fix/990126426530206441.json @@ -80,10 +80,6 @@ "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", "type" : [ "Collection" ] } ], - "language" : [ { - "id" : "http://id.loc.gov/vocabulary/iso639-2/deutsch", - "label" : "deutsch" - } ], "note" : [ "In: Energie Spektr.. - 11 (1996) Nr. 3 S. 18/21 : Abb.; 2 Lit." ], "bibliographicCitation" : "Energie Spektr.. - 11 (1996) Nr. 3 S. 18/21 : Abb.; 2 Lit.", "hasItem" : [ { diff --git a/src/test/resources/alma-fix/990173607780206441.json b/src/test/resources/alma-fix/990173607780206441.json index 86a16ea8a..adb9ab87d 100644 --- a/src/test/resources/alma-fix/990173607780206441.json +++ b/src/test/resources/alma-fix/990173607780206441.json @@ -79,9 +79,6 @@ "language" : [ { "id" : "http://id.loc.gov/vocabulary/iso639-2/eng", "label" : "Englisch" - }, { - "id" : "http://id.loc.gov/vocabulary/iso639-2/engl.", - "label" : "engl." } ], "extent" : "192 S. : zahlr. Ill., teils farb.", "natureOfContent" : [ { From 32e9d33670b5c0de9445540a1dddaded8a9c508b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Fri, 13 Sep 2024 16:14:49 +0200 Subject: [PATCH 3/5] Add mapping if lang is set to deutsch #2062 --- src/main/resources/alma/fix/otherFields.fix | 3 +++ src/test/resources/alma-fix/990126426530206441.json | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/main/resources/alma/fix/otherFields.fix b/src/main/resources/alma/fix/otherFields.fix index 848601406..e9a866dac 100644 --- a/src/main/resources/alma/fix/otherFields.fix +++ b/src/main/resources/alma/fix/otherFields.fix @@ -14,6 +14,9 @@ do list(path:"@language", "var":"$i") if any_match("$i","[A-Za-z]{3}") copy_field("$i", "language[].$append.id") copy_field("$i", "language[].$last.label") + elsif any_match("$i","[dD]eutsch") + add_field("language[].$append.id","ger") + add_field("language[].$last.label","ger") end end end diff --git a/src/test/resources/alma-fix/990126426530206441.json b/src/test/resources/alma-fix/990126426530206441.json index a558f1aef..b20e30f16 100644 --- a/src/test/resources/alma-fix/990126426530206441.json +++ b/src/test/resources/alma-fix/990126426530206441.json @@ -80,6 +80,10 @@ "label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone", "type" : [ "Collection" ] } ], + "language" : [ { + "id" : "http://id.loc.gov/vocabulary/iso639-2/ger", + "label" : "Deutsch" + } ], "note" : [ "In: Energie Spektr.. - 11 (1996) Nr. 3 S. 18/21 : Abb.; 2 Lit." ], "bibliographicCitation" : "Energie Spektr.. - 11 (1996) Nr. 3 S. 18/21 : Abb.; 2 Lit.", "hasItem" : [ { From b3f480b738789fb96f6a106c4db153c4a34eeded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Fri, 13 Sep 2024 16:31:54 +0200 Subject: [PATCH 4/5] Update tests #2062 --- web/test/tests/IndexIntegrationTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/test/tests/IndexIntegrationTest.java b/web/test/tests/IndexIntegrationTest.java index 64b4b3335..6ec9fcf96 100644 --- a/web/test/tests/IndexIntegrationTest.java +++ b/web/test/tests/IndexIntegrationTest.java @@ -33,7 +33,7 @@ public class IndexIntegrationTest extends LocalIndexSetup { public static Collection data() { // @formatter:off return queries(new Object[][] { - { "title:der", /*->*/ 18 }, + { "title:der", /*->*/ 19 }, { "title:Westfalen", /*->*/ 8 }, { "contribution.agent.label:Westfalen", /*->*/ 3 }, { "contribution.agent.label:Westfälen", /*->*/ 3 }, @@ -43,7 +43,7 @@ public static Collection data() { { "title:Westfalen AND contribution.agent.label:Prause", /*->*/ 1 }, { "title:Westfalen OR title:Munsterland", /*->*/ 8 }, { "(title:Westfalen OR title:Münsterland) AND contribution.agent.id:\"https\\://d-nb.info/gnd/5253963-5\"", /*->*/ 0 }, - { "bibliographicLevel.label.raw:\"Monographic component part\"", /*->*/ 15 }, + { "bibliographicLevel.label.raw:\"Monographic component part\"", /*->*/ 16 }, { "subject.componentList.label:Düsseldorf", /*->*/ 1 }, { "subject.componentList.label:Duesseldorf", /*->*/ 1 }, { "subject.componentList.label:Dusseldorf", /*->*/ 1 }, @@ -66,8 +66,8 @@ public static Collection data() { { "publication.startDate:1993", /*->*/ 3 }, { "publication.location:Berlin AND publication.startDate:1993", /*->*/ 1 }, { "publication.location:Berlin AND publication.startDate:[1992 TO 2017]", /*->*/ 5 }, - { "inCollection.id:\"http\\://lobid.org/organisations/DE-655#\\!\"", /*->*/ 137 }, - { "inCollection.id:\"https\\://nrw.digibib.net/search/hbzvk/\"", /*->*/ 154 }, + { "inCollection.id:\"http\\://lobid.org/organisations/DE-655#\\!\"", /*->*/ 139 }, + { "inCollection.id:\"https\\://nrw.digibib.net/search/hbzvk/\"", /*->*/ 156 }, { "inCollection.id:NWBib", /*->*/ 0 }, { "publication.publishedBy:Quedenfeldt", /*->*/ 2 }, { "publication.publishedBy:Quedenfeld", /*->*/ 2 }, From f604807d3edce88c666e493c1e787c5ddd52ddde Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Wed, 25 Sep 2024 15:07:31 +0200 Subject: [PATCH 5/5] Adjusted the mapping to be more rigid #2062 The current mapping only tested if there are three values the new one tests if the value is in the languge map. --- src/main/resources/alma/fix/otherFields.fix | 25 ++++++++++++--------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/main/resources/alma/fix/otherFields.fix b/src/main/resources/alma/fix/otherFields.fix index e9a866dac..dc780d63a 100644 --- a/src/main/resources/alma/fix/otherFields.fix +++ b/src/main/resources/alma/fix/otherFields.fix @@ -1,27 +1,32 @@ # 008 - Fixed-Length Data Elements-General Information (NR) - No subfields +# 041 - 041 - Language Code (R) set_array("@language") copy_field("008", "@008-lang") substring("@008-lang", "35", "3") -copy_field("@008-lang", "@language.$append") -copy_field("041[ 01] .[adj]", "@language.$append") +copy_field("@008-lang", "@language.$append.id") +copy_field("@008-lang", "@language.$last.label") +do list(path: "041[ 01] ","var":"$i") + copy_field("$i.[adj]", "@language.$append.id") + copy_field("$i.[adj]", "@language.$last.label") +end -flatten("@language") +lookup("@language.*.label","ISO639-2-to-GND", delete:"true") set_array("language[]") do list(path:"@language", "var":"$i") - unless any_match("$i","zxx|mul|sgn|und|.*[\\|\\#].*|\\s*") - if any_match("$i","[A-Za-z]{3}") - copy_field("$i", "language[].$append.id") - copy_field("$i", "language[].$last.label") - elsif any_match("$i","[dD]eutsch") + unless any_match("$i.id","zxx|mul|sgn|und|.*[\\|\\#].*|\\s*") + if exists("$i.label") + copy_field("$i.id", "language[].$append.id") + copy_field("$i.label", "language[].$last.label") + elsif any_match("$i.id","[dD]eutsch") add_field("language[].$append.id","ger") - add_field("language[].$last.label","ger") + add_field("language[].$last.label","Deutsch") end end end -lookup("language[].*.label","ISO639-2-to-GND") + prepend("language[].*.id", "http://id.loc.gov/vocabulary/iso639-2/") uniq("language[]")