From 85028ed35840126d93481a777346beaff6433c16 Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Wed, 16 Oct 2024 11:50:54 +0200 Subject: [PATCH] Handle article series `#36~um` like articles `#36~u` (RPB-205) --- conf/RPB-Export_HBZ_Titel_Test.txt | 1 + conf/output/test-output-strapi.json | 1 + conf/rpb-titel-to-strapi.fix | 1 + 3 files changed, 3 insertions(+) diff --git a/conf/RPB-Export_HBZ_Titel_Test.txt b/conf/RPB-Export_HBZ_Titel_Test.txt index 4d3acce..218a63a 100644 --- a/conf/RPB-Export_HBZ_Titel_Test.txt +++ b/conf/RPB-Export_HBZ_Titel_Test.txt @@ -71,3 +71,4 @@ [/]#00 121t231109[/]#20 Der Wiedweg - blaues Wasser, grne Pfade : Etappenwandern von der Quelle bis zur Mndung[/]#30 _sn102070_[/]#30a_sn102070_[/]#31 _r22_[/]#31a_r10_[/]#32 _929n110124_ ; _4155569n7_[/]#35 _r22_ ; _sn102070_[/]#35a_r10_ ; _sn102070_[/]#36 u[/]#37 _sn102070_ ; _r22_[/]#37a_sn102070_ ; _r10_[/]#70b118[/]#70h3[/]#70j2023[/]#70s48-52[/]#70tDie Eifel[/]#76a2023[/]#76b2023[/]#77 Illustrationen[/]#88 0176-8255[/]#90cZ 1666-118(2023)[/]#95 20230927/11:44:46TR[/]#96 20230927/11:44:46TR[/] [/]#00 107t182053[/]#20 Friedrich Christian Laukhard (1757-1822) : Schriftsteller, Radikalaufklrer und gelehrter Soldat[/]#30 _sn768030_[/]#31 _r99_ _o33105070_[/]#32 _118726692_ ; _4006804n3_[/]#35 _r99_ _o33105070_ ; _sn768030_[/]#36 s[/]#37 _sn768030_ ; _r99_ _o33105070_[/]#39 Guido Naschert (Hg.)[/]#41 _00Gn18s2053186a_[/]#74 Paderborn[/]#75 Ferdinand Schningh[/]#76a[2017][/]#76b2017[/]#77 218 Seiten : Illustrationen, Karte[/]#83 Laukhard, Friedrich Christian / 1757-1822[/]#87 978-3-506-77967-0[/]#90b117-3134[/]#90d2020/1429[/]#90fhttp://digitale-objekte.hbz-nrw.de/storage2/2017/08/19/file_28/7343682.pdf[/]#90ghttps://www.hsozkult.de/publicationreview/id/reb-22111[/]#95 20180620/10:01:03HBZ[/]#96 20200603/09:22:21KO[/]#983HT019399122[/] [/]#00 929t160199[/]#20 Wandern auf Rheinsteig und Rheinburgenweg[/]#21 Wandern auf dem Rheinsteig und dem Rheinburgenweg[/]#30 _sn102070_[/]#31 _r22_ _4126432n0_[/]#32 _7501137n2_ ; _7500776n9_ ; _4064532n0_[/]#35 _r22_ _4126432n0_ ; _sn102070_[/]#36 s[/]#37 _sn102070_ ; _r22_ _4126432n0_[/]#39 Manfred Bckling[/]#40 _124591736_[/]#71 4., aktualisierte Auflage[/]#74 Ostfildern[/]#75 DuMont Reiseverlag[/]#76a2012[/]#76b2012[/]#77 180 Seiten : Illustrationen, Diagramme, Karten[/]#81 Enthlt Index[/]#83 Boeckling, Manfred / 1970-[/]#85 DuMont aktiv[/]#87 978-3-7701-8016-5[/]#90d2016/311[/]#90fhttp://d-nb.info/1069609889/04[/]#95 20160128/13:51:41HBZ[/]#96 20160208/08:24:33ZR[/]#983HT018859168[/] +[/]#00 929t091078[/]#20 Zur Geschichte und Organisation der Neuwieder Feuerwehr[/]#30 _sn428074_[/]#31 _r99_ _o13800045_[/]#32 _5094678nX_ ; _4072821n3_ ; _00Sn09k1078995a_[/]#32a_5094678nX_ ; _4077814n9_ ; _00Sn09k1078114a_[/]#35 _r99_ _o13800045_ ; _sn428074_[/]#36 um[/]#37 _sn428074_ ; _r99_ _o13800045_[/]#39 Dr. Wolfgang Dietz[/]#40 _132532336_[/]#70 Landkreis Neuwied: Heimatjahrbuch des Landkreises Neuwied. - 2009, S. 383-392 (1. Teil: Innenstadt); 2010, S. 287-305 (2. Teil: Stadtteile)[/]#76a2008[/]#76b2008[/]#77 Ill.[/]#87 978-3-935690-66-9[/]#88 401745-6[/]#90bPer. 5998/2009-2010[/]#90dZ 37[/]#95 20090319/11:37:43KO[/]#96 20210212/11:44:44SP[/] diff --git a/conf/output/test-output-strapi.json b/conf/output/test-output-strapi.json index b6986f9..3fb5b89 100644 --- a/conf/output/test-output-strapi.json +++ b/conf/output/test-output-strapi.json @@ -84,3 +84,4 @@ {"f35_":"_r22_ ; _sn102070_","f35a":"_r10_ ; _sn102070_","f37_":"_sn102070_ ; _r22_","f37a":"_sn102070_ ; _r10_","f70t":"¬Die¬ Eifel","f88_":"0176-8255","f90c":"Z 1666-118(2023)","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":{"volume":"118","issue":"3","year":"2023","pages":"48-52","value":"In: ¬Die¬ Eifel. - 118 (2023), 3, Seite 48-52. -"},"publicationDate":"2023","publicationYear":"2023","extent":"Illustrationen","created":"20230927/11:44:46\u001FTR","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":"http://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","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","created":"20180620/10:01:03\u001FHBZ","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":"http://rpb.lobid.org/sw/00Gn18s2053186a","type":"Herausgeber/in"}],"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","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"}],"created":"20160128/13:51:41\u001FHBZ","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":"Verfasser/in"}],"inCollection":"nur RPB","isbn":[{"value":"978-3-7701-8016-5","valid":true}]} +{"f35_":"_r99_ _o13800045_ ; _sn428074_","f37_":"_sn428074_ ; _r99_ _o13800045_","f87_":"978-3-935690-66-9","f88_":"401745-6","f90b":"Per. 5998/2009-2010","f90d":"Z 37","f96_":"20210212/11:44:44\u001FSP","rpbId":"929t091078","title":"Zur Geschichte und Organisation der Neuwieder Feuerwehr","type":"u","bibliographicCitation":{"value":"Landkreis Neuwied: Heimatjahrbuch des Landkreises Neuwied. - 2009, S. 383-392 (1. Teil: Innenstadt); 2010, S. 287-305 (2. Teil: Stadtteile)","pages":"Aus #70~, #701 ff.: S. 287-305"},"publicationDate":"2008","publicationYear":"2008","extent":"Ill.","created":"20090319/11:37:43\u001FKO","subject":[{"value":"http://purl.org/lobid/rpb#n428074"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n13800045"}],"subjectComponentList":[{"subjectComponent":[{"value":"https://d-nb.info/gnd/5094678nX"},{"value":"https://d-nb.info/gnd/4072821-3"},{"value":"http://rpb.lobid.org/sw/00Sn09k1078995a"}]},{"subjectComponent":[{"value":"https://d-nb.info/gnd/5094678nX"},{"value":"https://d-nb.info/gnd/4077814-9"},{"value":"http://rpb.lobid.org/sw/00Sn09k1078114a"}]}],"responsibilityStatement":"Dr. Wolfgang Dietz","person":[{"value":"https://d-nb.info/gnd/132532336","type":"Verfasser/in"}],"inCollection":"nur RPB","isbn":[{"value":"978-3-935690-66-9","valid":true}]} diff --git a/conf/rpb-titel-to-strapi.fix b/conf/rpb-titel-to-strapi.fix index 0694c44..f1ff44a 100644 --- a/conf/rpb-titel-to-strapi.fix +++ b/conf/rpb-titel-to-strapi.fix @@ -75,6 +75,7 @@ call_macro("move_all", from: "f24?", to: "parallelTitle") call_macro("move_all", from: "f27?", to: "alternativeTitle") move_field("f28_", "alternativeSpelling") move_field("f36_", "type") +replace_all("type", "um", "u") # https://jira.hbz-nrw.de/browse/RPB-205 move_field("f70[_123456789]", "bibliographicCitation.value") join_field("bibliographicCitation.value", "; ") move_field("f70b", "bibliographicCitation.volume")