Skip to content

Commit

Permalink
Merge #1937 from branch '1888-reactivateIssnOpacLookup' of https://gi…
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Nov 2, 2023
2 parents 40f2c43 + 3a3edc5 commit d1f3c0b
Show file tree
Hide file tree
Showing 91 changed files with 567 additions and 483 deletions.
14 changes: 7 additions & 7 deletions src/main/resources/alma/fix/macros.fix
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ do put_macro("opacLink")
copy_field("$i.$[field]", "$i.@opacAlmaMmsId")
lookup("$i.@opacAlmaMmsId","isil2opac_almaMmsId", delete:"true")
split_field("$i.@opacAlmaMmsId","\\{almaMmsId\\}")
# if exists("issn[].1")
# copy_field("$i.$[field]", "$i.@opacLinkIssn")
# lookup("$i.@opacLinkIssn","isil2opac_issn", delete:"true")
# split_field("$i.@opacLinkIssn","\\{issn\\}")
# end
if exists("issn[].1")
copy_field("$i.$[field]", "$i.@opacLinkIssn")
lookup("$i.@opacLinkIssn","isil2opac_issn", delete:"true")
split_field("$i.@opacLinkIssn","\\{issn\\}")
end
# if exists("isbn[].1")
# copy_field("$i.$[field]", "$i.@opacLinkIsbn")
# lookup("$i.@opacLinkIsbn","isil2opac_isbn", delete:"true")
Expand All @@ -317,8 +317,8 @@ do put_macro("opacLink")
paste("hasItem[].$last.seeAlso[].$append","$i.@opacLinkHbzId.1","hbzId","$i.@opacLinkHbzId.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")
# paste("hasItem[].$last.seeAlso[].$append","$i.@opacLinkIssn.1","issn[].1","$i.@opacLinkIssn.2",join_char:"")
elsif exists("$i.@opacLinkIssn.1")
paste("hasItem[].$last.seeAlso[].$append","$i.@opacLinkIssn.1","issn[].1","$i.@opacLinkIssn.2",join_char:"")
end
end

