Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2074-introxOpacLinks #2075

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/990001412590206441.json
Original file line number Diff line number Diff line change
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
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
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/990026405480206441.json
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990053976760206441.json
Original file line number Diff line number Diff line change
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
Loading