Skip to content

Commit

Permalink
Merge #2076 from branch '2074-introxOpacLinksNew' of github.com:hbz/l…
Browse files Browse the repository at this point in the history
…obid-resources
  • Loading branch information
dr0i committed Sep 26, 2024
2 parents ddcd72b + 7f29866 commit e663b06
Show file tree
Hide file tree
Showing 52 changed files with 415 additions and 307 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("$i.@opacAlmaMmsId.1")
paste("hasItem[].$last.seeAlso[].$append","$i.@opacAlmaMmsId.1","almaMmsId","$i.@opacAlmaMmsId.2",join_char:"")
elsif exists("$i.@opacLinkZdbId.1")
if exists("$i.@opacLinkZdbId.1")
paste("hasItem[].$last.seeAlso[].$append","$i.@opacLinkZdbId.1","zdbId","$i.@opacLinkZdbId.2",join_char:"")
elsif exists("$i.@opacLinkHbzId.1")
paste("hasItem[].$last.seeAlso[].$append","$i.@opacLinkHbzId.1","hbzId","$i.@opacLinkHbzId.2",join_char:"")
elsif exists("$i.@opacAlmaMmsId.1")
paste("hasItem[].$last.seeAlso[].$append","$i.@opacAlmaMmsId.1","almaMmsId","$i.@opacAlmaMmsId.2",join_char:"")
# elsif exists("$i.@opacLinkIsbn.1")
# paste("hasItem[].$last.seeAlso[].$append","$i.@opacLinkIsbn.1","isbn[].1","$i.@opacLinkIsbn.2",join_char:"")
elsif exists("$i.@opacLinkIssn.1")
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 @@ -219,7 +219,7 @@
"id" : "http://lobid.org/organisations/DE-121#!",
"label" : "Wissenschaftliche Bibliothek der Stadt Trier"
},
"seeAlso" : [ "https://aleph.zbsport.de/F/?func=find-word&scan_code=WRD&scan_word=HT000161712&local_base=str01" ],
"seeAlso" : [ "https://aleph.zbsport.de/F/?local_base=str01&find_code=IDN&request=HT000161712&func=find-b" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-121#!",
"label" : "Wissenschaftliche Bibliothek der Stadt Trier"
Expand Down Expand Up @@ -363,7 +363,7 @@
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990001412590206441" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr[q,any]=990001412590206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
Expand All @@ -379,7 +379,7 @@
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990001412590206441" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr[q,any]=990001412590206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/alma-fix/990016782920206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
"id" : "http://lobid.org/organisations/DE-60#!",
"label" : "Stadt- und Landesbibliothek Dortmund"
},
"seeAlso" : [ "https://stlb-dortmund.digibib.net/search/katalog/record/(DE-605)HT004285445" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/BRIDGE_FIZ-7816#!",
"label" : "Bibliotheken ohne zentrale Katalogisierung (IZ Bridge)"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990021367710206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990021367710206441" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr[q,any]=990021367710206441" ],
"heldBy" : {
"isil" : "DE-466",
"id" : "http://lobid.org/organisations/DE-466#!",
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/alma-fix/990026405480206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"id" : "http://lobid.org/organisations/DE-Sie5#!",
"label" : "Wissenschaftliche Bibliothek des Rhein-Sieg-Kreises"
},
"seeAlso" : [ "https://bib-discover.bib.h-brs.de/discovery/search?query=any,contains,990026405480206441&tab=Everything&search_scope=1044_and_CI&vid=49HBZ_BRS:1044&offset=0" ],
"seeAlso" : [ "https://bib-discover.bib.h-brs.de/discovery/search?query=any,contains,990026405480206441&tab=Sie5&search_scope=Sie5&vid=49HBZ_BRS:Sie5&offset=0" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-1044#!",
"label" : "Hochschul- und Kreisbibliothek Bonn-Rhein-Sieg"
Expand Down Expand Up @@ -221,7 +221,7 @@
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990026405480206441" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr[q,any]=990026405480206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
Expand All @@ -237,7 +237,7 @@
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990026405480206441" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr[q,any]=990026405480206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
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 @@ -262,7 +262,7 @@
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990035016180206441" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr[q,any]=990035016180206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
Expand All @@ -278,7 +278,7 @@
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990035016180206441" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr[q,any]=990035016180206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990050000600206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990050000600206441" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr[q,any]=990050000600206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990051708340206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990051708340206441" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr[q,any]=990051708340206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
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-600)123550-3}" ],
"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 Down Expand Up @@ -605,7 +605,7 @@
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990053976760206441" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr[q,any]=990053976760206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Universitätsbibliothek Paderborn"
Expand Down
Loading

0 comments on commit e663b06

Please sign in to comment.