Skip to content

Commit

Permalink
Do not add zdbId if only DE-599 has ZDB info #2112
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Dec 16, 2024
1 parent 1ff5cc0 commit 030f7a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions src/main/resources/alma/fix/identifiers.fix
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ do list(path:"035 ", "var":"$i")
unless exists("zdbId")
if all_match("$i.a", "\\(DE-600\\)(.*)")
copy_field("$i.a", "zdbId")
elsif all_match("$i.a", "\\(DE-599\\)(ZDB.*)")
copy_field("$i.a", "zdbId")
end
end
end
Expand Down
10 changes: 1 addition & 9 deletions src/test/resources/alma-fix/990217879290206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"deprecatedUri" : "http://lobid.org/resources/HT019286510#!",
"issn" : [ "24054488" ],
"oclcNumber" : [ "909716357" ],
"zdbId" : "2819760-4",
"publication" : [ {
"startDate" : "2015",
"type" : [ "PublicationEvent" ],
Expand Down Expand Up @@ -67,9 +66,6 @@
}, {
"id" : "http://worldcat.org/oclc/909716357",
"label" : "OCLC Ressource"
}, {
"id" : "http://ld.zdb-services.de/resource/2819760-4",
"label" : "ZDB-Ressource"
} ],
"inCollection" : [ {
"id" : "https://nrw.digibib.net/search/hbzvk/",
Expand All @@ -79,10 +75,6 @@
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/resources/HT014846970#!",
"label" : "Zeitschriftendatenbank (ZDB)",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/eng",
Expand All @@ -95,7 +87,7 @@
"hasItem" : [ {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://katalog.dombibliothek-koeln.de/F/?local_base=edk01&find_code=ISN&request=24054488&func=find-b" ],
"seeAlso" : [ "https://katalog.dombibliothek-koeln.de/F/?local_base=edk01&find_code=IDN&request=HT019286510&func=find-b" ],
"heldBy" : {
"isil" : "DE-Kn28",
"id" : "http://lobid.org/organisations/DE-Kn28#!",
Expand Down

0 comments on commit 030f7a8

Please sign in to comment.