Skip to content

Commit

Permalink
Change isPartOf.type to array #1340
Browse files Browse the repository at this point in the history
This conforms to the lobid schema.
  • Loading branch information
TobiasNx committed Aug 10, 2022
1 parent b002713 commit 70edff0
Show file tree
Hide file tree
Showing 33 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/alma/fix/fields.fix
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ set_array("isPartOf[]")
# 773 - Host Item Entry (R) Subfield: $w (NR), $t (NR), $q (NR)
# TODO: Shouldnt type always be arrays
do list(path: "773??", "var": "$i")
add_field("isPartOf[].$append.type", "IsPartOfRelation")
set_array("isPartOf[].$append.type[]", "IsPartOfRelation")
set_array("isPartOf[].$last.hasSuperordinate[]")
add_field("isPartOf[].$last.hasSuperordinate[].$append.test", "")
if all_match("$i.w", "\\(DE-605\\)(.*)")
Expand All @@ -470,7 +470,7 @@ end
# 490 with 1. Indicator 1 has an identical entry in 830. So only 490 with 1. Indicator 0

do list(path: "4900?", "var": "$i")
add_field("isPartOf[].$append.type", "IsPartOfRelation")
set_array("isPartOf[].$append.type[]", "IsPartOfRelation")
set_array("isPartOf[].$last.hasSuperordinate[]")
copy_field("$i.a", "isPartOf[].$last.hasSuperordinate[].$append.label")
copy_field("$i.v", "isPartOf[].$last.numbering")
Expand Down Expand Up @@ -503,7 +503,7 @@ end