Expand Down
16 changes: 9 additions & 7 deletions src/test/resources/alma-fix/990001412590206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Rheinische Landesbibliothek"
},
"seeAlso" : [ "http://kat.lbz-rlp.de/webOPACClient.lbzsis/start.do?Language=De&Query=010%3D%22HT000161712%22&selectedViewBranchlib=0" ],
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"id" : "http://lobid.org/items/990001412590206441:DE-929:2367328890007506#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -161,7 +161,7 @@
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Rheinische Landesbibliothek"
},
"seeAlso" : [ "http://kat.lbz-rlp.de/webOPACClient.lbzsis/start.do?Language=De&Query=010%3D%22HT000161712%22&selectedViewBranchlib=0" ],
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"id" : "http://lobid.org/items/990001412590206441:DE-929:2367328900007506#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -175,7 +175,7 @@
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Rheinische Landesbibliothek"
},
"seeAlso" : [ "http://kat.lbz-rlp.de/webOPACClient.lbzsis/start.do?Language=De&Query=010%3D%22HT000161712%22&selectedViewBranchlib=0" ],
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"id" : "http://lobid.org/items/990001412590206441:DE-929:2367328910007506#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -189,6 +189,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" ],
"id" : "http://lobid.org/items/990001412590206441:DE-121:2319004410007826#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down Expand Up @@ -230,6 +231,7 @@
"id" : "http://lobid.org/organisations/DE-361#!",
"label" : "Universitätsbibliothek Bielefeld"
},
"seeAlso" : [ "https://katalogplus.ub.uni-bielefeld.de/Search/Results?type=NZsatz&lookfor=HT000161712" ],
"id" : "http://lobid.org/items/990001412590206441:DE-361:23278036660006442#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -243,7 +245,7 @@
"id" : "http://lobid.org/organisations/DE-61#!",
"label" : "Universitäts- und Landesbibliothek Düsseldorf"
},
"seeAlso" : [ "https://katalog.ulb.hhu.de/Search/Results?lookfor=id_marc_001_txt:HT000161712" ],
"seeAlso" : [ "https://katalog.ulb.hhu.de/Search/Results?lookfor=id_marc_001_txt:990001412590206441" ],
"id" : "http://lobid.org/items/990001412590206441:DE-61:23299197890006443#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -257,7 +259,7 @@
"id" : "http://lobid.org/organisations/DE-38#!",
"label" : "Universitäts- und Stadtbibliothek Köln, Hauptabteilung"
},
"seeAlso" : [ "http://www.ub.uni-koeln.de/cgi-bin/redirect.pl?referrer=hbzvk&service=showrecord&hbzid=HT000161712" ],
"seeAlso" : [ "https://katalog.ub.uni-koeln.de/portal/search.html?num=20&page=1&l=de&srt=year_desc&tab=books&hbzid=990001412590206441&fdb=uni " ],
"id" : "http://lobid.org/items/990001412590206441:DE-38:23307640680006476#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down Expand Up @@ -299,7 +301,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=HT000161712" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990001412590206441" ],
"id" : "http://lobid.org/items/990001412590206441:DE-466:23135518530006463#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -311,7 +313,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=HT000161712" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990001412590206441" ],
"id" : "http://lobid.org/items/990001412590206441:DE-466:22135518500006463#!"
} ],
"medium" : [ {
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 @@ -121,7 +121,7 @@
"id" : "http://lobid.org/organisations/DE-107#!",
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Pfälzische Landesbibliothek"
},
"seeAlso" : [ "http://kat.lbz-rlp.de/webOPACClient.lbzsis/start.do?Language=De&Query=010%3D%22HT004285445%22&selectedViewBranchlib=0" ],
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT004285445" ],
"id" : "http://lobid.org/items/990016782920206441:DE-107:237988430007506#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/alma-fix/990021367710206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
"id" : "http://lobid.org/organisations/DE-361#!",
"label" : "Universitätsbibliothek Bielefeld"
},
"seeAlso" : [ "https://katalogplus.ub.uni-bielefeld.de/Search/Results?type=NZsatz&lookfor=HT005207972" ],
"id" : "http://lobid.org/items/990021367710206441:DE-361:23251929370006442#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -158,7 +159,7 @@
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "NurTitel" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=HT005207972" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990021367710206441" ],
"heldBy" : {
"isil" : "DE-466",
"id" : "http://lobid.org/organisations/DE-466#!",
Expand Down
6 changes: 4 additions & 2 deletions src/test/resources/alma-fix/990021974470206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
"id" : "http://lobid.org/organisations/DE-361#!",
"label" : "Universitätsbibliothek Bielefeld"
},
"seeAlso" : [ "https://katalogplus.ub.uni-bielefeld.de/Search/Results?type=NZsatz&lookfor=HT005271161" ],
"id" : "http://lobid.org/items/990021974470206441:DE-361:23252165950006442#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -153,6 +154,7 @@
"id" : "http://lobid.org/organisations/DE-294-11#!",
"label" : "Ruhr-Universität Bochum, Fakultät für Geschichtswissenschaft, Historische Bibliothek"
},
"seeAlso" : [ "https://hbz-ubo.primo.exlibrisgroup.com/permalink/49HBZ_UBO/mnkbqv/alma990021974470206441" ],
"id" : "http://lobid.org/items/990021974470206441:DE-294-11:23118570990006471#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -166,7 +168,7 @@
"id" : "http://lobid.org/organisations/DE-38#!",
"label" : "Universitäts- und Stadtbibliothek Köln, Hauptabteilung"
},
"seeAlso" : [ "http://www.ub.uni-koeln.de/cgi-bin/redirect.pl?referrer=hbzvk&service=showrecord&hbzid=HT005271161" ],
"seeAlso" : [ "https://katalog.ub.uni-koeln.de/portal/search.html?num=20&page=1&l=de&srt=year_desc&tab=books&hbzid=990021974470206441&fdb=uni " ],
"id" : "http://lobid.org/items/990021974470206441:DE-38:23290695210006476#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -180,7 +182,7 @@
"id" : "http://lobid.org/organisations/DE-38-208#!",
"label" : "Gemeinschaftsbibliothek Internationales Recht"
},
"seeAlso" : [ "http://www.ub.uni-koeln.de/cgi-bin/redirect.pl?referrer=hbzvk&service=showrecord&hbzid=HT005271161" ],
"seeAlso" : [ "https://katalog.ub.uni-koeln.de/portal/search.html?num=20&page=1&l=de&srt=year_desc&tab=books&hbzid=990021974470206441&fdb=uni " ],
"id" : "http://lobid.org/items/990021974470206441:DE-38-208:23290695190006476#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down
13 changes: 7 additions & 6 deletions src/test/resources/alma-fix/990026405480206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"id" : "http://lobid.org/organisations/DE-Sie5#!",
"label" : "Wissenschaftliche Bibliothek des Rhein-Sieg-Kreises"
},
"seeAlso" : [ "https://bib-discover.bib.h-brs.de/discovery/fulldisplay?docid=alma990026405480206441" ],
"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" ],
"id" : "http://lobid.org/items/990026405480206441:DE-Sie5:2365555310006452#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down Expand Up @@ -130,7 +130,7 @@
"id" : "http://lobid.org/organisations/DE-Zw1#!",
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Bibliotheca Bipontina"
},
"seeAlso" : [ "http://kat.lbz-rlp.de/webOPACClient.lbzsis/start.do?Language=De&Query=010%3D%22HT006813395%22&selectedViewBranchlib=2" ],
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT006813395" ],
"id" : "http://lobid.org/items/990026405480206441:DE-Zw1:2310230370007506#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -144,7 +144,7 @@
"id" : "http://lobid.org/organisations/DE-Zw1#!",
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Bibliotheca Bipontina"
},
"seeAlso" : [ "http://kat.lbz-rlp.de/webOPACClient.lbzsis/start.do?Language=De&Query=010%3D%22HT006813395%22&selectedViewBranchlib=2" ],
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT006813395" ],
"id" : "http://lobid.org/items/990026405480206441:DE-Zw1:2310230380007506#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -158,6 +158,7 @@
"id" : "http://lobid.org/organisations/DE-361#!",
"label" : "Universitätsbibliothek Bielefeld"
},
"seeAlso" : [ "https://katalogplus.ub.uni-bielefeld.de/Search/Results?type=NZsatz&lookfor=HT006813395" ],
"id" : "http://lobid.org/items/990026405480206441:DE-361:23250908000006442#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -171,7 +172,7 @@
"id" : "http://lobid.org/organisations/DE-38-420#!",
"label" : "Historisches Institut, Abteilung für Mittlere und Neuere Geschichte mit Abteilung für Nationalismusforschung, Bibliothek"
},
"seeAlso" : [ "http://www.ub.uni-koeln.de/cgi-bin/redirect.pl?referrer=hbzvk&service=showrecord&hbzid=HT006813395" ],
"seeAlso" : [ "https://katalog.ub.uni-koeln.de/portal/search.html?num=20&page=1&l=de&srt=year_desc&tab=books&hbzid=990026405480206441&fdb=uni " ],
"id" : "http://lobid.org/items/990026405480206441:DE-38-420:23288776350006476#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -185,7 +186,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=HT006813395" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990026405480206441" ],
"id" : "http://lobid.org/items/990026405480206441:DE-466:23148766830006463#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -197,7 +198,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=HT006813395" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990026405480206441" ],
"id" : "http://lobid.org/items/990026405480206441:DE-466:22148766820006463#!"
} ],
"medium" : [ {
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/alma-fix/990033263300206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"id" : "http://lobid.org/organisations/DE-361#!",
"label" : "Universitätsbibliothek Bielefeld"
},
"seeAlso" : [ "https://katalogplus.ub.uni-bielefeld.de/Search/Results?type=NZsatz&lookfor=HT008389117" ],
"id" : "http://lobid.org/items/990033263300206441:DE-361:23234824210006442#!"
} ],
"medium" : [ {
Expand Down
8 changes: 5 additions & 3 deletions src/test/resources/alma-fix/990035016180206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"id" : "http://lobid.org/organisations/DE-361#!",
"label" : "Universitätsbibliothek Bielefeld"
},
"seeAlso" : [ "https://katalogplus.ub.uni-bielefeld.de/Search/Results?type=NZsatz&lookfor=HT008733617" ],
"id" : "http://lobid.org/items/990035016180206441:DE-361:23262944040006442#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -131,6 +132,7 @@
"id" : "http://lobid.org/organisations/DE-294#!",
"label" : "Ruhr-Universität Bochum, Universitätsbibliothek"
},
"seeAlso" : [ "https://hbz-ubo.primo.exlibrisgroup.com/permalink/49HBZ_UBO/mnkbqv/alma990035016180206441" ],
"id" : "http://lobid.org/items/990035016180206441:DE-294:23153395620006471#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down Expand Up @@ -172,7 +174,7 @@
"id" : "http://lobid.org/organisations/DE-38#!",
"label" : "Universitäts- und Stadtbibliothek Köln, Hauptabteilung"
},
"seeAlso" : [ "http://www.ub.uni-koeln.de/cgi-bin/redirect.pl?referrer=hbzvk&service=showrecord&hbzid=HT008733617" ],
"seeAlso" : [ "https://katalog.ub.uni-koeln.de/portal/search.html?num=20&page=1&l=de&srt=year_desc&tab=books&hbzid=990035016180206441&fdb=uni " ],
"id" : "http://lobid.org/items/990035016180206441:DE-38:23229037390006476#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down Expand Up @@ -214,7 +216,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=HT008733617" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990035016180206441" ],
"id" : "http://lobid.org/items/990035016180206441:DE-466:23125280390006463#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -226,7 +228,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=HT008733617" ],
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990035016180206441" ],
"id" : "http://lobid.org/items/990035016180206441:DE-466:22125280380006463#!"
}, {
"label" : "lobid Bestandsressource",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/990041403870206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"id" : "http://lobid.org/organisations/DE-38#!",
"label" : "Universitäts- und Stadtbibliothek Köln, Hauptabteilung"
},
"seeAlso" : [ "http://www.ub.uni-koeln.de/cgi-bin/redirect.pl?referrer=hbzvk&service=showrecord&hbzid=HT009965981" ],
"seeAlso" : [ "https://katalog.ub.uni-koeln.de/portal/search.html?num=20&page=1&l=de&srt=year_desc&tab=books&hbzid=990041403870206441&fdb=uni " ],
"id" : "http://lobid.org/items/990041403870206441:DE-38:23320523800006476#!"
} ],
"medium" : [ {
Expand Down
Loading

0 comments on commit d1f3c0b

Please sign in to comment.