Skip to content

Commit

Permalink
Exclude ZDB records from excluded DE-Sol1 holdings #2145
Browse files Browse the repository at this point in the history
Until ZDB mapping workflow is added, we need to recover all ZDB Holdings of DE-Sol1.

Upcoming workflow: hbz/lobid-extra-holdings#8
  • Loading branch information
TobiasNx committed Feb 18, 2025
1 parent dacbc63 commit 2b4e4ad
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/resources/alma/fix/macros.fix
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,8 @@ end

do put_macro("deSol1BridgeTester")
if any_match("$[holdingId]",".*7830$")
add_field("$i.deSol1Bridge","true")
unless exists("zdbId")
add_field("$i.deSol1Bridge","true")
end
end
end
16 changes: 16 additions & 0 deletions src/test/resources/alma-fix/990154869220206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,22 @@
"version" : "sdnb"
} ],
"hasItem" : [ {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysikalischerTitel" ],
"currentLibrary" : "Z9035",
"currentLocation" : "kA",
"callNumber" : "KA 2738",
"heldBy" : {
"isil" : "DE-Sol1",
"id" : "http://lobid.org/organisations/DE-Sol1#!",
"label" : "Stadtarchiv Solingen, Bibliothek"
},
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-Sol1#!",
"label" : "Stadtarchiv Solingen, Bibliothek"
} ],
"id" : "http://lobid.org/items/990154869220206441:DE-Sol1:2212014060007830#!"
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysikalischerTitel" ],
"currentLibrary" : "ALKU",
Expand Down

0 comments on commit 2b4e4ad

Please sign in to comment.