Skip to content

Commit

Permalink
Merge pull request #47 from hbz/rpb-84
Browse files Browse the repository at this point in the history
Set up RPB-SW transformation and Strapi import (RPB-84)
  • Loading branch information
fsteeg authored Oct 4, 2023
2 parents 9ae707b + 5dd74f7 commit 7552829
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 40 deletions.
62 changes: 22 additions & 40 deletions conf/RPB-Export_HBZ_SW_Test.txt
Original file line number Diff line number Diff line change
@@ -1,40 +1,22 @@
[/]#00 00Gn00k0284156a[/]#3naCauer, Emil / 1932-[/]#3yaCauer Emil 1932[/]#95 ZR-20210808/20:45:55p-fingiert[/]#97a-ZR-20210808/20:45:55ZR[/]
[/]#00 00Gn00k0595445b[/]#3naGeschichte 959-2000[/]#3yaGeschichte 959 2000[/]#95 ZR-20140130/21:09:37s-fingiert[/]#96 ZR-20151009/07:26:16ZR-Dx[/]#97aZR-20151018/19:29:36ZR[/]
[/]#00 00Gn00k0595806a[/]#3naArzbach / Region[/]#3yaArzbach Region[/]#95 ZR-20140130/21:09:37s-fingiert[/]#97a-ZR-20140130/21:09:37ZR[/]
[/]#00 00Gn00k2111334a[/]#3naBad Ems / 2000[/]#3yaBad Ems 2000[/]#95 ZR-20161120/19:29:46s-fingiert[/]#96 ZR-20180614/13:38:05ZR-Dx[/]#97aZR-20180614/20:31:37ZR[/]
[/]#00 00Gn00k2123583a[/]#3naGeschichte 1861-1982[/]#3yaGeschichte 1861 1982[/]#95 ZR-20160426/20:12:15s-fingiert[/]#97a-ZR-20160426/20:12:15ZR[/]
[/]#00 00Gn00m0512749a[/]#3naHeilig-Kreuz-Kapelle / Oberheimbach[/]#3raOberheimbach[/]#3yaHeilig Kreuz Kapelle Oberheimbach[/]#95 ZR-20170517/20:24:11s-fingiert[/]#97a-ZR-20170517/20:24:11ZR[/]
[/]#00 00Gn00m0823304b[/]#3naGeschichte 1876-2000[/]#3yaGeschichte 1876 2000[/]#95 ZR-20140310/21:10:10s-fingiert[/]#97a-ZR-20140310/21:10:10ZR[/]
[/]#00 00Gn00m0823749a[/]#3naMari� Geburt / Selzen[/]#3nbKatholische Kirche Mari� Geburt / Selzen[/]#3ncKirche Mari� Geburt / Selzen[/]#3raSelzen[/]#3yaMari� Geburt Selzen[/]#95 ZR-20190402/20:49:03s-fingiert[/]#96 ZR-20190403/08:22:07ZR-Col[/]#97aZR-20190403/20:51:13ZR[/]
[/]#00 00Gn00s0292186a[/]#3naRabenstein[/]#95 ZR-20140324/21:07:13s-fingiert[/]#97a-ZR-20140324/21:07:13ZR[/]
[/]#00 00Gn00s1464344a[/]#3naGeschichte 1925-1990[/]#3yaGeschichte 1925 1990[/]#95 ZR-20150428/21:41:53s-fingiert[/]#97a-ZR-20150428/21:41:53ZR[/]
[/]#00 00Gn00s2929186a[/]#3naBraun, Peter / 20. Jh.[/]#3yaBraun Peter 20 Jh[/]#95 ZR-20210202/20:45:20p-fingiert[/]#97a-ZR-20210202/20:45:20ZR[/]
[/]#00 00Gn00t0636112a[/]#3naSankt Martin / Merzkirchen[/]#3yaSankt Martin Merzkirchen[/]#95 ZR-20140204/21:16:57s-fingiert[/]#97a-ZR-20140204/21:16:57ZR[/]
[/]#00 00Gn00t1023761a[/]#3naGeschichte 1093-1802[/]#3yaGeschichte 1093 1802[/]#95 ZR-20170321/20:18:04s-fingiert[/]#96 ZR-20190219/12:37:50ZR-Dx[/]#97aZR-20190219/20:44:55ZR[/]
[/]#00 00Gn00t1024744a[/]#3naGeschichte 1802-1998[/]#3yaGeschichte 1802 1998[/]#95 ZR-20170321/20:18:04s-fingiert[/]#97a-ZR-20170321/20:18:04ZR[/]
[/]#00 00Gn00t1072156a[/]#3naGeschichte 1790-1900[/]#3yaGeschichte 1790 1900[/]#95 ZR-20121202/20:59:45s-fingiert[/]#96 ZR-20201105/14:52:50RPPD-Dx[/]#97aZR-20201105/20:33:29ZR[/]
[/]#00 00Gn00x1543a[/]#3naFu�balltorwart[/]#95 ZR-20210511/20:43:36s-fingiert[/]#97a-ZR-20210511/20:43:36ZR[/]
[/]#00 00Gn01k000004117a[/]#3naWuerth, Eduard[/]#3yaWuerth Eduard[/]#95 ZR-20210519/20:47:10p-fingiert[/]#97a-ZR-20210519/20:47:10ZR[/]
[/]#00 00Gn01k006685334a[/]#3naSteinh�user, Willy[/]#3yaSteinh�user Willy[/]#95 ZR-20190325/20:43:08s-fingiert[/]#97a-ZR-20190325/20:43:08ZR[/]
[/]#00 00Gn01k011509156a[/]#3naGeschichte 1886-1962[/]#3yaGeschichte 1886 1962[/]#95 ZR-20171203/20:32:40s-fingiert[/]#97a-ZR-20171203/20:32:40ZR[/]
[/]#00 00Gn01k013133200a[/]#3naFriedrich / Veldenz, Graf[/]#3yaFriedrich Veldenz Graf[/]#95 ZR-20210420/20:42:07p-fingiert[/]#97a-ZR-20210420/20:42:07ZR[/]
[/]#00 00Gn00k0284156a[/]#3naCauer, Emil / 1932-[/]#3yaCauer Emil 1932[/]#95 ZR-20210808/20:45:55p-fingiert[/]#97a-ZR-20210808/20:45:55ZR[/]
[/]#00 00Gn00k0595445b[/]#3naGeschichte 959-2000[/]#3yaGeschichte 959 2000[/]#95 ZR-20140130/21:09:37s-fingiert[/]#96 ZR-20151009/07:26:16ZR-Dx[/]#97aZR-20151018/19:29:36ZR[/]
[/]#00 00Gn00k0595806a[/]#3naArzbach / Region[/]#3yaArzbach Region[/]#95 ZR-20140130/21:09:37s-fingiert[/]#97a-ZR-20140130/21:09:37ZR[/]
[/]#00 00Gn00k2111334a[/]#3naBad Ems / 2000[/]#3yaBad Ems 2000[/]#95 ZR-20161120/19:29:46s-fingiert[/]#96 ZR-20180614/13:38:05ZR-Dx[/]#97aZR-20180614/20:31:37ZR[/]
[/]#00 00Gn00k2123583a[/]#3naGeschichte 1861-1982[/]#3yaGeschichte 1861 1982[/]#95 ZR-20160426/20:12:15s-fingiert[/]#97a-ZR-20160426/20:12:15ZR[/]
[/]#00 00Gn00m0512749a[/]#3naHeilig-Kreuz-Kapelle / Oberheimbach[/]#3raOberheimbach[/]#3yaHeilig Kreuz Kapelle Oberheimbach[/]#95 ZR-20170517/20:24:11s-fingiert[/]#97a-ZR-20170517/20:24:11ZR[/]
[/]#00 00Gn00m0823304b[/]#3naGeschichte 1876-2000[/]#3yaGeschichte 1876 2000[/]#95 ZR-20140310/21:10:10s-fingiert[/]#97a-ZR-20140310/21:10:10ZR[/]
[/]#00 00Gn00m0823749a[/]#3naMari� Geburt / Selzen[/]#3nbKatholische Kirche Mari� Geburt / Selzen[/]#3ncKirche Mari� Geburt / Selzen[/]#3raSelzen[/]#3yaMari� Geburt Selzen[/]#95 ZR-20190402/20:49:03s-fingiert[/]#96 ZR-20190403/08:22:07ZR-Col[/]#97aZR-20190403/20:51:13ZR[/]
[/]#00 00Gn00s0292186a[/]#3naRabenstein[/]#95 ZR-20140324/21:07:13s-fingiert[/]#97a-ZR-20140324/21:07:13ZR[/]
[/]#00 00Gn00s1464344a[/]#3naGeschichte 1925-1990[/]#3yaGeschichte 1925 1990[/]#95 ZR-20150428/21:41:53s-fingiert[/]#97a-ZR-20150428/21:41:53ZR[/]
[/]#00 00Gn00s2929186a[/]#3naBraun, Peter / 20. Jh.[/]#3yaBraun Peter 20 Jh[/]#95 ZR-20210202/20:45:20p-fingiert[/]#97a-ZR-20210202/20:45:20ZR[/]
[/]#00 00Gn00t0636112a[/]#3naSankt Martin / Merzkirchen[/]#3yaSankt Martin Merzkirchen[/]#95 ZR-20140204/21:16:57s-fingiert[/]#97a-ZR-20140204/21:16:57ZR[/]
[/]#00 00Gn00t1023761a[/]#3naGeschichte 1093-1802[/]#3yaGeschichte 1093 1802[/]#95 ZR-20170321/20:18:04s-fingiert[/]#96 ZR-20190219/12:37:50ZR-Dx[/]#97aZR-20190219/20:44:55ZR[/]
[/]#00 00Gn00t1024744a[/]#3naGeschichte 1802-1998[/]#3yaGeschichte 1802 1998[/]#95 ZR-20170321/20:18:04s-fingiert[/]#97a-ZR-20170321/20:18:04ZR[/]
[/]#00 00Gn00t1072156a[/]#3naGeschichte 1790-1900[/]#3yaGeschichte 1790 1900[/]#95 ZR-20121202/20:59:45s-fingiert[/]#96 ZR-20201105/14:52:50RPPD-Dx[/]#97aZR-20201105/20:33:29ZR[/]
[/]#00 00Gn00x1543a[/]#3naFu�balltorwart[/]#95 ZR-20210511/20:43:36s-fingiert[/]#97a-ZR-20210511/20:43:36ZR[/]
[/]#00 00Gn01k000004117a[/]#3naWuerth, Eduard[/]#3yaWuerth Eduard[/]#95 ZR-20210519/20:47:10p-fingiert[/]#97a-ZR-20210519/20:47:10ZR[/]
[/]#00 00Gn01k006685334a[/]#3naSteinh�user, Willy[/]#3yaSteinh�user Willy[/]#95 ZR-20190325/20:43:08s-fingiert[/]#97a-ZR-20190325/20:43:08ZR[/]
[/]#00 00Gn01k011509156a[/]#3naGeschichte 1886-1962[/]#3yaGeschichte 1886 1962[/]#95 ZR-20171203/20:32:40s-fingiert[/]#97a-ZR-20171203/20:32:40ZR[/]
[/]#00 00Gn01k013133200a[/]#3naFriedrich / Veldenz, Graf[/]#3yaFriedrich Veldenz Graf[/]#95 ZR-20210420/20:42:07p-fingiert[/]#97a-ZR-20210420/20:42:07ZR[/]
[/]#00 00Gn00k0284156a[/]#3naCauer, Emil / 1932-[/]#3yaCauer Emil 1932[/]#95 ZR-20210808/20:45:55p-fingiert[/]#96 ZR-20210808/20:45:55p-fingiert[/]
[/]#00 00Gn00k0595445b[/]#3naGeschichte 959-2000[/]#3yaGeschichte 959 2000[/]#95 ZR-20140130/21:09:37s-fingiert[/]#96 20151009/07:26:16ZR[/]
[/]#00 00Gn00k0595806a[/]#3naArzbach / Region[/]#3yaArzbach Region[/]#95 ZR-20140130/21:09:37s-fingiert[/]#96 ZR-20140130/21:09:37s-fingiert[/]
[/]#00 00Gn00k2111334a[/]#3naBad Ems / 2000[/]#3yaBad Ems 2000[/]#95 ZR-20161120/19:29:46s-fingiert[/]#96 20180614/13:38:05ZR[/]
[/]#00 00Gn00k2123583a[/]#3naGeschichte 1861-1982[/]#3yaGeschichte 1861 1982[/]#95 ZR-20160426/20:12:15s-fingiert[/]#96 ZR-20160426/20:12:15s-fingiert[/]
[/]#00 00Gn00m0512749a[/]#3naHeilig-Kreuz-Kapelle / Oberheimbach[/]#3raOberheimbach[/]#3yaHeilig Kreuz Kapelle Oberheimbach[/]#95 ZR-20170517/20:24:11s-fingiert[/]#96 ZR-20170517/20:24:11s-fingiert[/]
[/]#00 00Gn00m0823304b[/]#3naGeschichte 1876-2000[/]#3yaGeschichte 1876 2000[/]#95 ZR-20140310/21:10:10s-fingiert[/]#96 ZR-20140310/21:10:10s-fingiert[/]
[/]#00 00Gn00m0823749a[/]#3naMari� Geburt / Selzen[/]#3nbKatholische Kirche Mari� Geburt / Selzen[/]#3ncKirche Mari� Geburt / Selzen[/]#3raSelzen[/]#3yaMari� Geburt Selzen[/]#95 ZR-20190402/20:49:03s-fingiert[/]#96 20190403/08:22:07ZR[/]
[/]#00 00Gn00s0292186a[/]#3naRabenstein[/]#95 ZR-20140324/21:07:13s-fingiert[/]#96 ZR-20140324/21:07:13s-fingiert[/]
[/]#00 00Gn00s1464344a[/]#3naGeschichte 1925-1990[/]#3yaGeschichte 1925 1990[/]#95 ZR-20150428/21:41:53s-fingiert[/]#96 ZR-20150428/21:41:53s-fingiert[/]
[/]#00 929n190548[/]#3naSchenk, G�nter[/]#3yaSchenk G�nter[/]#95 20191025/12:47:30ZR[/]#96 20191025/12:47:30ZR[/]
[/]#00 929n190549[/]#3naBuschle, Ralph[/]#3raKoblenz[/]#3yaBuschle Ralph[/]#95 20191029/12:53:07KO[/]#96 20191029/12:53:07KO[/]
[/]#00 929n190550[/]#3naSankt Georg / Treis-Karden[/]#3nbSankt Georg / Karden[/]#3ncGeorgskapelle / Treis-Karden[/]#3ndGeorgskapelle / Karden[/]#3neSt. Georg / Treis-Karden[/]#3nfSt. Georg / Karden[/]#3raTreis-Karden[/]#3rbKarden[/]#3rcTreis-Karden-Karden[/]#3yaSankt Georg Treis Karden[/]#95 20191105/13:37:05KO[/]#96 20210119/09:15:27ZR[/]
[/]#00 929n190551[/]#3naFelsinius, Philipp / 1540-1594[/]#3raHausen / Landkreis Birkenfeld[/]#3yaFelsinius Philipp 1540 1594[/]#95 20191106/09:38:22KO[/]#96 20191106/09:38:22KO[/]
[/]#00 929n190552[/]#3naRaiffeisenplatz / M�lheim-K�rlich[/]#3raM�lheim-K�rlich[/]#3yaRaiffeisenplatz M�lheim K�rlich[/]#95 20191106/12:56:21KO[/]#96 20191106/12:56:21KO[/]
[/]#00 929n190553[/]#3naWeingut Bernhard Huber[/]#3nbHuber, Bernhard / Firma[/]#3raMalterdingen[/]#3rbHuber, Julian[/]#95 20190920/11:55:53KO[/]#96 20191106/15:36:30ZR[/]
[/]#00 929n190554[/]#3naWeingut Birgit Braunstein[/]#3nbBraunstein, Birgit / Firma[/]#3raPurbach am Neusiedler See[/]#95 20190920/12:16:11KO[/]#96 20191106/15:37:03ZR[/]
[/]#00 929n190555[/]#3naWein-Plus[/]#3raErlangen[/]#3rbPortal / Internet[/]#3yaWein Plus[/]#95 20190920/12:38:09KO[/]#96 20191106/15:37:55ZR[/]
[/]#00 929n190556[/]#3naWiesenhof / Maxsain[/]#3nbAller, Andreas / Firma[/]#3ncAllers Wiesenhof[/]#3nzEU-gef�rderter "Lernort Bauernhof"[/]#3raMaxsain[/]#3yaWiesenhof Maxsain[/]#95 20191108/10:55:38KO[/]#96 20191111/08:41:32ZR[/]
[/]#00 929n190557[/]#3naKobell, Wilhelm �von� / 1766-1855 / �bergang der russischen Armee �ber den Rhein bei Mannheim. 1. Jan. 1814[/]#3nbKobell, Wilhelm �von� / 1766-1855 / Rhein�bergang[/]#3raKobell, Wilhelm �von� / 1766-1855[/]#3yaKobell Wilhelm von 1766 1855 �bergang der russischen Armee �ber den Rhein bei Mannheim 1 Jan 1814[/]#95 20191112/08:24:06KO[/]#96 20191112/08:24:41ZR[/]
[/]#00 929n210162[/]#3naBiblioVino[/]#3nbSchoene4[/]#3ncSchoene3[/]#3ndSchoene2[/]#3neBibliographie zur Geschichte des Weines[/]#3nfBibliografie zur Geschichte und Kultur des Weines[/]#3ngBibliographie zur Geschichte und Kultur des Weines[/]#3nhBibliographie zur Geschichte des Weines[/]#3niBibliographie zur Geschichte und Kultur des Weines[/]#3nzBiblioVino ist eine Literaturdokumentation der deutschsprachigen Weinliteratur. Die 1. Aufl. erschien 1976 unter dem Titeln: "Bibliographie zur Geschichte des Weines", die 2. Auflage "Schoene2" erschien 1988. Ab 2003 erscheint sie nur noch als Online-Ausgabe unter dem Titeln "Schoene3" und ab 2018 unter dem Titel "BiblioVino"[/]#3ra1976-[/]#95 20210325/08:43:09KO[/]#96 20210326/09:08:59ZR[/]
[/]#00 00Gn01k025431156a[/]#3naJohann / VI. / von Rheineck / 1368-1381[/]#3nbRheineck, Johann �von� / 1368-1381[/]#3raBurggraf[/]#3rbBurg Rheineck / Bad Breisig[/]#3yaJohann VI von Rheineck 1368 1381[/]#95 ZR-20181219/20:37:12s-fingiert[/]#96 20211214/13:14:47ZR[/]#99zPEE[/]
22 changes: 22 additions & 0 deletions conf/output/test-output-sw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{"f00_":"00Gn00k0284156a","f3na":"Cauer, Emil / 1932-","f3ya":"Cauer Emil 1932","f95_":"ZR-20210808/20:45:55\u001Fp-fingiert","f96_":"ZR-20210808/20:45:55\u001Fp-fingiert","f99z":"N/A"}
{"f00_":"00Gn00k0595445b","f3na":"Geschichte 959-2000","f3ya":"Geschichte 959 2000","f95_":"ZR-20140130/21:09:37\u001Fs-fingiert","f96_":"20151009/07:26:16\u001FZR","f99z":"N/A"}
{"f00_":"00Gn00k0595806a","f3na":"Arzbach / Region","f3ya":"Arzbach Region","f95_":"ZR-20140130/21:09:37\u001Fs-fingiert","f96_":"ZR-20140130/21:09:37\u001Fs-fingiert","f99z":"N/A"}
{"f00_":"00Gn00k2111334a","f3na":"Bad Ems / 2000","f3ya":"Bad Ems 2000","f95_":"ZR-20161120/19:29:46\u001Fs-fingiert","f96_":"20180614/13:38:05\u001FZR","f99z":"N/A"}
{"f00_":"00Gn00k2123583a","f3na":"Geschichte 1861-1982","f3ya":"Geschichte 1861 1982","f95_":"ZR-20160426/20:12:15\u001Fs-fingiert","f96_":"ZR-20160426/20:12:15\u001Fs-fingiert","f99z":"N/A"}
{"f00_":"00Gn00m0512749a","f3na":"Heilig-Kreuz-Kapelle / Oberheimbach","f3ya":"Heilig Kreuz Kapelle Oberheimbach","f95_":"ZR-20170517/20:24:11\u001Fs-fingiert","f96_":"ZR-20170517/20:24:11\u001Fs-fingiert","f3r":[{"f3r":"Oberheimbach"}],"f99z":"N/A"}
{"f00_":"00Gn00m0823304b","f3na":"Geschichte 1876-2000","f3ya":"Geschichte 1876 2000","f95_":"ZR-20140310/21:10:10\u001Fs-fingiert","f96_":"ZR-20140310/21:10:10\u001Fs-fingiert","f99z":"N/A"}
{"f00_":"00Gn00m0823749a","f3na":"Mariä Geburt / Selzen","f3ya":"Mariä Geburt Selzen","f95_":"ZR-20190402/20:49:03\u001Fs-fingiert","f96_":"20190403/08:22:07\u001FZR","f3n":[{"f3n":"Katholische Kirche Mariä Geburt / Selzen"},{"f3n":"Kirche Mariä Geburt / Selzen"}],"f3r":[{"f3r":"Selzen"}],"f99z":"N/A"}
{"f00_":"00Gn00s0292186a","f3na":"Rabenstein","f95_":"ZR-20140324/21:07:13\u001Fs-fingiert","f96_":"ZR-20140324/21:07:13\u001Fs-fingiert","f99z":"N/A"}
{"f00_":"00Gn00s1464344a","f3na":"Geschichte 1925-1990","f3ya":"Geschichte 1925 1990","f95_":"ZR-20150428/21:41:53\u001Fs-fingiert","f96_":"ZR-20150428/21:41:53\u001Fs-fingiert","f99z":"N/A"}
{"f00_":"929n190548","f3na":"Schenk, Günter","f3ya":"Schenk Günter","f95_":"20191025/12:47:30\u001FZR","f96_":"20191025/12:47:30\u001FZR","f99z":"N/A"}
{"f00_":"929n190549","f3na":"Buschle, Ralph","f3ya":"Buschle Ralph","f95_":"20191029/12:53:07\u001FKO","f96_":"20191029/12:53:07\u001FKO","f3r":[{"f3r":"Koblenz"}],"f99z":"N/A"}
{"f00_":"929n190550","f3na":"Sankt Georg / Treis-Karden","f3ya":"Sankt Georg Treis Karden","f95_":"20191105/13:37:05\u001FKO","f96_":"20210119/09:15:27\u001FZR","f3n":[{"f3n":"Sankt Georg / Karden"},{"f3n":"Georgskapelle / Treis-Karden"},{"f3n":"Georgskapelle / Karden"},{"f3n":"St. Georg / Treis-Karden"},{"f3n":"St. Georg / Karden"}],"f3r":[{"f3r":"Treis-Karden"},{"f3r":"Karden"},{"f3r":"Treis-Karden-Karden"}],"f99z":"N/A"}
{"f00_":"929n190551","f3na":"Felsinius, Philipp / 1540-1594","f3ya":"Felsinius Philipp 1540 1594","f95_":"20191106/09:38:22\u001FKO","f96_":"20191106/09:38:22\u001FKO","f3r":[{"f3r":"Hausen / Landkreis Birkenfeld"}],"f99z":"N/A"}
{"f00_":"929n190552","f3na":"Raiffeisenplatz / Mülheim-Kärlich","f3ya":"Raiffeisenplatz Mülheim Kärlich","f95_":"20191106/12:56:21\u001FKO","f96_":"20191106/12:56:21\u001FKO","f3r":[{"f3r":"Mülheim-Kärlich"}],"f99z":"N/A"}
{"f00_":"929n190553","f3na":"Weingut Bernhard Huber","f95_":"20190920/11:55:53\u001FKO","f96_":"20191106/15:36:30\u001FZR","f3n":[{"f3n":"Huber, Bernhard / Firma"}],"f3r":[{"f3r":"Malterdingen"},{"f3r":"Huber, Julian"}],"f99z":"N/A"}
{"f00_":"929n190554","f3na":"Weingut Birgit Braunstein","f95_":"20190920/12:16:11\u001FKO","f96_":"20191106/15:37:03\u001FZR","f3n":[{"f3n":"Braunstein, Birgit / Firma"}],"f3r":[{"f3r":"Purbach am Neusiedler See"}],"f99z":"N/A"}
{"f00_":"929n190555","f3na":"Wein-Plus","f3ya":"Wein Plus","f95_":"20190920/12:38:09\u001FKO","f96_":"20191106/15:37:55\u001FZR","f3r":[{"f3r":"Erlangen"},{"f3r":"Portal / Internet"}],"f99z":"N/A"}
{"f00_":"929n190556","f3na":"Wiesenhof / Maxsain","f3nz":"EU-geförderter \"Lernort Bauernhof\"","f3ya":"Wiesenhof Maxsain","f95_":"20191108/10:55:38\u001FKO","f96_":"20191111/08:41:32\u001FZR","f3n":[{"f3n":"Aller, Andreas / Firma"},{"f3n":"Allers Wiesenhof"}],"f3r":[{"f3r":"Maxsain"}],"f99z":"N/A"}
{"f00_":"929n190557","f3na":"Kobell, Wilhelm ¬von¬ / 1766-1855 / Übergang der russischen Armee über den Rhein bei Mannheim. 1. Jan. 1814","f3ya":"Kobell Wilhelm von 1766 1855 Übergang der russischen Armee über den Rhein bei Mannheim 1 Jan 1814","f95_":"20191112/08:24:06\u001FKO","f96_":"20191112/08:24:41\u001FZR","f3n":[{"f3n":"Kobell, Wilhelm ¬von¬ / 1766-1855 / Rheinübergang"}],"f3r":[{"f3r":"Kobell, Wilhelm ¬von¬ / 1766-1855"}],"f99z":"N/A"}
{"f00_":"929n210162","f3na":"BiblioVino","f3nz":"BiblioVino ist eine Literaturdokumentation der deutschsprachigen Weinliteratur. Die 1. Aufl. erschien 1976 unter dem Titeln: \"Bibliographie zur Geschichte des Weines\", die 2. Auflage \"Schoene2\" erschien 1988. Ab 2003 erscheint sie nur noch als Online-Ausgabe unter dem Titeln \"Schoene3\" und ab 2018 unter dem Titel \"BiblioVino\"","f95_":"20210325/08:43:09\u001FKO","f96_":"20210326/09:08:59\u001FZR","f3n":[{"f3n":"Schoene4"},{"f3n":"Schoene3"},{"f3n":"Schoene2"},{"f3n":"Bibliographie zur Geschichte des Weines"},{"f3n":"Bibliografie zur Geschichte und Kultur des Weines"},{"f3n":"Bibliographie zur Geschichte und Kultur des Weines"},{"f3n":"Bibliographie zur Geschichte des Weines"},{"f3n":"Bibliographie zur Geschichte und Kultur des Weines"}],"f3r":[{"f3r":"1976-"}],"f99z":"N/A"}
{"f00_":"00Gn01k025431156a","f3na":"Johann / VI. / von Rheineck / 1368-1381","f3ya":"Johann VI von Rheineck 1368 1381","f95_":"ZR-20181219/20:37:12\u001Fs-fingiert","f96_":"20211214/13:14:47\u001FZR","f99z":"Person","f3n":[{"f3n":"Rheineck, Johann ¬von¬ / 1368-1381"}],"f3r":[{"f3r":"Burggraf"},{"f3r":"Burg Rheineck / Bad Breisig"}]}
15 changes: 15 additions & 0 deletions conf/rpb-sw-import.flux
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//API_URL = "http://test-metadaten-nrw.hbz-nrw.de:1339/api/rpb-authorities";
API_URL = "http://localhost:1339/api/rpb-authorities";

