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

2116 add repeated secondary form i ds #2117

Merged
merged 4 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
10 changes: 6 additions & 4 deletions src/main/resources/alma/fix/relatedRessourcesAndLinks.fix
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,16 @@ do list(path: "77608", "var":"$i")
if any_match ("$i.i", ".*eproduktion")
set_hash( "secondaryForm[].$append")
if all_match("$i.w", "^\\((?:DE-600|DE-605)\\)(.*)$")
copy_field("$i.w", "secondaryForm[].$last.id")
do list(path:"$i.w", "var":"$j")
replace_all("$j", "^\\(DE-605\\)(.*)$", "http://lobid.org/resources/$1#!")
replace_all("$j", "^\\(DE-600\\)(.*)$", "http://lobid.org/resources/$1#!")
maipet marked this conversation as resolved.
Show resolved Hide resolved
copy_field("$j", "secondaryForm[].$append.id")
copy_field("$i.i", "secondaryForm[].$last.label")
end
end
copy_field("$i.i", "secondaryForm[].$last.label")
end
end

replace_all("secondaryForm[].*.id", "^\\(DE-605\\)(.*)$", "http://lobid.org/resources/$1#!")
replace_all("secondaryForm[].*.id", "^\\(DE-600\\)(.*)$", "http://lobid.org/resources/ZDB-$1#!")

