Skip to content

Commit

Permalink
Add IZ statement to holding #1866
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Apr 4, 2024
1 parent 21608bd commit d501636
Show file tree
Hide file tree
Showing 126 changed files with 4,933 additions and 203 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/alma/fix/item.fix
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ do list(path:"POR ", "var": "$i")
copy_field("$i.@iz","hasItem[].$last.heldBy.isil")
paste("hasItem[].$last.heldBy.id", "~http://lobid.org/organisations/", "hasItem[].$last.heldBy.isil", "~#!", join_char:"")
copy_field("hasItem[].$last.heldBy.id", "hasItem[].$last.heldBy.label")
paste("hasItem[].$last.heldBy.memberOf.id", "~http://lobid.org/organisations/", "$i.@iz", "~#!", join_char:"")
paste("hasItem[].$last.heldBy.memberOf.label", "~Institutionzone of", "$i.@iz")
# item id is constructed "http://lobid.org/items/[almaMmsId of the record]:[isil of the Owner]:[almaMmsId of the holding]#!"
paste("hasItem[].$last.id", "~http://lobid.org/items/","almaMmsId", "~:", "hasItem[].$last.heldBy.isil","~:", "$i.a","~#!", join_char: "")
end
Expand All @@ -104,6 +106,8 @@ do list(path: "MBD ", "var": "$i")
copy_field("$i.@iz","hasItem[].$last.heldBy.isil")
paste("hasItem[].$last.heldBy.id", "~http://lobid.org/organisations/", "hasItem[].$last.heldBy.isil", "~#!", join_char:"")
copy_field("hasItem[].$last.heldBy.id", "hasItem[].$last.heldBy.label")
paste("hasItem[].$last.heldBy.memberOf.id", "~http://lobid.org/organisations/", "$i.@iz", "~#!", join_char:"")
paste("hasItem[].$last.heldBy.memberOf.label", "~Institutionzone of", "$i.@iz")
# item id is constructed "http://lobid.org/items/[almaMmsId of the record]:[isil of the Owner]:[almaMmsId of the holding]#!"
paste("hasItem[].$last.id", "~http://lobid.org/items/","almaMmsId", "~:", "hasItem[].$last.heldBy.isil","~:", "$i.i", "~#!", join_char: "")
end
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/alma/fix/macros.fix
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ do put_macro("holdingLibrary+opacLink")
call_macro("opacLink", field:"@iz")
end
paste("hasItem[].$last.heldBy.id", "~http://lobid.org/organisations/", "hasItem[].$last.heldBy.isil", "~#!", join_char:"")
paste("hasItem[].$last.heldBy.memberOf.id", "~http://lobid.org/organisations/", "$i.@iz", "~#!", join_char:"")
paste("hasItem[].$last.heldBy.memberOf.label", "~Institutionzone of", "$i.@iz")
copy_field("hasItem[].$last.heldBy.id", "hasItem[].$last.heldBy.label")
# item id is constructed "http://lobid.org/items/[almaMmsId of the record]:[isil of the Owner]:[almaMmsId of the holding]#!"
paste("hasItem[].$last.id", "~http://lobid.org/items/","almaMmsId", "~:", "hasItem[].$last.heldBy.isil","~:", "$[mmsIdField]","~#!", join_char: "")
Expand Down
60 changes: 60 additions & 0 deletions src/test/resources/alma-fix/990001412590206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@
"heldBy" : {
"isil" : "DE-468",
"id" : "http://lobid.org/organisations/DE-468#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-468#!",
"label" : "Institutionzone of DE-468"
},
"label" : "Universitätsbibliothek Wuppertal"
},
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
Expand All @@ -131,6 +135,10 @@
"heldBy" : {
"isil" : "DE-708",
"id" : "http://lobid.org/organisations/DE-708#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-708#!",
"label" : "Institutionzone of DE-708"
},
"label" : "Universitätsbibliothek der Fernuniversität"
},
"seeAlso" : [ "https://fub-hagen.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
Expand All @@ -145,6 +153,10 @@
"heldBy" : {
"isil" : "DE-929",
"id" : "http://lobid.org/organisations/DE-929#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "Institutionzone of DE-929"
},
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Rheinische Landesbibliothek"
},
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
Expand All @@ -159,6 +171,10 @@
"heldBy" : {
"isil" : "DE-929",
"id" : "http://lobid.org/organisations/DE-929#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "Institutionzone of DE-929"
},
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Rheinische Landesbibliothek"
},
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
Expand All @@ -173,6 +189,10 @@
"heldBy" : {
"isil" : "DE-929",
"id" : "http://lobid.org/organisations/DE-929#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "Institutionzone of DE-929"
},
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Rheinische Landesbibliothek"
},
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
Expand All @@ -187,6 +207,10 @@
"heldBy" : {
"isil" : "DE-121",
"id" : "http://lobid.org/organisations/DE-121#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-121#!",
"label" : "Institutionzone of 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" ],
Expand All @@ -201,6 +225,10 @@
"heldBy" : {
"isil" : "DE-290",
"id" : "http://lobid.org/organisations/DE-290#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-290#!",
"label" : "Institutionzone of DE-290"
},
"label" : "Universitätsbibliothek Dortmund"
},
"seeAlso" : [ "https://katalog.ub.tu-dortmund.de/id/ir01388a:ubd.lobid:990001412590206441" ],
Expand All @@ -215,6 +243,10 @@
"heldBy" : {
"isil" : "DE-5",
"id" : "http://lobid.org/organisations/DE-5#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Institutionzone of DE-5"
},
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990001412590206441" ],
Expand All @@ -229,6 +261,10 @@
"heldBy" : {
"isil" : "DE-361",
"id" : "http://lobid.org/organisations/DE-361#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-361#!",
"label" : "Institutionzone of DE-361"
},
"label" : "Universitätsbibliothek Bielefeld"
},
"seeAlso" : [ "https://katalogplus.ub.uni-bielefeld.de/Search/Results?type=NZsatz&lookfor=HT000161712" ],
Expand All @@ -243,6 +279,10 @@
"heldBy" : {
"isil" : "DE-61",
"id" : "http://lobid.org/organisations/DE-61#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-61#!",
"label" : "Institutionzone of DE-61"
},
"label" : "Universitäts- und Landesbibliothek Düsseldorf"
},
"seeAlso" : [ "https://katalog.ulb.hhu.de/Search/Results?lookfor=id_marc_001_txt:990001412590206441" ],
Expand All @@ -257,6 +297,10 @@
"heldBy" : {
"isil" : "DE-38",
"id" : "http://lobid.org/organisations/DE-38#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-38#!",
"label" : "Institutionzone of DE-38"
},
"label" : "Universitäts- und Stadtbibliothek Köln, Hauptabteilung"
},
"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 " ],
Expand All @@ -271,6 +315,10 @@
"heldBy" : {
"isil" : "DE-6",
"id" : "http://lobid.org/organisations/DE-6#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "Institutionzone of DE-6"
},
"label" : "Universitäts- und Landesbibliothek Münster, Zentralbibliothek"
},
"seeAlso" : [ "https://hbz-ulbms.primo.exlibrisgroup.com/discovery/search?query=any,contains,990001412590206441&tab=Everything&search_scope=MyInst_and_CI&vid=49HBZ_ULM:VU2&offset=0" ],
Expand All @@ -285,6 +333,10 @@
"heldBy" : {
"isil" : "DE-467",
"id" : "http://lobid.org/organisations/DE-467#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-467#!",
"label" : "Institutionzone of DE-467"
},
"label" : "Universitätsbibliothek Siegen"
},
"seeAlso" : [ "https://ub-siegen.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
Expand All @@ -299,6 +351,10 @@
"heldBy" : {
"isil" : "DE-466",
"id" : "http://lobid.org/organisations/DE-466#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Institutionzone of DE-466"
},
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990001412590206441" ],
Expand All @@ -311,6 +367,10 @@
"heldBy" : {
"isil" : "DE-466",
"id" : "http://lobid.org/organisations/DE-466#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "Institutionzone of DE-466"
},
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990001412590206441" ],
Expand Down
12 changes: 12 additions & 0 deletions src/test/resources/alma-fix/990011470300206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@
"heldBy" : {
"isil" : "DE-385",
"id" : "http://lobid.org/organisations/DE-385#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-385#!",
"label" : "Institutionzone of DE-385"
},
"label" : "Universitätsbibliothek Trier"
},
"seeAlso" : [ "https://tricat.uni-trier.de/permalink/49HBZ_UBT/1hikhph/alma990011470300206441" ],
Expand All @@ -113,6 +117,10 @@
"heldBy" : {
"isil" : "DE-6-015",
"id" : "http://lobid.org/organisations/DE-6-015#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "Institutionzone of DE-6"
},
"label" : "Universität Münster, Philosophisches Seminar, Bibliothek"
},
"seeAlso" : [ "https://hbz-ulbms.primo.exlibrisgroup.com/discovery/search?query=any,contains,990011470300206441&tab=Everything&search_scope=MyInst_and_CI&vid=49HBZ_ULM:VU2&offset=0" ],
Expand All @@ -125,6 +133,10 @@
"heldBy" : {
"isil" : "DE-385",
"id" : "http://lobid.org/organisations/DE-385#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-385#!",
"label" : "Institutionzone of DE-385"
},
"label" : "Universitätsbibliothek Trier"
},
"seeAlso" : [ "https://tricat.uni-trier.de/permalink/49HBZ_UBT/1hikhph/alma990011470300206441" ],
Expand Down
16 changes: 16 additions & 0 deletions src/test/resources/alma-fix/990014830510206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@
"heldBy" : {
"isil" : "DE-385",
"id" : "http://lobid.org/organisations/DE-385#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-385#!",
"label" : "Institutionzone of DE-385"
},
"label" : "Universitätsbibliothek Trier"
},
"seeAlso" : [ "https://tricat.uni-trier.de/permalink/49HBZ_UBT/1hikhph/alma990014830510206441" ],
Expand All @@ -116,6 +120,10 @@
"heldBy" : {
"isil" : "DE-5-58",
"id" : "http://lobid.org/organisations/DE-5-58#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "Institutionzone of DE-5"
},
"label" : "Universität Bonn, Institut für Sprach-, Medien- und Musikwissenschaft, Bibliothek für Medien- und Musikwissenschaft"
},
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990014830510206441" ],
Expand All @@ -130,6 +138,10 @@
"heldBy" : {
"isil" : "DE-465",
"id" : "http://lobid.org/organisations/DE-465#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-465#!",
"label" : "Institutionzone of DE-465"
},
"label" : "Universitätsbibliothek Duisburg-Essen"
},
"seeAlso" : [ "https://primo.uni-due.de/discovery/search?query=any,contains,990014830510206441&tab=Everything&search_scope=MyInst_and_CI_custom&vid=49HBZ_UDE:UDE&offset=0" ],
Expand All @@ -142,6 +154,10 @@
"heldBy" : {
"isil" : "DE-385",
"id" : "http://lobid.org/organisations/DE-385#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-385#!",
"label" : "Institutionzone of DE-385"
},
"label" : "Universitätsbibliothek Trier"
},
"seeAlso" : [ "https://tricat.uni-trier.de/permalink/49HBZ_UBT/1hikhph/alma990014830510206441" ],
Expand Down
28 changes: 28 additions & 0 deletions src/test/resources/alma-fix/990016782920206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
"heldBy" : {
"isil" : "DE-1156",
"id" : "http://lobid.org/organisations/DE-1156#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-1156#!",
"label" : "Institutionzone of DE-1156"
},
"label" : "Folkwang Universität der Künste | Bibliothek"
},
"seeAlso" : [ "https://folkwang-uni.digibib.net/search/katalog/record/56:HT004285445" ],
Expand All @@ -105,6 +109,10 @@
"heldBy" : {
"isil" : "DE-575",
"id" : "http://lobid.org/organisations/DE-575#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-51#!",
"label" : "Institutionzone of DE-51"
},
"label" : "Hochschule für Musik Detmold, Bibliothek"
},
"seeAlso" : [ "https://det.digibib.net/search/katalog/record/(DE-605)HT004285445" ],
Expand All @@ -119,6 +127,10 @@
"heldBy" : {
"isil" : "DE-107",
"id" : "http://lobid.org/organisations/DE-107#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "Institutionzone of DE-929"
},
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Pfälzische Landesbibliothek"
},
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT004285445" ],
Expand All @@ -133,6 +145,10 @@
"heldBy" : {
"isil" : "DE-6-286",
"id" : "http://lobid.org/organisations/DE-6-286#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "Institutionzone of DE-6"
},
"label" : "Universität Münster, Institut für Musikpädagogik, Bibliothek"
},
"seeAlso" : [ "https://hbz-ulbms.primo.exlibrisgroup.com/discovery/search?query=any,contains,990016782920206441&tab=Everything&search_scope=MyInst_and_CI&vid=49HBZ_ULM:VU2&offset=0" ],
Expand All @@ -145,6 +161,10 @@
"heldBy" : {
"isil" : "DE-52",
"id" : "http://lobid.org/organisations/DE-52#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/7816#!",
"label" : "Institutionzone of 7816"
},
"label" : "Stadtbibliothek Aachen"
},
"id" : "http://lobid.org/items/990016782920206441:DE-52:228656420007816#!"
Expand All @@ -156,6 +176,10 @@
"heldBy" : {
"isil" : "DE-62",
"id" : "http://lobid.org/organisations/DE-62#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/7816#!",
"label" : "Institutionzone of 7816"
},
"label" : "Stadtbibliothek Wuppertal"
},
"id" : "http://lobid.org/items/990016782920206441:DE-62:228656390007816#!"
Expand All @@ -167,6 +191,10 @@
"heldBy" : {
"isil" : "DE-60",
"id" : "http://lobid.org/organisations/DE-60#!",
"memberOf" : {
"id" : "http://lobid.org/organisations/7816#!",
"label" : "Institutionzone of 7816"
},
"label" : "Stadt- und Landesbibliothek Dortmund"
},
"id" : "http://lobid.org/items/990016782920206441:DE-60:228656400007816#!"
Expand Down
Loading

0 comments on commit d501636

Please sign in to comment.