Skip to content

Commit

Permalink
Adjust Opac workflow for introx #2074
Browse files Browse the repository at this point in the history
Only CZ resources work with alma mms id links.
  • Loading branch information
TobiasNx committed Sep 25, 2024
1 parent f25fba7 commit 063af18
Show file tree
Hide file tree
Showing 43 changed files with 1,215 additions and 1,209 deletions.
7 changes: 7 additions & 0 deletions src/main/resources/alma/fix/macros.fix
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ end
# opacLink

do put_macro("opacLink")
# 1. Sets the opac link with help of lookup-tables mapping list based on ALMA-MMS-ID, ZDBID,HBZID,ISSN.
# 2. Chooses which opac-link to uses: Order: 1) ALMA-MMS-ID, 2) ZDBID 3) HBZID 4) ISSN.
if exists("zdbId")
copy_field("$i.$[field]", "$i.@opacLinkZdbId")
lookup("$i.@opacLinkZdbId","isil2opac_zdbId", delete:"true")
Expand All @@ -341,6 +343,11 @@ do put_macro("opacLink")
end
copy_field("$i.$[field]", "$i.@opacAlmaMmsId")
lookup("$i.@opacAlmaMmsId","isil2opac_almaMmsId", delete:"true")
if any_contain("$i.@opacAlmaMmsId","digibib") # For Introx only keep ALMA MMS ID Opac links if they are CZ.
unless any_match("035 .a", "^\\(EXLCZ\\).*")
remove_field("$i.@opacAlmaMmsId")
end
end
split_field("$i.@opacAlmaMmsId","\\{almaMmsId\\}")
if exists("issn[].1")
copy_field("$i.$[field]", "$i.@opacLinkIssn")
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/alma-fix/990001412590206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"id" : "http://lobid.org/organisations/DE-468#!",
"label" : "Universitätsbibliothek Wuppertal"
},
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)990001412590206441" ],
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-468#!",
"label" : "Universitätsbibliothek Wuppertal"
Expand All @@ -147,7 +147,7 @@
"id" : "http://lobid.org/organisations/DE-708#!",
"label" : "Universitätsbibliothek der Fernuniversität"
},
"seeAlso" : [ "https://fub-hagen.digibib.net/search/katalog/record/(DE-605)990001412590206441" ],
"seeAlso" : [ "https://fub-hagen.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-708#!",
"label" : "Universitätsbibliothek der Fernuniversität"
Expand Down Expand Up @@ -345,7 +345,7 @@
"id" : "http://lobid.org/organisations/DE-467#!",
"label" : "Universitätsbibliothek Siegen"
},
"seeAlso" : [ "https://ub-siegen.digibib.net/search/katalog/record/(DE-605)990001412590206441" ],
"seeAlso" : [ "https://ub-siegen.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-467#!",
"label" : "Universitätsbibliothek Siegen"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990016782920206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"id" : "http://lobid.org/organisations/DE-1156#!",
"label" : "Folkwang Universität der Künste | Bibliothek"
},
"seeAlso" : [ "https://folkwang-uni.digibib.net/search/katalog/record/(DE-605)990016782920206441" ],
"seeAlso" : [ "https://folkwang-uni.digibib.net/search/katalog/record/56:HT004285445" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-1156#!",
"label" : "Folkwang Universität der Künste | Bibliothek"
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/990035016180206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"id" : "http://lobid.org/organisations/DE-468#!",
"label" : "Universitätsbibliothek Wuppertal"
},
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)990035016180206441" ],
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)HT008733617" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-468#!",
"label" : "Universitätsbibliothek Wuppertal"
Expand Down Expand Up @@ -244,7 +244,7 @@
"id" : "http://lobid.org/organisations/DE-467#!",
"label" : "Universitätsbibliothek Siegen"
},
"seeAlso" : [ "https://ub-siegen.digibib.net/search/katalog/record/(DE-605)990035016180206441" ],
"seeAlso" : [ "https://ub-siegen.digibib.net/search/katalog/record/(DE-605)HT008733617" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-467#!",
"label" : "Universitätsbibliothek Siegen"
Expand Down
24 changes: 12 additions & 12 deletions src/test/resources/alma-fix/990050000600206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-468",
"id" : "http://lobid.org/organisations/DE-468#!",
Expand Down Expand Up @@ -351,7 +351,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://fub-hagen.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://fub-hagen.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-708",
"id" : "http://lobid.org/organisations/DE-708#!",
Expand All @@ -365,7 +365,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://fhb-aachen.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://fhb-aachen.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-A96",
"id" : "http://lobid.org/organisations/DE-A96#!",
Expand All @@ -379,7 +379,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://fhb-bielefeld.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://fhb-bielefeld.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-Bi10",
"id" : "http://lobid.org/organisations/DE-Bi10#!",
Expand All @@ -393,7 +393,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://hsb-bochum.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://hsb-bochum.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-Bm40",
"id" : "http://lobid.org/organisations/DE-Bm40#!",
Expand Down Expand Up @@ -435,7 +435,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://hs-niederrhein.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://hs-niederrhein.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-829",
"id" : "http://lobid.org/organisations/DE-829#!",
Expand All @@ -449,7 +449,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://th-owl.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://th-owl.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-743",
"id" : "http://lobid.org/organisations/DE-743#!",
Expand All @@ -463,7 +463,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://hsb-rhein-waal.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://hsb-rhein-waal.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-1383",
"id" : "http://lobid.org/organisations/DE-1383#!",
Expand All @@ -477,7 +477,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://hsb-ruhr-west.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://hsb-ruhr-west.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-1393",
"id" : "http://lobid.org/organisations/DE-1393#!",
Expand Down Expand Up @@ -505,7 +505,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://thb-koeln.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://thb-koeln.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-832",
"id" : "http://lobid.org/organisations/DE-832#!",
Expand Down Expand Up @@ -603,7 +603,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://ub-siegen.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://ub-siegen.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-467",
"id" : "http://lobid.org/organisations/DE-467#!",
Expand All @@ -617,7 +617,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://w-hs.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://w-hs.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-1010",
"id" : "http://lobid.org/organisations/DE-1010#!",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990052965140206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)990052965140206441" ],
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)HT002529477" ],
"heldBy" : {
"isil" : "DE-468",
"id" : "http://lobid.org/organisations/DE-468#!",
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/990053976760206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
"id" : "http://lobid.org/organisations/DE-467#!",
"label" : "Universitätsbibliothek Siegen"
},
"seeAlso" : [ "https://ub-siegen.digibib.net/search/katalog/record/(DE-605)990053976760206441" ],
"seeAlso" : [ "https://ub-siegen.digibib.net/search/katalog/record/(DE-600)123550-3}" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-467#!",
"label" : "Universitätsbibliothek Siegen"
Expand All @@ -384,7 +384,7 @@
"id" : "http://lobid.org/organisations/DE-468#!",
"label" : "Universitätsbibliothek Wuppertal"
},
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)990053976760206441" ],
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-600)123550-3" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-468#!",
"label" : "Universitätsbibliothek Wuppertal"
Expand Down
Loading

0 comments on commit 063af18

Please sign in to comment.