Skip to content

Commit

Permalink
Remove nonfiling character ¬ in title data import (RPB-218)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Oct 29, 2024
1 parent 2917e9b commit 0b549a1
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion conf/output/test-output-3.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
} ],
"title" : "The Rhenish minstrel [Elektronische Ressource] : A Series of Ballads, traditional and legendary, of the Rhine",
"extent" : "[1], [21] Kunstbl. ; s/w ; 24 x 28 cm",
"note" : [ "In Fraktur ; HT010123631 Dt. Ausg. u.d.T.: Stolterfoth, Adelheid ¬von¬: Rheinischer Sagenkreis" ],
"note" : [ "In Fraktur ; HT010123631 Dt. Ausg. u.d.T.: Stolterfoth, Adelheid von: Rheinischer Sagenkreis" ],
"responsibilityStatement" : [ "by Adelheid von Stolterfoth. Embellished with twenty-one lithographic sketches, by Dielmann, from the designs of A. Rethel" ],
"publication" : [ {
"location" : [ "Frankfort o/M." ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-output-38.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "https://lobid.org/resources/107t982375",
"label" : "¬Die¬ Zeitschrift : der Südwestrundfunk und seine Programme. Rheinland-Pfalz"
"label" : "Die Zeitschrift : der Südwestrundfunk und seine Programme. Rheinland-Pfalz"
} ],
"numbering" : "1998,1(Sept.) - 2001,9(Sept.)"
} ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-output-4.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
} ],
"title" : "The Rhenish minstrel [Elektronische Ressource] : A Series of Ballads, traditional and legendary, of the Rhine",
"extent" : "[3] Bl., 19 S., [1] Bl., 65 S., [21] Bl. : zahlr. Ill. ; quer 4-o",
"note" : [ "In Fraktur. Titelbl., Inhaltsverz., und 19 S. Erläuterungen in Engl., Text dt. ; HT010123631 Dt. Ausg. u.d.T.: Stolterfoth, Adelheid ¬von¬: Rheinischer Sagenkreis" ],
"note" : [ "In Fraktur. Titelbl., Inhaltsverz., und 19 S. Erläuterungen in Engl., Text dt. ; HT010123631 Dt. Ausg. u.d.T.: Stolterfoth, Adelheid von: Rheinischer Sagenkreis" ],
"responsibilityStatement" : [ "by Adelheid von Stolterfoth. Embellished with twenty-one lithographic sketches, by Dielmann, from the designs of A. Rethel" ],
"publication" : [ {
"location" : [ "Frankfort o/M." ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-output-42.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "https://lobid.org/resources/107t982377",
"label" : "¬Der¬ Rasenspieler : das Journal zur Saison ..."
"label" : "Der Rasenspieler : das Journal zur Saison ..."
} ],
"numbering" : "Nachgewiesen 1998/99(1998) - 2000/01; 2001/02 - 2002/03"
} ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-output-44.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type" : [ "IsPartOfRelation" ],
"hasSuperordinate" : [ {
"id" : "https://lobid.org/resources/107t982378",
"label" : "¬'s¬ Derfsche : Ebertsheim-Rodenbach, das Dorf im Grünen"
"label" : "'s Derfsche : Ebertsheim-Rodenbach, das Dorf im Grünen"
} ],
"numbering" : "1998,Apr."
} ],
Expand Down
46 changes: 23 additions & 23 deletions conf/output/test-output-strapi.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions conf/rpb-test-titel-to-strapi.flux
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FLUX_DIR + "RPB-Export_HBZ_Titel_Test.txt"
| open-file(encoding="IBM437")
| as-lines
| match(pattern="¬", replacement="")
| rpb.Decode
| fix(FLUX_DIR + "rpb-titel-to-strapi.fix")
| encode-json(prettyPrinting="false", booleanMarker="~")
Expand Down
2 changes: 0 additions & 2 deletions conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ call_macro("move_here", field: "title")
if is_array("title")
copy_field("title.$last", "title")
end
replace_all("title","¬","")
replace_all("title", "\\s\\+", "")

# ------- "extent" -------
Expand Down Expand Up @@ -308,7 +307,6 @@ call_macro("contributions", from: "corporateBody")
move_field("bibliographicCitation.value", "_temp")
remove_field("bibliographicCitation")
move_field("_temp", "bibliographicCitation")
replace_all("bibliographicCitation","¬","")

# fulltextOnline and link to external description/ToC

Expand Down
1 change: 1 addition & 0 deletions conf/rpb-titel-to-strapi.flux
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ default outfile = "conf/output/output-strapi.ndjson";
FLUX_DIR + "RPB-Export_HBZ_Tit.txt"
| open-file(encoding="IBM437")
| as-lines
| match(pattern="¬", replacement="")
| rpb.Decode
| fix(FLUX_DIR + "rpb-titel-to-strapi.fix")
| encode-json(prettyPrinting="false", booleanMarker="~")
Expand Down

0 comments on commit 0b549a1

Please sign in to comment.