Skip to content

Commit

Permalink
Prioritize AlmaMmsId for opac links #1888
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Oct 19, 2023
1 parent d6d2d12 commit fbf66de
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 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 @@ -309,12 +309,12 @@ do put_macro("opacLink")
split_field("$i.@opacLinkZdbId","\\{isbn\\}")
end
set_array("hasItem[].$last.seeAlso[]")
if exists("[email protected]")
if 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]","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
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 @@ -401,7 +401,7 @@
"id" : "http://lobid.org/organisations/DE-290#!",
"label" : "Universitätsbibliothek Dortmund"
},
"seeAlso" : [ "https://www.ub.tu-dortmund.de/webOPACClient/start.do?Query=-1=%22123550-3%22" ],
"seeAlso" : [ "https://katalog.ub.tu-dortmund.de/id/ir01388a:ubd.lobid:990053976760206441" ],
"id" : "http://lobid.org/items/990053976760206441:DE-290:22189310720006445#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990054215550206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%221257-9%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990054215550206441" ],
"id" : "http://lobid.org/items/990054215550206441:DE-5:22235621980006467#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990054301770206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://www.ub.tu-dortmund.de/webOPACClient/start.do?Query=-1=%22133469-4%22" ],
"seeAlso" : [ "https://katalog.ub.tu-dortmund.de/id/ir01388a:ubd.lobid:990054301770206441" ],
"heldBy" : {
"isil" : "DE-290",
"id" : "http://lobid.org/organisations/DE-290#!",
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/990054345550206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%22619424-2%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990054345550206441" ],
"id" : "http://lobid.org/items/990054345550206441:DE-5:22214232350006467#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -670,7 +670,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%22619424-2%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990054345550206441" ],
"id" : "http://lobid.org/items/990054345550206441:DE-5:22214232360006467#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/alma-fix/990109712970206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222000012-1%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990109712970206441" ],
"id" : "http://lobid.org/items/990109712970206441:DE-5:22316628570006467#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -654,7 +654,7 @@
"id" : "http://lobid.org/organisations/DE-Bo59#!",
"label" : "Beethoven-Haus Bonn, Bibliothek"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222000012-1%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990109712970206441" ],
"id" : "http://lobid.org/items/990109712970206441:DE-Bo59:22316628560006467#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -667,7 +667,7 @@
"id" : "http://lobid.org/organisations/DE-Bo59#!",
"label" : "Beethoven-Haus Bonn, Bibliothek"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222000012-1%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990109712970206441" ],
"id" : "http://lobid.org/items/990109712970206441:DE-Bo59:22316628550006467#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990133067580206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
"label" : "Electronic Portfolio",
"electronicLocator" : "https://eu04.alma.exlibrisgroup.com/view/uresolver/49HBZ_ULB/openurl?u.ignore_date_coverage=true&portfolio_pid=53804555180006441&Force_direct=true",
"sublocation" : "https://hbz-network.userservices.exlibrisgroup.com/view/uresolver/49HBZ_ULB/openurl?u.ignore_date_coverage=true&rft.mms_id=990133067580206441",
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222163340-X%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990133067580206441" ],
"heldBy" : {
"isil" : "DE-5",
"id" : "http://lobid.org/organisations/DE-5#!",
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/alma-fix/990184127410206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
"label" : "Electronic Portfolio",
"electronicLocator" : "https://eu04.alma.exlibrisgroup.com/view/uresolver/49HBZ_ULB/openurl?u.ignore_date_coverage=true&portfolio_pid=53738793900006441&Force_direct=true",
"sublocation" : "https://hbz-network.userservices.exlibrisgroup.com/view/uresolver/49HBZ_ULB/openurl?u.ignore_date_coverage=true&rft.mms_id=990184127410206441",
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222594002-8%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990184127410206441" ],
"heldBy" : {
"isil" : "DE-5",
"id" : "http://lobid.org/organisations/DE-5#!",
Expand Down Expand Up @@ -240,7 +240,7 @@
"label" : "Electronic Portfolio",
"electronicLocator" : "https://eu04.alma.exlibrisgroup.com/view/uresolver/49HBZ_ULB/openurl?u.ignore_date_coverage=true&portfolio_pid=53738793940006441&Force_direct=true",
"sublocation" : "https://hbz-network.userservices.exlibrisgroup.com/view/uresolver/49HBZ_ULB/openurl?u.ignore_date_coverage=true&rft.mms_id=990184127410206441",
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222594002-8%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990184127410206441" ],
"heldBy" : {
"isil" : "DE-5",
"id" : "http://lobid.org/organisations/DE-5#!",
Expand Down Expand Up @@ -275,7 +275,7 @@
"label" : "Electronic Portfolio",
"electronicLocator" : "https://eu04.alma.exlibrisgroup.com/view/uresolver/49HBZ_ULB/openurl?u.ignore_date_coverage=true&portfolio_pid=53804344220006441&Force_direct=true",
"sublocation" : "https://hbz-network.userservices.exlibrisgroup.com/view/uresolver/49HBZ_ULB/openurl?u.ignore_date_coverage=true&rft.mms_id=990184127410206441",
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222594002-8%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990184127410206441" ],
"heldBy" : {
"isil" : "DE-5",
"id" : "http://lobid.org/organisations/DE-5#!",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990193229450206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
"label" : "Electronic Portfolio",
"electronicLocator" : "https://eu04.alma.exlibrisgroup.com/view/uresolver/49HBZ_ULB/openurl?u.ignore_date_coverage=true&portfolio_pid=53807024380006441&Force_direct=true",
"sublocation" : "https://hbz-network.userservices.exlibrisgroup.com/view/uresolver/49HBZ_ULB/openurl?u.ignore_date_coverage=true&rft.mms_id=990193229450206441",
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222685248-2%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990193229450206441" ],
"heldBy" : {
"isil" : "DE-5",
"id" : "http://lobid.org/organisations/DE-5#!",
Expand Down
14 changes: 7 additions & 7 deletions src/test/resources/alma-fix/99370678063606441.json
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
"id" : "http://lobid.org/organisations/DE-1044#!",
"label" : "Hochschul- und Kreisbibliothek Bonn-Rhein-Sieg"
},
"seeAlso" : [ "https://bib-sisis.bib.hochschule-bonn-rhein-sieg.de/webOPACClient/start.do?Query=-1=%222598795-1%22" ],
"seeAlso" : [ "https://bib-discover.bib.h-brs.de/discovery/fulldisplay?docid=alma99370678063606441" ],
"id" : "http://lobid.org/items/99370678063606441:DE-1044:5352012540006452#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand Down Expand Up @@ -549,7 +549,7 @@
"id" : "http://lobid.org/organisations/DE-290#!",
"label" : "Universitätsbibliothek Dortmund"
},
"seeAlso" : [ "https://www.ub.tu-dortmund.de/webOPACClient/start.do?Query=-1=%222598795-1%22" ],
"seeAlso" : [ "https://katalog.ub.tu-dortmund.de/id/ir01388a:ubd.lobid:99370678063606441" ],
"id" : "http://lobid.org/items/99370678063606441:DE-290:53206901250006445#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand All @@ -561,7 +561,7 @@
"id" : "http://lobid.org/organisations/DE-290#!",
"label" : "Universitätsbibliothek Dortmund"
},
"seeAlso" : [ "https://www.ub.tu-dortmund.de/webOPACClient/start.do?Query=-1=%222598795-1%22" ],
"seeAlso" : [ "https://katalog.ub.tu-dortmund.de/id/ir01388a:ubd.lobid:99370678063606441" ],
"id" : "http://lobid.org/items/99370678063606441:DE-290:53230941160006445#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand All @@ -573,7 +573,7 @@
"id" : "http://lobid.org/organisations/DE-290#!",
"label" : "Universitätsbibliothek Dortmund"
},
"seeAlso" : [ "https://www.ub.tu-dortmund.de/webOPACClient/start.do?Query=-1=%222598795-1%22" ],
"seeAlso" : [ "https://katalog.ub.tu-dortmund.de/id/ir01388a:ubd.lobid:99370678063606441" ],
"id" : "http://lobid.org/items/99370678063606441:DE-290:53216211500006445#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand Down Expand Up @@ -609,7 +609,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222598795-1%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma99370678063606441" ],
"id" : "http://lobid.org/items/99370678063606441:DE-5:53320721620006467#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand All @@ -621,7 +621,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222598795-1%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma99370678063606441" ],
"id" : "http://lobid.org/items/99370678063606441:DE-5:53349719870006467#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand All @@ -633,7 +633,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222598795-1%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma99370678063606441" ],
"id" : "http://lobid.org/items/99370678063606441:DE-5:53320689660006467#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/99370682219806441.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222745694-8%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma99370682219806441" ],
"id" : "http://lobid.org/items/99370682219806441:DE-5:53346185050006467#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand All @@ -220,7 +220,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222745694-8%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma99370682219806441" ],
"id" : "http://lobid.org/items/99370682219806441:DE-5:53346309900006467#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99370694196806441.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222669828-6%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma99370694196806441" ],
"id" : "http://lobid.org/items/99370694196806441:DE-5:53333829220006467#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/99370699582506441.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://opac2.ulb.uni-bonn.de:8080/webOPACClient/start.do?Query=-1=%222508993-6%22" ],
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma99370699582506441" ],
"id" : "http://lobid.org/items/99370699582506441:DE-5:53355917830006467#!"
}, {
"type" : [ "Item", "DigitalDocument" ],
Expand Down

0 comments on commit fbf66de

Please sign in to comment.