Skip to content

Commit

Permalink
Change order of opac link mappins #2074
Browse files Browse the repository at this point in the history
Only Introx Bibs have almaMmsId, hbzId and zdbId, other libraries have only the first or the others.
  • Loading branch information
TobiasNx committed Sep 25, 2024
1 parent d4773b5 commit 7f29866
Show file tree
Hide file tree
Showing 47 changed files with 1,306 additions and 1,306 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/alma/fix/macros.fix
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,12 @@ do put_macro("opacLink")
# split_field("$i.@opacLinkZdbId","\\{isbn\\}")
# end
set_array("hasItem[].$last.seeAlso[]")
if exists("[email protected]")
paste("hasItem[].$last.seeAlso[].$append","[email protected]","almaMmsId","[email protected]",join_char:"")
elsif exists("[email protected]")
if exists("[email protected]")
paste("hasItem[].$last.seeAlso[].$append","[email protected]","zdbId","[email protected]",join_char:"")
elsif exists("[email protected]")
paste("hasItem[].$last.seeAlso[].$append","[email protected]","hbzId","[email protected]",join_char:"")
elsif exists("[email protected]")
paste("hasItem[].$last.seeAlso[].$append","[email protected]","almaMmsId","[email protected]",join_char:"")
# elsif exists("[email protected]")
# paste("hasItem[].$last.seeAlso[].$append","[email protected]","isbn[].1","[email protected]",join_char:"")
elsif exists("[email protected]")
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
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990026405480206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"id" : "http://lobid.org/organisations/DE-Due62#!",
"label" : "Hochschulbibliothek der Hochschule Düsseldorf"
},
"seeAlso" : [ "https://hs-duesseldorf.digibib.net/search/katalog/record/(DE-605)990026405480206441" ],
"seeAlso" : [ "https://hs-duesseldorf.digibib.net/search/katalog/record/(DE-605)HT006813395" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-Due62#!",
"label" : "Hochschulbibliothek der Hochschule Düsseldorf"
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
26 changes: 13 additions & 13 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 @@ -421,7 +421,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://hs-duesseldorf.digibib.net/search/katalog/record/(DE-605)990050000600206441" ],
"seeAlso" : [ "https://hs-duesseldorf.digibib.net/search/katalog/record/(DE-605)HT006855611" ],
"heldBy" : {
"isil" : "DE-Due62",
"id" : "http://lobid.org/organisations/DE-Due62#!",
Expand All @@ -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 7f29866

Please sign in to comment.