diff --git a/conf/output/test-output-rppd-lobid-45.json b/conf/output/test-output-rppd-lobid-45.json index de1c1c4c..fa69d513 100644 --- a/conf/output/test-output-rppd-lobid-45.json +++ b/conf/output/test-output-rppd-lobid-45.json @@ -16,6 +16,7 @@ "label" : "Politiker", "id" : "https://d-nb.info/gnd/4046517-2" } ], + "periodOfActivity" : [ "1848" ], "gender" : [ { "id" : "https://d-nb.info/standards/vocab/gnd/gender#male", "label" : "Männlich" diff --git a/conf/rppd-to-lobid.fix b/conf/rppd-to-lobid.fix index 3ee97504..7f606c82 100644 --- a/conf/rppd-to-lobid.fix +++ b/conf/rppd-to-lobid.fix @@ -90,7 +90,10 @@ end # ------- # #1wz (Wirkungszeitraum) -> periodOfActivity # Kommentar Doku: Wenn kein Geburtsdatum und kein Todesdatum ermittelbar ist, kann hier ein Zeitraum eingetragen werden - +# TODO kein Beispiel in Testdaten +set_array("periodOfActivity[]") +replace_all("f1wz", "(\\d{2})\\.(\\d{2})\\.(\\d{4})", "$3-$2-$1") +copy_field("f1wz", "periodOfActivity[].$append") # ------- # #1no (Wirkungsort (m, R))-> placeOfActivity @@ -180,6 +183,7 @@ retain( "professionOrOccupation[]", "rppdId", "type[]", - "variantName[]" + "variantName[]", + "periodOfActivity[]" ) \ No newline at end of file