Skip to content

Commit

Permalink
Transform to inSeries field for Strapi independent-work (RPB-164)
Browse files Browse the repository at this point in the history
For separate Strapi lookup config (lobid-resources `Series` only)
  • Loading branch information
fsteeg committed May 24, 2024
1 parent a1b4037 commit ae72b32
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/output/test-output-strapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
{"f35_":"_r99_ _o13807073_ ; _sn824000_","f37_":"_sn824000_ ; _r99_ _o13807073_","f88_":"2515501-5","f90d":"ZA 5649:2011 MAG","f95_":"20110601/08:50:59\u001FKO","f96_":"20110603/08:31:46\u001FKO","rpbId":"929t112195","title":"¬Der¬ BAP kam aus Unkel","type":"u","bibliographicCitation":[{"value":"¬Der¬ Rheinländer : das Heimatmagazin. - 4 (2011), Juni = H. 34, S. 16-18"}],"publicationDate":"2011","publicationYear":"2011","extent":"Ill.","subject":[{"value":"http://purl.org/lobid/rpb#n824000"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n13807073"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://d-nb.info/gnd/4061836-5"},{"value":"https://d-nb.info/gnd/118942247"},{"value":"https://d-nb.info/gnd/4006804-3"}]}],"pages":"Aus bibliographicCitation: S. 16-18","person":[{"value":"https://rpb.lobid.org/agent/00Pn08k0685884a","type":"http://id.loc.gov/vocabulary/relators/aut"}],"inCollection":"nur RPB"}
{"f35_":"_r99_ _o13809076_ ; _sn844200_","f35a":"_r99_ _o13809076_ ; _sn844000_","f37_":"_sn844200_ ; _r99_ _o13809076_","f37a":"_sn844000_ ; _r99_ _o13809076_","f88_":"2515501-5","f90d":"ZA 5649:2011 MAG","f95_":"20110601/08:57:45\u001FKO","f96_":"20110603/08:31:32\u001FKO","rpbId":"929t112196","title":"Coming home mit Commende","type":"u","bibliographicCitation":[{"value":"¬Der¬ Rheinländer : das Heimatmagazin. - 4 (2011), Juni = H. 34, S. 26-27"}],"publicationDate":"2011","publicationYear":"2011","extent":"Ill.","subject":[{"value":"http://purl.org/lobid/rpb#n844200"},{"value":"http://purl.org/lobid/rpb#n844000"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n13809076"},{"value":"https://rpb.lobid.org/spatial#n13809076"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://rpb.lobid.org/sw/929n090287"},{"value":"https://d-nb.info/gnd/4011457-0"},{"value":"https://rpb.lobid.org/sw/00Sn09k1362487a"},{"value":"https://d-nb.info/gnd/4454409-1"},{"value":"https://rpb.lobid.org/sw/00Sn09m0508511a"}]}],"pages":"Aus bibliographicCitation: S. 26-27","person":[{"value":"https://rpb.lobid.org/agent/00Pn08k0685884a","type":"http://id.loc.gov/vocabulary/relators/aut"}],"inCollection":"nur RPB"}
{"f35_":"_r99_ _o13209039_ ; _sn611070_","f37_":"_sn611070_ ; _r99_ _o13209039_","f70t":"Rhein-Zeitung, Ausg. H","f70y":"Rhein-Zeitung, Ausg. H. - 66 (2011), 126 vom 31.05., S. 24","f88_":"2522761-0","f90d":"ZB 151:2011;MZ 52:2011","f95_":"20110601/09:14:31\u001FKO","f96_":"20120809/16:13:40\u001FZR","rpbId":"929t112197","title":"Seit 1911 weht im Vinzenzhaus der Geist der Nächstenliebe : 100-Jahr-Feier in Gebhardshain ; vom Konvent zum Seniorenheim","type":"u","bibliographicCitation":[{"value":"s. spez. Felder (volume, issue, etc.)"}],"volume":"66","issue":"126 vom 31.05.","year":"2011","pages":"24","publicationDate":"2011","publicationYear":"2011","extent":"Ill.","subject":[{"value":"http://purl.org/lobid/rpb#n611070"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n13209039"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://d-nb.info/gnd/16326855-1"},{"value":"https://rpb.lobid.org/sw/00Sn10s3817103a"}]}],"person":[{"value":"https://rpb.lobid.org/agent/929n991002","type":"http://id.loc.gov/vocabulary/relators/aut"}],"inCollection":"nur RPB"}
{"f35_":"_r99_ _o13203050_ ; _sn848000_","f37_":"_sn848000_ ; _r99_ _o13203050_","f83_":"Sander, August / 1876-1964","f87_":"3-8031-1114-5","f871":"978-3-8031-1114-2","f90d":"2011/1822","f95_":"20110601/09:39:26\u001FHBZ","f96_":"20110601/09:44:37\u001FKO","f983":"HT015954631","rpbId":"929t112198","title":"¬Das¬ Leben der Bilder oder die Kunst des Sehens","type":"Monografie","edition":"11. Aufl.","publicationLocation":"Berlin","publishedBy":"Wagenbach","publicationDate":"2009","publicationYear":"2009","extent":"141 S. : Ill.","note":[{"value":"Aus dem Engl. übers."}],"isPartOf":[{"value":"Salto ; [13]"}],"subject":[{"value":"http://purl.org/lobid/rpb#n848000"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n13203050"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://d-nb.info/gnd/4114333-4"},{"value":"https://d-nb.info/gnd/4143413-4"}]},{"subjectComponent":[{"value":"https://d-nb.info/gnd/118605364"}]}],"responsibilityStatement":"John Berger","person":[{"value":"https://rpb.lobid.org/agent/00Pn11k2198999a","type":"http://id.loc.gov/vocabulary/relators/aut"}],"inCollection":"nur RPB","isbn":[{"value":"3-8031-1114-5","valid":true},{"value":"978-3-8031-1114-2","valid":true}]}
{"f35_":"_r99_ _o13203050_ ; _sn848000_","f37_":"_sn848000_ ; _r99_ _o13203050_","f83_":"Sander, August / 1876-1964","f87_":"3-8031-1114-5","f871":"978-3-8031-1114-2","f90d":"2011/1822","f95_":"20110601/09:39:26\u001FHBZ","f96_":"20110601/09:44:37\u001FKO","f983":"HT015954631","rpbId":"929t112198","title":"¬Das¬ Leben der Bilder oder die Kunst des Sehens","type":"Monografie","edition":"11. Aufl.","publicationLocation":"Berlin","publishedBy":"Wagenbach","publicationDate":"2009","publicationYear":"2009","extent":"141 S. : Ill.","note":[{"value":"Aus dem Engl. übers."}],"subject":[{"value":"http://purl.org/lobid/rpb#n848000"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n13203050"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://d-nb.info/gnd/4114333-4"},{"value":"https://d-nb.info/gnd/4143413-4"}]},{"subjectComponent":[{"value":"https://d-nb.info/gnd/118605364"}]}],"inSeries":[{"value":"Salto ; [13]"}],"responsibilityStatement":"John Berger","person":[{"value":"https://rpb.lobid.org/agent/00Pn11k2198999a","type":"http://id.loc.gov/vocabulary/relators/aut"}],"inCollection":"nur RPB","isbn":[{"value":"3-8031-1114-5","valid":true},{"value":"978-3-8031-1114-2","valid":true}]}
{"f35_":"_r22_ ; _sn126000_","f37_":"_sn126000_ ; _r22_","f95_":"20110601/09:46:34\u001FHBZ","f96_":"20110601/09:51:55\u001FKO","f983":"CT003007380","rpbId":"929t112199","title":"Charte vom Laufe des Rheins von Coblenz bis Wesel [Elektronische Ressource] : das Herzogthum Berg, die Grafschaften Wied, Nieder-Isenburg und andere Länder vorstellend : mit röm. kaiserl. allergnaed. Freyheit","alternativeTitle":[{"value":"Charte vom Laufe des Rheins von Koblenz bis Wesel [Elektronische Ressource] : das Herzogthum Berg, die Grafschaften Wied, Nieder-Isenburg und andere Länder vorstellend : mit röm. kaiserl. allergnaed. Freyheit"}],"type":"Monografie","publicationLocation":"Nürnberg","publishedBy":"Homännische Erben","publicationDate":"1797","publicationYear":"1797","extent":"1 Kt. : Kupferst. ; 57 x 41 cm","note":[{"value":"Nebenkarte oben rechts: \"Charte den Lauf des Rheins von Coblenz bis Unkel nebst den anliegenden Ländern enthaltend\" (16 x 23 cm). - Nullmeridian: Ferro - Maßstab in graph,. Form (Deutsche Meilen) - Titelkartusche unten links"}],"subject":[{"value":"http://purl.org/lobid/rpb#n126000"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n22"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://d-nb.info/gnd/4074902-2"},{"value":"https://d-nb.info/gnd/4611904-8"},{"value":"https://d-nb.info/gnd/4511937-5"}]},{"subjectComponent":[{"value":"https://d-nb.info/gnd/4042224-0"},{"value":"https://d-nb.info/gnd/4611904-8"},{"value":"https://d-nb.info/gnd/4511937-5"}]},{"subjectComponent":[{"value":"https://d-nb.info/gnd/4005659-4"},{"value":"https://d-nb.info/gnd/4611904-8"},{"value":"https://d-nb.info/gnd/4511937-5"}]}],"responsibilityStatement":"entworfen von F. L. Güssefeld ; [Stecher:] I. Rausch","url":[{"value":"https://nbn-resolving.org/urn:nbn:de:hbz:061:1-42026","type":"Volltext"}],"person":[{"value":"https://rpb.lobid.org/agent/00Gn11k2199217a","type":"http://id.loc.gov/vocabulary/relators/ctb"},{"value":"https://d-nb.info/gnd/178964131","type":"http://id.loc.gov/vocabulary/relators/oth"},{"value":"https://rpb.lobid.org/agent/00Pn01k23917383a","type":"http://id.loc.gov/vocabulary/relators/oth"},{"value":"https://rpb.lobid.org/agent/00Pn01t22981785a","type":"http://id.loc.gov/vocabulary/relators/oth"}],"inCollection":"nur RPB"}
{"f19_":"Rhein-Zeitung / C","f23_":"Ausg. C, Andernach/Mayen","f35_":"_r99_ _o137_ ; _sn882026_","f37_":"_sn882026_ ; _r99_ _o137_","f88_":"2602949-2","f90d":"ZB 32 MAG","f95_":"20110503/12:48:18\u001FHBZ","f96_":"20110503/13:09:46\u001FZR","f97x":"per","f983":"HT016782154","f36t":"Periodical","rpbId":"929t111801","title":"Rhein-Zeitung : unabhängige Tageszeitung","type":"Mehrt. Mono (ÜO)","publicationLocation":"Koblenz","publishedBy":"Mittelrhein-Verl.","publicationDate":"2011","publicationYear":"2011","note":[{"value":"Vorg. u.d.T.: Rhein-Zeitung / CA. - Vorg. u.d.T.: Rhein-Zeitung / CM"}],"subject":[{"value":"http://purl.org/lobid/rpb#n882026"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n137"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://d-nb.info/gnd/4038117-1"},{"value":"https://d-nb.info/gnd/4067510-5"}]}],"inCollection":"nur RPB"}
{"rpbId":"929t111801b1","numbering":"66.2011,77(1.Apr.) -","title":"Rhein-Zeitung : unabhängige Tageszeitung : 66.2011,77(1.Apr.) -","type":"Band","isPartOf":[{"value":"Rhein-Zeitung : unabhängige Tageszeitung"}],"publicationDate":"s. Zählung in numbering","publicationYear":"s. Zählung in numbering","inCollection":"nur RPB","volumeIn":{"numbering":"66.2011,77(1.Apr.) -","sortBy":"2011","value":"https://lobid.org/resources/929t111801"}}
Expand Down Expand Up @@ -83,4 +83,4 @@
{"f35_":"_r22_ ; _sn142382_","f37_":"_sn142382_ ; _r22_","f90d":"92A/173","f95_":"ZR-19930513/09:54:51\u001FZR","f96_":"ZR-19930513/09:54:51\u001FZR","rpbId":"929t920749","title":"Sachstand der heutigen Gewässerbelastung : Belastung der letzten Jahrzehnte ; Verhalten von Schadstoffen in Gewässern ; Schadensfälle","type":"Monografie","publicationLocation":"Koblenz","publishedBy":"Bundesanst. für Gewässerkunde","publicationDate":"1992","publicationYear":"1992","extent":"28 Bl. : graph. Darst.","otherId":"BfG-0669","subject":[{"value":"http://purl.org/lobid/rpb#n142382"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n22"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://rpb.lobid.org/sw/z64"},{"value":"https://d-nb.info/gnd/4128022-2"}]}],"responsibilityStatement":"Hubert Hellmann","person":[{"value":"https://rpb.lobid.org/agent/00Pn92k0749a","type":"http://id.loc.gov/vocabulary/relators/aut"}],"inCollection":"nur RPB"}
{"f35_":"_r22_ ; _sn102070_","f35a":"_r10_ ; _sn102070_","f37_":"_sn102070_ ; _r22_","f37a":"_sn102070_ ; _r10_","f70t":"¬Die¬ Eifel","f88_":"0176-8255","f90c":"Z 1666-118(2023)","f95_":"20230927/11:44:46\u001FTR","f96_":"20230927/11:44:46\u001FTR","rpbId":"121t231109","title":"¬Der¬ Wiedweg - blaues Wasser, grüne Pfade : Etappenwandern von der Quelle bis zur Mündung","type":"u","bibliographicCitation":[{"value":"s. spez. Felder (volume, issue, etc.)"}],"volume":"118","issue":"3","year":"2023","pages":"48-52","publicationDate":"2023","publicationYear":"2023","extent":"Illustrationen","subject":[{"value":"http://purl.org/lobid/rpb#n102070"},{"value":"http://purl.org/lobid/rpb#n102070"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n22"},{"value":"https://rpb.lobid.org/spatial#n10"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://rpb.lobid.org/sw/929n110124"},{"value":"https://d-nb.info/gnd/4155569-7"}]}],"inCollection":"nur RPB"}
{"f35_":"_r99_ _o33105070_ ; _sn768030_","f37_":"_sn768030_ ; _r99_ _o33105070_","f83_":"Laukhard, Friedrich Christian / 1757-1822","f87_":"978-3-506-77967-0","f90b":"117-3134","f90d":"2020/1429","f95_":"20180620/10:01:03\u001FHBZ","f96_":"20200603/09:22:21\u001FKO","f983":"HT019399122","rpbId":"107t182053","title":"Friedrich Christian Laukhard (1757-1822) : Schriftsteller, Radikalaufklärer und gelehrter Soldat","type":"Monografie","publicationLocation":"Paderborn","publishedBy":"Ferdinand Schöningh","publicationDate":"[2017]","publicationYear":"2017","extent":"218 Seiten : Illustrationen, Karte","subject":[{"value":"http://purl.org/lobid/rpb#n768030"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n33105070"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://d-nb.info/gnd/118726692"},{"value":"https://d-nb.info/gnd/4006804-3"}]}],"responsibilityStatement":"Guido Naschert (Hg.)","url":[{"value":"http://digitale-objekte.hbz-nrw.de/storage2/2017/08/19/file_28/7343682.pdf","type":"Andere URL"},{"value":"https://www.hsozkult.de/publicationreview/id/reb-22111","type":"Andere URL"}],"person":[{"value":"https://rpb.lobid.org/agent/00Gn18s2053186a","type":"http://id.loc.gov/vocabulary/relators/pbl"}],"inCollection":"nur RPB","isbn":[{"value":"978-3-506-77967-0","valid":true}]}
{"f35_":"_r22_ _4126432n0_ ; _sn102070_","f37_":"_sn102070_ ; _r22_ _4126432n0_","f83_":"Boeckling, Manfred / 1970-","f87_":"978-3-7701-8016-5","f90d":"2016/311","f95_":"20160128/13:51:41\u001FHBZ","f96_":"20160208/08:24:33\u001FZR","f983":"HT018859168","rpbId":"929t160199","title":"Wandern auf Rheinsteig und Rheinburgenweg","preferredTitle":"Wandern auf dem Rheinsteig und dem Rheinburgenweg","type":"Monografie","edition":"4., aktualisierte Auflage","publicationLocation":"Ostfildern","publishedBy":"DuMont Reiseverlag","publicationDate":"2012","publicationYear":"2012","extent":"180 Seiten : Illustrationen, Diagramme, Karten","note":[{"value":"Enthält Index"}],"isPartOf":[{"value":"DuMont aktiv"}],"subject":[{"value":"http://purl.org/lobid/rpb#n102070"}],"spatial":[{"value":"https://d-nb.info/gnd/4126432-0"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://d-nb.info/gnd/7501137-2"},{"value":"https://d-nb.info/gnd/7500776-9"},{"value":"https://d-nb.info/gnd/4064532-0"}]}],"responsibilityStatement":"Manfred Böckling","url":[{"value":"http://d-nb.info/1069609889/04","type":"Andere URL"}],"person":[{"value":"https://d-nb.info/gnd/124591736","type":"http://id.loc.gov/vocabulary/relators/aut"}],"inCollection":"nur RPB","isbn":[{"value":"978-3-7701-8016-5","valid":true}]}
{"f35_":"_r22_ _4126432n0_ ; _sn102070_","f37_":"_sn102070_ ; _r22_ _4126432n0_","f83_":"Boeckling, Manfred / 1970-","f87_":"978-3-7701-8016-5","f90d":"2016/311","f95_":"20160128/13:51:41\u001FHBZ","f96_":"20160208/08:24:33\u001FZR","f983":"HT018859168","rpbId":"929t160199","title":"Wandern auf Rheinsteig und Rheinburgenweg","preferredTitle":"Wandern auf dem Rheinsteig und dem Rheinburgenweg","type":"Monografie","edition":"4., aktualisierte Auflage","publicationLocation":"Ostfildern","publishedBy":"DuMont Reiseverlag","publicationDate":"2012","publicationYear":"2012","extent":"180 Seiten : Illustrationen, Diagramme, Karten","note":[{"value":"Enthält Index"}],"subject":[{"value":"http://purl.org/lobid/rpb#n102070"}],"spatial":[{"value":"https://d-nb.info/gnd/4126432-0"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://d-nb.info/gnd/7501137-2"},{"value":"https://d-nb.info/gnd/7500776-9"},{"value":"https://d-nb.info/gnd/4064532-0"}]}],"inSeries":[{"value":"DuMont aktiv"}],"responsibilityStatement":"Manfred Böckling","url":[{"value":"http://d-nb.info/1069609889/04","type":"Andere URL"}],"person":[{"value":"https://d-nb.info/gnd/124591736","type":"http://id.loc.gov/vocabulary/relators/aut"}],"inCollection":"nur RPB","isbn":[{"value":"978-3-7701-8016-5","valid":true}]}
4 changes: 4 additions & 0 deletions conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ move_field("temp", "note[]")
uniq("note[]")

#-------- "isPartOf" -------
if exists("inSeries[]")
set_array("isPartOf[]")
move_field("inSeries[].*", "isPartOf[].$append")
end
if exists("isPartOf[]")
unless any_equal("type", "Band") # also sets isPartOf
set_array("temp")
Expand Down
4 changes: 4 additions & 0 deletions conf/rpb-titel-to-strapi.fix
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ if all_equal("type", "sbd")
call_macro("ref_volumeIn_unless_exists", field: "publicationYear")
end

if all_match("type", "s|sm")
move_field("isPartOf[]", "inSeries[]")
end

# Erscheinungsdatum (76a) und Erscheinungsjahr (76b) sind Pflicht bei allen selbständigen Werken (Einheitsmaske):
if all_match("type", "s|sbd|sm")
unless exists("publicationDate")
Expand Down

0 comments on commit ae72b32

Please sign in to comment.