Skip to content

Commit

Permalink
Remove f01.f01s if it's not a year, i.e. 4 digits (RPB-58)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Sep 5, 2023
1 parent b1934aa commit 8250a0d
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -53,7 +53,7 @@
{"f00_":"929t190565","f20_":"Weingeschäft im Umbruch : Pieroth setzt auf alten Namen und eine neue Vermarktungsstrategie, um auch neue Kundengruppen zu erreichen","f30_":"_sn544360_","f30a":"_sn544325_","f31_":"_r99_ _o133110870101_","f31a":"_r99_ _o133110870101_","f32_":"_2075606n9_ ; _4121857n7_","f35_":"_r99_ _o133110870101_ ; _sn544360_","f35a":"_r99_ _o133110870101_ ; _sn544325_","f36_":"u","f37_":"_sn544360_ ; _r99_ _o133110870101_","f37a":"_sn544325_ ; _r99_ _o133110870101_","f39_":"T.S.","f40_":"_929n981242_","f70h":"3","f70j":"2018","f70s":"20-21","f70t":"Initiativ","f76a":"2018","f76b":"2018","f77_":"Illustrationen","f88_":"918245-7","f90d":"ZA 2245:2018 MAG","f95_":"20190219/12:36:13\u001FKO","f96_":"20190219/12:37:56\u001FKO","f30":[{"f30_":"http://purl.org/lobid/rpb#n544360"},{"f30_":"http://purl.org/lobid/rpb#n544325"}],"f31":[{"f31_":"https://rpb.lobid.org/spatial#n133110870101"},{"f31_":"https://rpb.lobid.org/spatial#n133110870101"}],"f32":[{"f32_":[{"f32_":"https://d-nb.info/gnd/2075606-9"},{"f32_":"https://d-nb.info/gnd/4121857-7"}]}],"f70":[{"f70_":"s. spez. Felder f70b ff."}],"f40":[{"f40_":"https://rpb.lobid.org/agent/929n981242","n40a":"http://id.loc.gov/vocabulary/relators/aut"}],"f18_":true}
{"f00_":"929t01069600","f20_":"Vortrag über Heinrich Alken von Dr. Born.","f30_":"_sn109000_","f31_":"_r99_ _o13700068_","f35_":"_r99_ _o13700068_ ; _sn109000_","f36_":"u","f37_":"_sn109000_ ; _r99_ _o13700068_","f40_":"_1044265310_","f70_":"Coblenzer Zeitung 25.1.1920.","f701":"Mayener Volkszeitung. - 26.1.1920.","f702":"Mayener Zeitung. - 31.1.1920.","f76a":"1920","f76b":"1920","f90d":"Vgl. Bibliotheks-Katalog","f95_":"ZR-20170919/00:00:00\u001FKO-Retro-GAV","f96_":"20170919/00:00:00\u001FKO","f97y":"Einspielung: Hörter, Fridolin / 1924-2017: Bibliographie von Mayen und Umgebung, Mayen 2002 (= http://nbn-resolving.de/urn:nbn:de:hbz:929:02-edoweb:50484492)","f30":[{"f30_":"http://purl.org/lobid/rpb#n109000"}],"f31":[{"f31_":"https://rpb.lobid.org/spatial#n13700068"}],"f70":[{"f70_":"Coblenzer Zeitung 25.1.1920."},{"f70_":"Mayener Volkszeitung. - 26.1.1920."},{"f70_":"Mayener Zeitung. - 31.1.1920."}],"f70s":"Kopiert aus f70_: Coblenzer Zeitung 25.1.1920.","f40":[{"f40_":"https://d-nb.info/gnd/1044265310","n40a":"http://id.loc.gov/vocabulary/relators/aut"}]}
{"f00_":"036t160240","f20_":"Piffche-Bahnfahrt durch Rheinhessen","f24_":"Piffsche-Bahnfahrd dorsch Rhoihesse","f30_":"_sn706090_","f30a":"_sn102045_","f30b":"_sn240300_","f31_":"_r05_","f31a":"_r05_","f31b":"_r05_","f35_":"_r05_ ; _sn706090_","f35a":"_r05_ ; _sn102045_","f35b":"_r05_ ; _sn240300_","f36_":"sm","f37_":"_sn706090_ ; _r05_","f37a":"_sn102045_ ; _r05_","f37b":"_sn240300_ ; _r05_","f39_":"Hartmut Keil","f40_":"_122882679_","f74_":"Worms","f75_":"Hartmut Keil","f76a":"2016","f76b":"2016","f81_":"Text teilweise Hochdeutsch, teilweise in rheinhessischem Dialekt","f95_":"20160329/16:38:51\u001FMZ","f96_":"20180306/12:17:24\u001FMZ","f97x":"mbd","f36t":"MultiVolumeBook","f24":[{"f24_":"Piffsche-Bahnfahrd dorsch Rhoihesse"}],"f30":[{"f30_":"http://purl.org/lobid/rpb#n706090"},{"f30_":"http://purl.org/lobid/rpb#n102045"},{"f30_":"http://purl.org/lobid/rpb#n240300"}],"f31":[{"f31_":"https://rpb.lobid.org/spatial#n05"},{"f31_":"https://rpb.lobid.org/spatial#n05"},{"f31_":"https://rpb.lobid.org/spatial#n05"}],"f81":[{"f81_":"Text teilweise Hochdeutsch, teilweise in rheinhessischem Dialekt"}],"f40":[{"f40_":"https://d-nb.info/gnd/122882679","n40a":"http://id.loc.gov/vocabulary/relators/aut"}]}
{"f00_":"036t160240b1","f20u":"Piffche-Bahnfahrt durch Rheinhessen","f20_":"Piffche-Bahnfahrt durch Rheinhessen : [1]","f01_":"[1]","f36_":"sbd","f76a":"[2016]","f77_":"240 Seiten : Illustrationen","f76b":"s. Zählung in f01_","f90a":[{"f90a":"2016/106"}],"f01":{"f01_":"[1]","f01s":"[1]","f01u":"https://lobid.org/resources/RPB036t160240"}}
{"f00_":"036t160240b2","f20u":"Piffche-Bahnfahrt durch Rheinhessen","f20_":"Piffche-Bahnfahrt durch Rheinhessen : 2","f01_":"2","f36_":"sbd","f76a":"[Dezember 2017]","f77_":"256 Seiten : Illustrationen","f76b":"s. Zählung in f01_","f90a":[{"f90a":"2018/23"}],"f01":{"f01_":"2","f01s":"2","f01u":"https://lobid.org/resources/RPB036t160240"}}
{"f00_":"036t160240b1","f20u":"Piffche-Bahnfahrt durch Rheinhessen","f20_":"Piffche-Bahnfahrt durch Rheinhessen : [1]","f01_":"[1]","f36_":"sbd","f76a":"[2016]","f77_":"240 Seiten : Illustrationen","f76b":"s. Zählung in f01_","f90a":[{"f90a":"2016/106"}],"f01":{"f01_":"[1]","f01u":"https://lobid.org/resources/RPB036t160240"}}
{"f00_":"036t160240b2","f20u":"Piffche-Bahnfahrt durch Rheinhessen","f20_":"Piffche-Bahnfahrt durch Rheinhessen : 2","f01_":"2","f36_":"sbd","f76a":"[Dezember 2017]","f77_":"256 Seiten : Illustrationen","f76b":"s. Zählung in f01_","f90a":[{"f90a":"2018/23"}],"f01":{"f01_":"2","f01u":"https://lobid.org/resources/RPB036t160240"}}
{"f00_":"121t0144215","f19_":"Heimatjahrbuch / Bibliographie","f20_":"Bibliographie zu den Jahrbüchern des Kreises Daun","f30_":"_sn882026_","f30a":"_sn240400_","f31_":"_r99_ _o23301501_","f31a":"_r99_ _o23301501_","f35_":"_r99_ _o23301501_ ; _sn882026_","f35a":"_r99_ _o23301501_ ; _sn240400_","f36_":"sm","f37_":"_sn882026_ ; _r99_ _o23301501_","f37a":"_sn240400_ ; _r99_ _o23301501_","f39_":"Kreis Daun, Vulkaneifel. Hrsg.: Kreisverwaltung Daun","f60_":"_2038546n8_","f74_":"Monschau","f75_":"Weiss-Dr.","f76a":"[1973]","f76b":"1973","f88_":"0939-9607","f90c":"Z 1249","f95_":"ZR-20070704/15:19:27\u001FTR-MML-Import","f96_":"20070704/15:19:27\u001FTR","f97x":"per","f97y":"Einspielung: Mittelrhein-Mosel-Literaturdokumentation 1945-1990 [mmb-1990-0014;Sign. Z 1249]","f995":"Allgemeine Zeitschriften, Schriftenreihen und Kalender;Ortsbeschreibung und Ortsgeschichte, Landschaften","f997":"Daun","f36t":"Periodical","f30":[{"f30_":"http://purl.org/lobid/rpb#n882026"},{"f30_":"http://purl.org/lobid/rpb#n240400"}],"f31":[{"f31_":"https://rpb.lobid.org/spatial#n23301501"},{"f31_":"https://rpb.lobid.org/spatial#n23301501"}],"f60":[{"f60_":"https://d-nb.info/gnd/2038546-8","n60a":"http://id.loc.gov/vocabulary/relators/org"}]}
{"f00_":"121t0144215b1","f20u":"Bibliographie zu den Jahrbüchern des Kreises Daun","f20_":"Bibliographie zu den Jahrbüchern des Kreises Daun : 1973/90 (1990) -","f01_":"1973/90 (1990) -","f36_":"sbd","f76a":"s. Zählung in f01_","f76b":"s. Zählung in f01_","f01":{"f01_":"1973/90 (1990) -","f01s":"1990","f01u":"https://lobid.org/resources/RPB121t0144215"}}
3 changes: 3 additions & 0 deletions conf/rpb-titel-to-strapi.fix
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ if exists("f01_")
copy_field("f01_", "f01.f01_") # Zählung (Vorlage)
copy_field("f01_", "f01.f01s") # Zählung (Sortierform)
replace_all("f01.f01s", "^.*((19|20)\\d\\d).*$", "$1")
unless all_match("f01.f01s", "\\d{4}")
remove_field("f01.f01s")
end
copy_field("_id", "f01.f01u") # Verknüpfung zur MtM (ÜO)
replace_all("f01.f01u","b\\d+","")
prepend("f01.f01u","https://lobid.org/resources/RPB")
Expand Down

0 comments on commit 8250a0d

Please sign in to comment.