From 2b4e4ad1a64e4d4ad4a225c19d4569fd0ff63f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Tue, 18 Feb 2025 15:29:00 +0100 Subject: [PATCH] Exclude ZDB records from excluded DE-Sol1 holdings #2145 Until ZDB mapping workflow is added, we need to recover all ZDB Holdings of DE-Sol1. Upcoming workflow: https://github.com/hbz/lobid-extra-holdings/pull/8 --- src/main/resources/alma/fix/macros.fix | 4 +++- .../resources/alma-fix/990154869220206441.json | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/main/resources/alma/fix/macros.fix b/src/main/resources/alma/fix/macros.fix index 9efdbb382..0d489cb70 100644 --- a/src/main/resources/alma/fix/macros.fix +++ b/src/main/resources/alma/fix/macros.fix @@ -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 diff --git a/src/test/resources/alma-fix/990154869220206441.json b/src/test/resources/alma-fix/990154869220206441.json index f66b48ac7..c65665871 100644 --- a/src/test/resources/alma-fix/990154869220206441.json +++ b/src/test/resources/alma-fix/990154869220206441.json @@ -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",