diff --git a/src/main/resources/alma/fix/identifiers.fix b/src/main/resources/alma/fix/identifiers.fix index e818a0198..a6ded1390 100644 --- a/src/main/resources/alma/fix/identifiers.fix +++ b/src/main/resources/alma/fix/identifiers.fix @@ -168,3 +168,7 @@ unless exists("hbzId") copy_field("@hbzId","hbzId") end end + +unless exists("@inNZ") + remove_field("hbzId") +end diff --git a/src/test/resources/alma-fix/991000128689108979.json b/src/test/resources/alma-fix/991000128689108979.json new file mode 100644 index 000000000..6559e681d --- /dev/null +++ b/src/test/resources/alma-fix/991000128689108979.json @@ -0,0 +1,84 @@ +{ + "@context" : "http://lobid.org/resources/context.jsonld", + "id" : "http://lobid.org/resources/991000128689108979#!", + "type" : [ "BibliographicResource", "Series" ], + "medium" : [ { + "label" : "Print", + "id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010" + } ], + "title" : "Kreisfreie Städte und Landkreise", + "almaMmsId" : "991000128689108979", + "deprecatedUri" : "http://lobid.org/resources/HT006919400#!", + "publication" : [ { + "type" : [ "PublicationEvent" ], + "location" : [ "Bad Ems." ], + "publicationHistory" : "1998 -" + } ], + "describedBy" : { + "id" : "http://lobid.org/resources/991000128689108979", + "label" : "Webseite der hbz-Ressource 991000128689108979", + "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/991000128689108979", + "dateCreated" : "2024-09-16", + "dateModified" : "2024-10-09", + "type" : [ "DataFeedItem" ], + "label" : "hbz-Ressource 991000128689108979 im Exportformat MARC21 XML", + "inDataset" : { + "id" : "https://datahub.io/dataset/hbz_unioncatalog", + "label" : "hbz_unioncatalog" + }, + "sourceOrganization" : { + "id" : "http://lobid.org/organisations/XX-DE#!", + "label" : "lobid Organisation" + } + } + }, + "license" : [ { + "id" : "http://creativecommons.org/publicdomain/zero/1.0", + "label" : "Creative Commons-Lizenz CC0 1.0 Universal" + } ] + }, + "hasItem" : [ { + "label" : "lobid Bestandsressource", + "type" : [ "Item", "NurTitel" ], + "heldBy" : { + "isil" : "DE-Tr5", + "id" : "http://lobid.org/organisations/DE-Tr5#!", + "label" : "Hochschulbibliothek Trier" + }, + "inCollection" : [ { + "id" : "http://lobid.org/organisations/DE-Tr5#!", + "label" : "Hochschulbibliothek Trier" + } ], + "id" : "http://lobid.org/items/991000128689108979:DE-Tr5:991000128689108979#!" + } ], + "bibliographicLevel" : { + "label" : "Serial", + "id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Serial" + }, + "responsibilityStatement" : [ "Rheinland-Pfalz, Statistisches Landesamt." ], + "contribution" : [ { + "agent" : { + "label" : "Rheinland-Pfalz", + "type" : [ "CorporateBody" ] + }, + "role" : { + "id" : "http://id.loc.gov/vocabulary/relators/ctb", + "label" : "Beitragende/r" + }, + "type" : [ "Contribution" ] + } ] +} diff --git a/src/test/resources/alma-fix/991000128689108979.xml b/src/test/resources/alma-fix/991000128689108979.xml new file mode 100644 index 000000000..00f0ba927 --- /dev/null +++ b/src/test/resources/alma-fix/991000128689108979.xml @@ -0,0 +1,82 @@ + + + 00845cas a2200241 4500 + 20090427095900.0 + zu + n mg 0 b + 991000128689108979 + + HBZ + HT006919400 + + + (DE-1042)UCB_33892-49hbz_hst + + + HT006919400 + ExL + + + (DE-605)HT006919400 + + + 33892 + + + DE + m y0gery0103 ba + RAK-WB + + + Kreisfreie Städte und Landkreise / + Rheinland-Pfalz, Statistisches Landesamt. + + + Bad Ems. + + + 1998 - + + + Rheinland-Pfalz. + + + HT006919400 + + + HT006919400 + + + 35524 + + + Beil. zu --->: Rheinland-Pfalz: Statistische Monatshefte Rheinland-Pfalz + LOCAL + + + Vorg. --->: Rheinland-Pfalz: Kreisübersichten + LOCAL + + + Ersch. bis 1996 jeweils Apr. u. kumulierend im Okt., ab 1997 jeweils Mai u. kumulierend im Nov. + LOCAL + + + 49HBZ_HST + 991000128689108979 + Hochschule Trier - Umwelt-Campus + + + System + ILS + marc21 + 50 + 01 + false + 2024-10-09 13:04:02 Europe/Berlin + UCB_33892-49hbz_hst + 00 + import + 2024-09-16 14:52:44 Europe/Berlin + +