# 856 - Electronic Location and Access (R) - Subfield: $u (R) $3 (NR)
# 1. Indicator: 4 = HTTP
Expand Down
182 changes: 182 additions & 0 deletions src/test/resources/alma-fix/990049090780206441.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"id" : "http://lobid.org/resources/990049090780206441#!",
"type" : [ "BibliographicResource", "Book" ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "Nomognosticon Ivris Vniversi Bipartitvm, Sive Avrifodina Præecipuarum Legum & Canonum in Praxi versatilium, utriusque Iuris tum Publici tum Privati",
"almaMmsId" : "990049090780206441",
"hbzId" : "HT004195079",
"deprecatedUri" : "http://lobid.org/resources/HT004195079#!",
"oclcNumber" : [ "1067434335" ],
"alternativeTitle" : [ "Nomognosticon iuris universi bipartitum, sive Aurifodina praecipuarum legum & canonum in praxi versatilium, utriusque iuris tum publici tum privati" ],
"otherTitleInformation" : [ "In Qva velut in imis Terræ latebris venæ Legalis Politiæ pro utroque foro aperiuntur, & totius pene Mundi iura Regnorum, præsertim S. Rom. Imp. cum Regnis Hisp. Gall. Britan. &c. Turcici, Tartar. &c. Per IV. Mundi Partes cum Novo Orbe Carolino ..." ],
"publication" : [ {
"type" : [ "PublicationEvent" ],
"location" : [ "Coloniæ Agrippinæ" ],
"publishedBy" : [ "Apud Iodocum Kalcovium Bibliopolam" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/990049090780206441",
"label" : "Webseite der hbz-Ressource 990049090780206441",
"type" : [ "BibliographicDescription" ],
"inDataset" : {
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
"label" : "Software lobid-resources"
},
"object" : {
"id" : "https://lobid.org/marcxml/990049090780206441",
"dateCreated" : "1992-05-12",
"dateModified" : "2024-12-10",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990049090780206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
},
"sourceOrganization" : {
"id" : "http://lobid.org/organisations/DE-605#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen"
},
"provider" : {
"id" : "http://lobid.org/organisations/DE-605#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen"
},
"modifiedBy" : [ {
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "Universitäts- und Landesbibliothek Münster, Zentralbibliothek"
}, {
"id" : "http://lobid.org/organisations/DE-605#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen"
} ]
}
},
"license" : [ {
"id" : "http://creativecommons.org/publicdomain/zero/1.0",
"label" : "Creative Commons-Lizenz CC0 1.0 Universal"
} ]
},
"sameAs" : [ {
"id" : "https://hub.culturegraph.org/resource/(DE-605)990049090780206441",
"label" : "Culturegraph Ressource"
}, {
"id" : "http://worldcat.org/oclc/1067434335",
"label" : "OCLC Ressource"
} ],
"secondaryForm" : [ {
"id" : "http://lobid.org/resources/CT005026251#!",
"label" : "Reproduktion"
}, {
"id" : "http://lobid.org/resources/CT005026249#!",
"label" : "Reproduktion"
} ],
"inCollection" : [ {
"id" : "https://nrw.digibib.net/search/hbzvk/",
"label" : "DigiBib hbz Verbundkatalog",
"type" : [ "Collection" ]
}, {
"id" : "http://lobid.org/organisations/DE-655#!",
"label" : "hbz - Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen, Netzwerkzone",
"type" : [ "Collection" ]
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/lat",
"label" : "Latein"
} ],
"extent" : "32 ungezählte Seiten, 980 Seiten, 16 ungezählte Seiten, Seite 981-1883 ; 8°",
"note" : [ "Vorlageform der Veröffentlichungsangabe des 2. Teils: Coloniae Aggrippinae, Apud Iodocum Kalcovium", "Paginierfehler: Seite 339 fälschlich als Seite 315 paginiert" ],
"hasItem" : [ {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "Ia 234-1_2",
"serialNumber" : "6-00694121-X",
"currentLibrary" : "HLS",
"currentLocation" : "HLS_RAFUE",
"heldBy" : {
"isil" : "DE-6",
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "Universitäts- und Landesbibliothek Münster, Zentralbibliothek"
},
"seeAlso" : [ "https://hbz-ulbms.primo.exlibrisgroup.com/discovery/search?query=any,contains,990049090780206441&tab=Everything&search_scope=MyInst_and_CI&vid=49HBZ_ULM:VU2&offset=0" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "Universitäts- und Landesbibliothek Münster, Zentralbibliothek"
} ],
"id" : "http://lobid.org/items/990049090780206441:DE-6:23553163060006449#!"
}, {
"label" : "lobid Bestandsressource",
"type" : [ "Item", "PhysicalObject" ],
"callNumber" : "Ia 234/2",
"serialNumber" : "6-00694122-2",
"currentLibrary" : "HLS",
"currentLocation" : "HLS_RAFUE",
"heldBy" : {
"isil" : "DE-6",
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "Universitäts- und Landesbibliothek Münster, Zentralbibliothek"
},
"seeAlso" : [ "https://hbz-ulbms.primo.exlibrisgroup.com/discovery/search?query=any,contains,990049090780206441&tab=Everything&search_scope=MyInst_and_CI&vid=49HBZ_ULM:VU2&offset=0" ],
"inCollection" : [ {
"id" : "http://lobid.org/organisations/DE-6#!",
"label" : "Universitäts- und Landesbibliothek Münster, Zentralbibliothek"
} ],
"id" : "http://lobid.org/items/990049090780206441:DE-6:23553160180006449#!"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"responsibilityStatement" : [ "Authore R.P. Hermanno Wesselingio I.V.D. Insignium V. Cath. S. Pauli & S. Martini Monasterii VV. nec non B. ad S. Remigium Ecclesiarum olim Canonico, nunc C.D." ],
"contribution" : [ {
"agent" : {
"gndIdentifier" : "124544185",
"id" : "https://d-nb.info/gnd/124544185",
"label" : "Wesseling, Hermann",
"type" : [ "Person" ],
"altLabel" : [ "Wesselingius, Hermannus", "Wessling, Hermann" ]
},
"role" : {
"id" : "http://id.loc.gov/vocabulary/relators/aut",
"label" : "Autor/in"
},
"type" : [ "Contribution" ]
}, {
"agent" : {
"gndIdentifier" : "137706588",
"id" : "https://d-nb.info/gnd/137706588",
"label" : "Kalckhoven, Jost",
"type" : [ "Person" ],
"dateOfBirth" : "1620",
"dateOfDeath" : "1669",
"altLabel" : [ "Calcovius, Jost", "Calcovius, Jodocus", "Calckovius, Jodocus", "Kalcovius, Jodocus", "Kalcovius, Iodocus", "Kalcouius, Iodocus", "Kolcovius, Jodocus", "Kalckhoven, Jodocus", "Kalcoven, Jodocus", "Kalckovius, Iodocus", "Kalckovius, Jodocus" ]
},
"role" : {
"id" : "http://id.loc.gov/vocabulary/relators/prt",
"label" : "Druck"
},
"type" : [ "Contribution" ]
}, {
"agent" : {
"gndIdentifier" : "1090684045",
"id" : "https://d-nb.info/gnd/1090684045",
"label" : "Kalckhoven (Offizin, Köln)",
"type" : [ "CorporateBody" ],
"altLabel" : [ "Kalckhoven (Imprimerie, Cologne)", "Kalckhoven (Printing office, Köln)", "Kalckhoven, Jost (Offizin, Köln)", "Kalckhoven, Jost (Imprimerie, Cologne)", "Kalckhoven, Jost (Printing office, Köln)", "Kalcovius, Iodocus (Offizin, Köln)", "Kalcovius, Iodocus (Imprimerie, Cologne)", "Kalcovius, Iodocus (Printing office, Köln)", "Kalcoven, Iodocus (Offizin, Köln)", "Kalcoven, Iodocus (Imprimerie, Cologne)", "Kalcoven, Iodocus (Printing office, Köln)" ]
},
"role" : {
"id" : "http://id.loc.gov/vocabulary/relators/pbl",
"label" : "Verlag"
},
"type" : [ "Contribution" ]
} ]
}
Loading
Loading