// FLUX_DIR + "output/output-sw-strapi.ndjson"
FLUX_DIR + "output/test-output-sw.json"
| open-file
| as-lines
| regex-decode("(?<data>.+)")
| stream-to-triples
| template("{\"${p}\":${o}}") // wrap into 'data' object for strapi
| log-object("Will POST: ")
| open-http(url=API_URL, method="POST", contentType="application/json")
| as-lines
| log-object("POST Response: ")
;
33 changes: 33 additions & 0 deletions conf/rpb-sw-to-strapi.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
do put_macro("add")
if exists("$[from]")
set_array("_temp")
move_field("$[from]", "_temp.$append.f$[to]")
move_field("_temp.*", "f$[to][].$append")
end
end

do put_macro("add_all")
set_array("f$[to][]")
call_macro("add", to: "$[to]", from: "f$[from]", type: "")
end

call_macro("add_all", to: "3n", from: "3n[bcdefghijklmnopqrstuvwxy]")
call_macro("add_all", to: "3r", from: "3r?")

if exists("f99z")
lookup("f99z",
GEE: "Geografikum",
KEE: "Körperschaft",
PEE: "Person", # ?
PPE: "Person", # ?
SEE: "Sachschlagwort",
VEE: "Veranstaltung",
WEE: "Werk",
XEE: "N/A", # ?
XSO: "N/A", # ?
__default: "N/A")
else
add_field("f99z", "N/A")
end

vacuum()
13 changes: 13 additions & 0 deletions conf/rpb-sw-to-strapi.flux
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// default outfile = "conf/output/output-sw-strapi.ndjson";
default outfile = "conf/output/test-output-sw.json";

// wget http://lobid.org/download/rpb-gesamtexport/2023-06-01/RPB-Export_HBZ_SW.txt
// FLUX_DIR + "RPB-Export_HBZ_SW.txt"
FLUX_DIR + "RPB-Export_HBZ_SW_Test.txt"
| open-file(encoding="IBM437")
| as-lines
| rpb.Decode
| fix(FLUX_DIR + "rpb-sw-to-strapi.fix")
| encode-json(prettyPrinting="false", booleanMarker="~")
| write(outfile)
;

0 comments on commit 7552829

Please sign in to comment.