Skip to content

Commit

Permalink
Add IZ as inCollection statement of an item #1866
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed May 16, 2024
1 parent 51907ed commit 0362c96
Show file tree
Hide file tree
Showing 128 changed files with 18,702 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/alma/fix/item.fix
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ 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")
set_array("hasItem[].$last.inCollection[]")
paste("hasItem[].$last.inCollection[].$append.id", "~http://lobid.org/organisations/", "$i.@iz", "~#!", join_char:"")
paste("hasItem[].$last.inCollection[].$last.label", "~IZ 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 @@ -106,6 +109,9 @@ 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")
set_array("hasItem[].$last.inCollection[]")
paste("hasItem[].$last.inCollection[].$append.id", "~http://lobid.org/organisations/", "$i.@iz", "~#!", join_char:"")
paste("hasItem[].$last.inCollection[].$last.label", "~IZ 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
3 changes: 3 additions & 0 deletions src/main/resources/alma/fix/macros.fix
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ do put_macro("holdingLibrary+opacLink")
end
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")
set_array("hasItem[].$last.inCollection[]")
paste("hasItem[].$last.inCollection[].$append.id", "~http://lobid.org/organisations/", "$i.@iz", "~#!", join_char:"")
paste("hasItem[].$last.inCollection[].$last.label", "~IZ 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","~:", "$[mmsIdField]","~#!", join_char: "")
end
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 @@ -120,6 +120,10 @@
"label" : "Universitätsbibliothek Wuppertal"
},
"seeAlso" : [ "https://ub-wuppertal.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-468#!",
"label" : "IZ of DE-468"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-468:23138155830006447#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -134,6 +138,10 @@
"label" : "Universitätsbibliothek der Fernuniversität"
},
"seeAlso" : [ "https://fub-hagen.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-708#!",
"label" : "IZ of DE-708"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-708:2397648970006464#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -148,6 +156,10 @@
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Rheinische Landesbibliothek"
},
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "IZ of DE-929"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-929:2367328890007506#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -162,6 +174,10 @@
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Rheinische Landesbibliothek"
},
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "IZ of DE-929"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-929:2367328900007506#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -176,6 +192,10 @@
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Rheinische Landesbibliothek"
},
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "IZ of DE-929"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-929:2367328910007506#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -190,6 +210,10 @@
"label" : "Wissenschaftliche Bibliothek der Stadt Trier"
},
"seeAlso" : [ "https://aleph.zbsport.de/F/?func=find-word&scan_code=WRD&scan_word=HT000161712&local_base=str01" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-121#!",
"label" : "IZ of DE-121"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-121:2319004410007826#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -204,6 +228,10 @@
"label" : "Universitätsbibliothek Dortmund"
},
"seeAlso" : [ "https://katalog.ub.tu-dortmund.de/id/ir01388a:ubd.lobid:990001412590206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-290#!",
"label" : "IZ of DE-290"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-290:23197423230006445#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -218,6 +246,10 @@
"label" : "Universitäts- und Landesbibliothek Bonn"
},
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990001412590206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "IZ of DE-5"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-5:23231651750006467#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -232,6 +264,10 @@
"label" : "Universitätsbibliothek Bielefeld"
},
"seeAlso" : [ "https://katalogplus.ub.uni-bielefeld.de/Search/Results?type=NZsatz&lookfor=HT000161712" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-361#!",
"label" : "IZ of DE-361"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-361:23278036660006442#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -246,6 +282,10 @@
"label" : "Universitäts- und Landesbibliothek Düsseldorf"
},
"seeAlso" : [ "https://katalog.ulb.hhu.de/Search/Results?lookfor=id_marc_001_txt:990001412590206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-61#!",
"label" : "IZ of DE-61"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-61:23299197890006443#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -260,6 +300,10 @@
"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 " ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-38#!",
"label" : "IZ of DE-38"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-38:23307640680006476#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -274,6 +318,10 @@
"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" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "IZ of DE-6"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-6:23507162560006449#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -288,6 +336,10 @@
"label" : "Universitätsbibliothek Siegen"
},
"seeAlso" : [ "https://ub-siegen.digibib.net/search/katalog/record/(DE-605)HT000161712" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-467#!",
"label" : "IZ of DE-467"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-467:2394316400006462#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -302,6 +354,10 @@
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990001412590206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "IZ of DE-466"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-466:23135518530006463#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -314,6 +370,10 @@
"label" : "Universitätsbibliothek Paderborn"
},
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990001412590206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-466#!",
"label" : "IZ of DE-466"
} ],
"id" : "http://lobid.org/items/990001412590206441:DE-466:22135518500006463#!"
} ],
"medium" : [ {
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 @@ -102,6 +102,10 @@
"label" : "Universitätsbibliothek Trier"
},
"seeAlso" : [ "https://tricat.uni-trier.de/permalink/49HBZ_UBT/1hikhph/alma990011470300206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-385#!",
"label" : "IZ of DE-385"
} ],
"id" : "http://lobid.org/items/990011470300206441:DE-385:23264500340006470#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -116,6 +120,10 @@
"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" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "IZ of DE-6"
} ],
"id" : "http://lobid.org/items/990011470300206441:DE-6-015:23600509680006449#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -128,6 +136,10 @@
"label" : "Universitätsbibliothek Trier"
},
"seeAlso" : [ "https://tricat.uni-trier.de/permalink/49HBZ_UBT/1hikhph/alma990011470300206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-385#!",
"label" : "IZ of DE-385"
} ],
"id" : "http://lobid.org/items/990011470300206441:DE-385:22264500330006470#!"
} ],
"medium" : [ {
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 @@ -105,6 +105,10 @@
"label" : "Universitätsbibliothek Trier"
},
"seeAlso" : [ "https://tricat.uni-trier.de/permalink/49HBZ_UBT/1hikhph/alma990014830510206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-385#!",
"label" : "IZ of DE-385"
} ],
"id" : "http://lobid.org/items/990014830510206441:DE-385:23291734220006470#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -119,6 +123,10 @@
"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" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-5#!",
"label" : "IZ of DE-5"
} ],
"id" : "http://lobid.org/items/990014830510206441:DE-5-58:23241836240006467#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -133,6 +141,10 @@
"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" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-465#!",
"label" : "IZ of DE-465"
} ],
"id" : "http://lobid.org/items/990014830510206441:DE-465:23382608040006446#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -145,6 +157,10 @@
"label" : "Universitätsbibliothek Trier"
},
"seeAlso" : [ "https://tricat.uni-trier.de/permalink/49HBZ_UBT/1hikhph/alma990014830510206441" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-385#!",
"label" : "IZ of DE-385"
} ],
"id" : "http://lobid.org/items/990014830510206441:DE-385:22291734190006470#!"
} ],
"medium" : [ {
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 @@ -94,6 +94,10 @@
"label" : "Folkwang Universität der Künste | Bibliothek"
},
"seeAlso" : [ "https://folkwang-uni.digibib.net/search/katalog/record/56:HT004285445" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-1156#!",
"label" : "IZ of DE-1156"
} ],
"id" : "http://lobid.org/items/990016782920206441:DE-1156:2311409300006459#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -108,6 +112,10 @@
"label" : "Hochschule für Musik Detmold, Bibliothek"
},
"seeAlso" : [ "https://det.digibib.net/search/katalog/record/(DE-605)HT004285445" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-51#!",
"label" : "IZ of DE-51"
} ],
"id" : "http://lobid.org/items/990016782920206441:DE-575:2393551510006480#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -122,6 +130,10 @@
"label" : "Landesbibliothekszentrum Rheinland-Pfalz / Pfälzische Landesbibliothek"
},
"seeAlso" : [ "https://lbz-rlp.digibib.net/search/katalog/record/(DE-605)HT004285445" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-929#!",
"label" : "IZ of DE-929"
} ],
"id" : "http://lobid.org/items/990016782920206441:DE-107:237988430007506#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -136,6 +148,10 @@
"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" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "IZ of DE-6"
} ],
"id" : "http://lobid.org/items/990016782920206441:DE-6-286:23506545980006449#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -147,6 +163,10 @@
"id" : "http://lobid.org/organisations/DE-52#!",
"label" : "Stadtbibliothek Aachen"
},
"inCollection" : [ {
"id" : "http://lobid.org/organisations/7816#!",
"label" : "IZ of 7816"
} ],
"id" : "http://lobid.org/items/990016782920206441:DE-52:228656420007816#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -158,6 +178,10 @@
"id" : "http://lobid.org/organisations/DE-62#!",
"label" : "Stadtbibliothek Wuppertal"
},
"inCollection" : [ {
"id" : "http://lobid.org/organisations/7816#!",
"label" : "IZ of 7816"
} ],
"id" : "http://lobid.org/items/990016782920206441:DE-62:228656390007816#!"
}, {
"label" : "lobid Bestandsressource",
Expand All @@ -169,6 +193,10 @@
"id" : "http://lobid.org/organisations/DE-60#!",
"label" : "Stadt- und Landesbibliothek Dortmund"
},
"inCollection" : [ {
"id" : "http://lobid.org/organisations/7816#!",
"label" : "IZ of 7816"
} ],
"id" : "http://lobid.org/items/990016782920206441:DE-60:228656400007816#!"
} ],
"medium" : [ {
Expand Down
Loading

0 comments on commit 0362c96

Please sign in to comment.