Skip to content

Commit

Permalink
Don't map 4- or 5-digit values from #983 to hbzId (RPB-222)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Nov 7, 2024
1 parent d82e853 commit 21a471c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion conf/output/test-output-88.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"type" : [ "BibliographicResource", "Article" ],
"rpbId" : "107t01167281",
"id" : "https://lobid.org/resources/107t01167281",
"hbzId" : "2158",
"inCollection" : [ {
"id" : "http://lobid.org/resources/HT013494180#!",
"type" : [ "Collection" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-output-strapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
{"f35_":"_r22_ _4126432n0_ ; _sn102070_","f37_":"_sn102070_ ; _r22_ _4126432n0_","f83_":"Boeckling, Manfred / 1970-","f87_":"978-3-7701-8016-5","f96_":"20160208/08:24:33\u001FZR","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","hbzId":"HT018859168","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"}],"item":[{"value":"2016/311","type":"KO"}],"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","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","item":[{"value":"Per. 5998/2009-2010","type":"SP"},{"value":"Z 37","type":"KO"}],"person":[{"value":"https://d-nb.info/gnd/132532336","type":"Verfasser/in"}],"inCollection":"nur RPB","isbn":[{"value":"978-3-935690-66-9","valid":true}]}
{"f35_":"_r99_ _o232080600101_ ; _sn240400_","f37_":"_sn240400_ ; _r99_ _o232080600101_","f96_":"20230112/12:09:16\u001FZR","f97x":"mbd","f97y":"Einspielung: Mittelrhein-Mosel-Literaturdokumentation 1945-1990 [mmb-1990-2183;Sign. Z 1184;Z 1184]","f995":"Ortsbeschreibung und Ortsgeschichte, LandschaftenOrtsbeschreibung und Ortsgeschichte, Landschaften","f997":"Meilbrück","rpbId":"121t0146618","numbering":"1","title":"2000 Jahre Meilbrück : vom römischen Tempelbezirk zur modernen Raststätte; Von den Anfängen bis zum Ende der Römerherrschaft","alternativeTitle":[{"value":"Zweitausend Jahre Meilbrück"}],"type":"u","bibliographicCitation":[{"value":"Heimatkalender Landkreis Bitburg-Prüm. - 1990, S. 74 - 78","pages":"Aus #70~, #701 ff.: S. 74 - 78"}],"publicationDate":"1990","publicationYear":"1990","extent":"Ill.","created":"ZR-19991015/00:00:00\u001FTR-MML-Import","subject":[{"value":"http://purl.org/lobid/rpb#n240400"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n232080600101"}],"item":[{"value":"Z 1184;Z 1184","type":"TR"}],"person":[{"value":"http://rpb.lobid.org/sw/00Pn02t0375a","type":"Verfasser/in"}],"inCollection":"nur RPB","volumeIn":{"numbering":"1","value":"https://lobid.org/resources/121t0146618"}}
{"f35_":"_r32_ ; _sn613010_","f37_":"_sn613010_ ; _r32_","f88_":"0341-9452","f96_":"20220120/11:22:01\u001FSP","f97y":"Einspielung: Bestand der Bibliothek der Evangelischen Kirche der Pfalz","rpbId":"107t01167281","title":"Bericht über die erste ordentliche Hauptversammlung","type":"u","bibliographicCitation":[{"value":"Blätter für pfälzische Kirchengeschichte. - 1 (1925), S. 124-125","pages":"Aus #70~, #701 ff.: S. 124-125"}],"publicationDate":"1925","publicationYear":"1925","created":"ZR-20030107/00:00:00\u001FZR-EKPF","hbzId":"2158","subject":[{"value":"http://purl.org/lobid/rpb#n613010"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n32"}],"subjectComponentList":[{"subjectComponent":[{"value":"http://rpb.lobid.org/sw/00Sn01s167281807a"},{"value":"https://d-nb.info/gnd/4511937-5"}]}],"responsibilityStatement":"[H. Heilmann]","url":[{"value":"https://www.dilibri.de/rlb/periodical/pageview/2495547","type":"Volltext"}],"item":[{"value":"Palat. 101/1.1925;Palat. 102/1.1925;Palat. 100/1.1925 HBL","type":"SP"}],"person":[{"value":"http://rpb.lobid.org/sw/00Pn01s22568415a","type":"Verfasser/in"}],"inCollection":"nur RPB"}
{"f35_":"_r32_ ; _sn613010_","f37_":"_sn613010_ ; _r32_","f88_":"0341-9452","f96_":"20220120/11:22:01\u001FSP","f97y":"Einspielung: Bestand der Bibliothek der Evangelischen Kirche der Pfalz","f983":"2158","rpbId":"107t01167281","title":"Bericht über die erste ordentliche Hauptversammlung","type":"u","bibliographicCitation":[{"value":"Blätter für pfälzische Kirchengeschichte. - 1 (1925), S. 124-125","pages":"Aus #70~, #701 ff.: S. 124-125"}],"publicationDate":"1925","publicationYear":"1925","created":"ZR-20030107/00:00:00\u001FZR-EKPF","subject":[{"value":"http://purl.org/lobid/rpb#n613010"}],"spatial":[{"value":"https://rpb.lobid.org/spatial#n32"}],"subjectComponentList":[{"subjectComponent":[{"value":"http://rpb.lobid.org/sw/00Sn01s167281807a"},{"value":"https://d-nb.info/gnd/4511937-5"}]}],"responsibilityStatement":"[H. Heilmann]","url":[{"value":"https://www.dilibri.de/rlb/periodical/pageview/2495547","type":"Volltext"}],"item":[{"value":"Palat. 101/1.1925;Palat. 102/1.1925;Palat. 100/1.1925 HBL","type":"SP"}],"person":[{"value":"http://rpb.lobid.org/sw/00Pn01s22568415a","type":"Verfasser/in"}],"inCollection":"nur RPB"}
5 changes: 4 additions & 1 deletion conf/rpb-titel-to-strapi.fix
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ call_macro("move_all", from: "f85?", to: "isPartOf")
call_macro("move", to: "isPartOf", from: "f20u", type: "")
move_field("f86_", "otherId")
move_field("f95_", "created")
move_field("f983", "hbzId")

unless all_match("f983", "\\d{4,5}") # https://jira.hbz-nrw.de/browse/RPB-222
move_field("f983", "hbzId")
end

call_macro("move_all", from: "f30?", to: "subject") # Sachnotation
replace_all("subject[].*.value","_s(n\\d+)_","http://purl.org/lobid/rpb#$1")
Expand Down

0 comments on commit 21a471c

Please sign in to comment.