do list(path: "830??", "var": "$i")
unless exists("$i.M")
add_field("isPartOf[].$append.type", "IsPartOfRelation")
set_array("isPartOf[].$append.type[]", "IsPartOfRelation")
set_array("isPartOf[].$last.hasSuperordinate[]")
add_field("isPartOf[].$last.hasSuperordinate[].$append.test", "")
if all_match("$i.w", "\\(DE-605\\)(.*)")
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(CKB)2550000000015245.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"note" : [ "Description based upon print version of record." ],
"abstract" : [ "Provability, Computability and Reflection" ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Studies in logic and the foundations of mathematics"
} ]
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(CKB)4100000010077918.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
} ],
"abstract" : [ "\"Explores how superhero comics, with their creative fusions of fantasy and realism, provide a flexible visual form for engaging issues of disability and intersectional identity (race, class, gender, sexuality) as well as for imagining and valuing different physical and cognitive ways of being in the world\"--Provided by publisher." ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Graphic medicine."
} ]
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-6)1523217-49hbz_ulm.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
} ]
},
"isPartOf" : [ {
"type" : "IsPartOfRelation"
"type" : [ "IsPartOfRelation" ]
} ],
"hasItem" : [ {
"id" : "https://lobid.org/item/991000688209706449",
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/(DE-605)BT000003404.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
"label" : "Culturegraph Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/BT000100437#!",
"label" : "lobid Ressource"
} ],
"numbering" : "2"
}, {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Euro cart : Euro-Regionalkarte"
} ]
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)BT000041593.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
} ],
"note" : [ "In: Wirtschaftsspiegel. - 38 (1983) H. 7, S. 24-25 : 1 Abb." ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT007751353#!",
"label" : "lobid Ressource"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT001039253.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT002156469#!",
"label" : "DIN-Taschenbuch"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT003109553.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "SUNY series in political theory"
} ]
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/(DE-605)HT003538502.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "¬The annals of the American Academy of Political and Social Science"
} ]
}, {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT001371154#!",
"label" : "<<The>> annals of the American Academy of Political and Social Science"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT004764408.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT005073809#!",
"label" : "Netherlands journal of zoology"
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/(DE-605)HT009719670.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@
"label" : "Culturegraph Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Les films du losange"
} ]
}, {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Collection libre échange"
} ]
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT013532539.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"label" : "Culturegraph Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT002878738#!",
"label" : "lobid Ressource"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT013911008.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT013911051#!",
"label" : "Eutropia-CD"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT015865114.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT013370531#!",
"label" : "Buchners Kollege Themen Geschichte"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT016433929.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT006855611#!",
"label" : "lobid Ressource"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT016608165.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
} ],
"note" : [ "Für eine Singstimme und Klavier" ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT016607985#!",
"label" : "Mélodies / Claude Debussy"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT017015300.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
} ],
"thesisInformation" : [ "Marburg, Univ., Diss., 2011" ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT004999851#!",
"label" : "Sportforum"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT017150239.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"label" : "Culturegraph Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT001374559#!",
"label" : "Westfalen"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT017551955.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
} ],
"note" : [ "heute Heumarkt 77, \"Gilden im Zims\"" ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT000765110#!",
"label" : "Einzelbilder vom Niederrhein"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT017559543.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "<<Die>> Grundschulzeitschrift"
} ]
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT018860300.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT003264538#!",
"label" : "Zeitschrift des Geschichtsvereins Mülheim a. d. Ruhr"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT018907266.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
} ],
"note" : [ "Sofern nicht anders angegeben, ist dieses Werk lizenziert unter einer Creative Commons Namensnennung - Keine Bearbeitungen 4.0 Lizenz (https://creativecommons.org/licenses/by-nd/4.0/ )" ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT018907246#!",
"label" : "lobid Ressource"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT019246898.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
} ],
"note" : [ "\"Dies Buch versammelt Texte zum Thema Architekturwahrnehmung, die als Vorträge während einer Ringvorlesung an der Bauhaus-Universität Weimar gehalten wurden\" - siehe Seite 9" ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT016567889#!",
"label" : "Architekturen"
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma-fix/(DE-605)HT019631849.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
} ],
"note" : [ "Auf dem Cover: Inkl. jQuery; Web-Programmierung leicht gemacht; Dynamische Webanwendungen entwickeln, auch für mobile Geräte; Programmiergrundlagen, DOM, CSS, HTML5, Ajax, Onsen UI; mit zahlreichen Beispielprogrammen und Projektvorlagen: Alle beispielprojekte zum Donload" ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Rheinwerk computing"
} ]
}, {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Programmierung/JavaScript"
} ]
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT019838800.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
} ],
"note" : [ "\"EVUPLAN des Bundesministerium für Wirtschaft und Energie; Forschungskennzahl 37EV 16 124 0\"", "Aus dem Impressum: \"Abschlussdatum: Juli 2018\"" ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT015775916#!",
"label" : "Texte / Umweltbundesamt"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT019868557.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"label" : "Culturegraph Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT019807972#!",
"label" : "<<Der>> Rhein / herausgegeben von/édité par Hélène Miard-Delacroix, Guido Thiemeyer"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT020391499.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"label" : "Culturegraph Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Les indicateurs de l'éducation à la loupe"
} ],
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)HT020936481.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"label" : "Culturegraph Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT018714597#!",
"label" : "lobid Ressource"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)TT000166861.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"label" : "Culturegraph Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/TT000034241#!",
"label" : "lobid Ressource"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)TT001230001.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
} ],
"note" : [ "Vorlageform des Erscheinungsvermerks: Avgvstae Vindelicorvm ... Apud Ioannem Praetorium, Anno M.D.XCVI ... - Mikrofiche. München : Saur, 1991. Mikrofiche-Nr. F2001-F2003 : 23x", "VD16-F2826" ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/TT001197763#!",
"label" : "[Bibliotheca Palatina"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)TT003280170.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT001245500#!",
"label" : "Stuttgarter Berichte zur Siedlungswasserwirtschaft"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)TT003907920.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "http://lobid.org/resources/HT006855611#!",
"label" : "lobid Ressource"
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma-fix/(DE-605)TT050421649.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"label" : "OCLC Ressource"
} ],
"isPartOf" : [ {
"type" : "IsPartOfRelation",
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"label" : "Xpert.press"
} ]
Expand Down

0 comments on commit 70edff0

Please sign in to comment.