Skip to content

Commit

Permalink
Manipulate the order of the records #2000
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed May 17, 2024
1 parent 2c1d7fa commit 1a48320
Show file tree
Hide file tree
Showing 153 changed files with 1,107 additions and 1,101 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/alma/alma.fix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ end

add_field("@context","http://lobid.org/resources/context.jsonld")

# Set empty elements to manipulate the order winthin the record.
add_field("id","")
set_array("type[]")
set_array("medium[]")
add_field("title","")

do list(path:"880??","var":"$i")
copy_field("$i.6","$i.linkageTest")
replace_all("$i.linkageTest","\\d{3}(-\\d{2}).*","880$1")
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990001412590206441.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "ReferenceSource", "Book" ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "Handwörterbuch des Volksschulwesens",
"almaMmsId" : "990001412590206441",
"hbzId" : "HT000161712",
"deprecatedUri" : "http://lobid.org/resources/HT000161712#!",
"oclcNumber" : [ "600913146" ],
"title" : "Handwörterbuch des Volksschulwesens",
"publication" : [ {
"startDate" : "1920",
"type" : [ "PublicationEvent" ],
Expand Down Expand Up @@ -316,15 +321,10 @@
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990001412590206441" ],
"id" : "http://lobid.org/items/990001412590206441:DE-466:22135518500006463#!"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "ReferenceSource", "Book" ],
"responsibilityStatement" : [ "unter Mitw. zahlr. Schulmänner hrsg. von E. Clausnitzer ..." ],
"contribution" : [ {
"agent" : {
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990011470300206441.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "EditedVolume", "Proceedings", "Book" ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "What should political theory be now?",
"almaMmsId" : "990011470300206441",
"hbzId" : "HT003109553",
"deprecatedUri" : "http://lobid.org/resources/HT003109553#!",
"isbn" : [ "087395694X", "9780873956949", "0873956958", "9780873956956" ],
"oclcNumber" : [ "230434370" ],
"title" : "What should political theory be now?",
"otherTitleInformation" : [ "Essays from the Shambaugh Conference on Political Theory" ],
"publication" : [ {
"startDate" : "1983",
Expand Down Expand Up @@ -130,15 +135,10 @@
"seeAlso" : [ "https://tricat.uni-trier.de/permalink/49HBZ_UBT/1hikhph/alma990011470300206441" ],
"id" : "http://lobid.org/items/990011470300206441:DE-385:22264500330006470#!"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "EditedVolume", "Proceedings", "Book" ],
"responsibilityStatement" : [ "ed. by John S. Nelson" ],
"contribution" : [ {
"agent" : {
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990014830510206441.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Biography", "Book" ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "Charlie Chaplin",
"almaMmsId" : "990014830510206441",
"hbzId" : "HT003864492",
"deprecatedUri" : "http://lobid.org/resources/HT003864492#!",
"isbn" : [ "0405039204", "9780405039201" ],
"oclcNumber" : [ "1067416031" ],
"title" : "Charlie Chaplin",
"edition" : [ "Reprint ed. [d. Ausg.] New York, Schuman, 1951" ],
"publication" : [ {
"startDate" : "1972",
Expand Down Expand Up @@ -147,15 +152,10 @@
"seeAlso" : [ "https://tricat.uni-trier.de/permalink/49HBZ_UBT/1hikhph/alma990014830510206441" ],
"id" : "http://lobid.org/items/990014830510206441:DE-385:22291734190006470#!"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "Biography", "Book" ],
"responsibilityStatement" : [ "Theodore Huff" ],
"contribution" : [ {
"agent" : {
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990016782920206441.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "PublishedScore", "Book" ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "Erleben - Verstehen - Lernen",
"almaMmsId" : "990016782920206441",
"hbzId" : "HT004285445",
"deprecatedUri" : "http://lobid.org/resources/HT004285445#!",
"ismn" : [ "M204421206" ],
"oclcNumber" : [ "1068203015" ],
"stockNumber" : [ "N 2120" ],
"title" : "Erleben - Verstehen - Lernen",
"otherTitleInformation" : [ "Klavierschule für Erwachsene" ],
"publication" : [ {
"startDate" : "1989",
Expand Down Expand Up @@ -171,15 +176,10 @@
},
"id" : "http://lobid.org/items/990016782920206441:DE-60:228656400007816#!"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "PublishedScore", "Book" ],
"responsibilityStatement" : [ "Uli Molsen" ],
"contribution" : [ {
"agent" : {
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990021367710206441.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Book" ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "Labor economics",
"almaMmsId" : "990021367710206441",
"hbzId" : "HT005207972",
"deprecatedUri" : "http://lobid.org/resources/HT005207972#!",
"isbn" : [ "0256018243", "9780256018240" ],
"oclcNumber" : [ "265495256" ],
"title" : "Labor economics",
"otherTitleInformation" : [ "wages, employment, and trade unionism" ],
"edition" : [ "3. ed" ],
"publication" : [ {
Expand Down Expand Up @@ -167,15 +172,10 @@
},
"id" : "http://lobid.org/items/990021367710206441:DE-466:990014134660106463#!"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "Book" ],
"responsibilityStatement" : [ "F. Ray Marshall ; Allan M. Cartter ; Allan G. King" ],
"contribution" : [ {
"agent" : {
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990021974470206441.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Legislation", "Book" ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "Sowjetisches Verwaltungsrecht",
"almaMmsId" : "990021974470206441",
"hbzId" : "HT005271161",
"deprecatedUri" : "http://lobid.org/resources/HT005271161#!",
"oclcNumber" : [ "1067969357" ],
"title" : "Sowjetisches Verwaltungsrecht",
"otherTitleInformation" : [ "allg. Teil" ],
"publication" : [ {
"startDate" : "1954",
Expand Down Expand Up @@ -199,15 +204,10 @@
"seeAlso" : [ "https://hbz-ulbms.primo.exlibrisgroup.com/discovery/search?query=any,contains,990021974470206441&tab=Everything&search_scope=MyInst_and_CI&vid=49HBZ_ULM:VU2&offset=0" ],
"id" : "http://lobid.org/items/990021974470206441:DE-6-016:23561372540006449#!"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "Legislation", "Book" ],
"responsibilityStatement" : [ "Unionsinstitut der Rechtswissenschaften beim Ministerium der Justiz der UdSSR. Hrsg. d. Übers.: Deutsches Institut für Rechtswissenschaft. S. S. Studenikin ..." ],
"contribution" : [ {
"agent" : {
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990026405480206441.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Book" ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "Burgenkunde",
"almaMmsId" : "990026405480206441",
"hbzId" : "HT006813395",
"deprecatedUri" : "http://lobid.org/resources/HT006813395#!",
"isbn" : [ "3893505547", "9783893505548" ],
"oclcNumber" : [ "722126366" ],
"title" : "Burgenkunde",
"otherTitleInformation" : [ "Bauwesen und Geschichte der Burgen" ],
"edition" : [ "Neue, verb. u. erw. Aufl., [verb. u. erw. Nachdr. der 3. Aufl. 1912]" ],
"publication" : [ {
Expand Down Expand Up @@ -201,15 +206,10 @@
"seeAlso" : [ "https://katalog.ub.uni-paderborn.de/local/s?sr%5Bq,any%5D=990026405480206441" ],
"id" : "http://lobid.org/items/990026405480206441:DE-466:22148766820006463#!"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "Book" ],
"responsibilityStatement" : [ "von Otto Piper" ],
"contribution" : [ {
"agent" : {
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990030574430206441.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Book" ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "Epinici di Bacchilide e Pindaro",
"almaMmsId" : "990030574430206441",
"hbzId" : "HT007847893",
"deprecatedUri" : "http://lobid.org/resources/HT007847893#!",
"oclcNumber" : [ "1071256649" ],
"title" : "Epinici di Bacchilide e Pindaro",
"publication" : [ {
"startDate" : "1964",
"type" : [ "PublicationEvent" ],
Expand Down Expand Up @@ -94,15 +99,10 @@
"seeAlso" : [ "https://bonnus.ulb.uni-bonn.de/permalink/49HBZ_ULB/idtnkp/alma990030574430206441" ],
"id" : "http://lobid.org/items/990030574430206441:DE-5:23308126230006467#!"
} ],
"medium" : [ {
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "Book" ],
"responsibilityStatement" : [ "testi per uso accademico. A cura di F[rancesco] Sbordone" ],
"contribution" : [ {
"agent" : {
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990033263300206441.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "ReferenceSource", "Book" ],
"medium" : [ {
"label" : "Manuskript",
"id" : "http://purl.org/ontology/bibo/Manuscript"
} ],
"title" : "Chines.-deutsches Wörterbuch für den Dialect der Hakka",
"almaMmsId" : "990033263300206441",
"hbzId" : "HT008389117",
"deprecatedUri" : "http://lobid.org/resources/HT008389117#!",
"oclcNumber" : [ "1068461604" ],
"title" : "Chines.-deutsches Wörterbuch für den Dialect der Hakka",
"alternativeTitle" : [ "Chinesisch-deutsches Wörterbuch für den Dialect der Hakka", "Kejia zidian" ],
"otherTitleInformation" : [ "= Kejia-zidian" ],
"publication" : [ {
Expand Down Expand Up @@ -86,14 +91,9 @@
"seeAlso" : [ "https://katalogplus.ub.uni-bielefeld.de/Search/Results?type=NZsatz&lookfor=HT008389117" ],
"id" : "http://lobid.org/items/990033263300206441:DE-361:23234824210006442#!"
} ],
"medium" : [ {
"label" : "Manuskript",
"id" : "http://purl.org/ontology/bibo/Manuscript"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "ReferenceSource", "Book" ],
"id" : "http://lobid.org/resources/990033263300206441#!"
}
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990035016180206441.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Book" ],
"medium" : [ {
"label" : "Mikroformat",
"id" : "http://rdaregistry.info/termList/RDAMediaType/1002"
} ],
"title" : "Teutsche Poemata vnd Aristarchos",
"almaMmsId" : "990035016180206441",
"hbzId" : "HT008733617",
"deprecatedUri" : "http://lobid.org/resources/HT008733617#!",
"isbn" : [ "3598521103", "9783598521102" ],
"oclcNumber" : [ "1072809401" ],
"title" : "Teutsche Poemata vnd Aristarchos",
"edition" : [ "[Mikrofiche-Ausg.]" ],
"publication" : [ {
"startDate" : "1624",
Expand Down Expand Up @@ -241,15 +246,10 @@
},
"id" : "http://lobid.org/items/990035016180206441:DE-385:990009300190106470#!"
} ],
"medium" : [ {
"label" : "Mikroformat",
"id" : "http://rdaregistry.info/termList/RDAMediaType/1002"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "Book" ],
"contribution" : [ {
"agent" : {
"gndIdentifier" : "118590111",
Expand Down
12 changes: 6 additions & 6 deletions src/test/resources/alma-fix/990041403870206441.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"type" : [ "BibliographicResource", "Game" ],
"medium" : [ {
"label" : "Sonstige",
"id" : "http://purl.org/lobid/lv#Miscellaneous"
} ],
"title" : "Köln find' ich gut!",
"almaMmsId" : "990041403870206441",
"hbzId" : "HT009965981",
"deprecatedUri" : "http://lobid.org/resources/HT009965981#!",
"isbn" : [ "3897051346", "9783897051348" ],
"oclcNumber" : [ "1070982209" ],
"title" : "Köln find' ich gut!",
"otherTitleInformation" : [ "ein Bilder-Suchspiel für die ganze Familie" ],
"publication" : [ {
"startDate" : "1998",
Expand Down Expand Up @@ -92,15 +97,10 @@
"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" : [ {
"label" : "Sonstige",
"id" : "http://purl.org/lobid/lv#Miscellaneous"
} ],
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"type" : [ "BibliographicResource", "Game" ],
"responsibilityStatement" : [ "von Heribert Stragholz" ],
"contribution" : [ {
"agent" : {
Expand Down
Loading

0 comments on commit 1a48320

Please sign in to comment.