Skip to content

Commit

Permalink
Add periodOfActivity (RPB-102)
Browse files Browse the repository at this point in the history
  • Loading branch information
maipet committed Oct 31, 2023
1 parent 9d0ecd1 commit 40a057f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions conf/output/test-output-rppd-lobid-45.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 6 additions & 2 deletions conf/rppd-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -180,6 +183,7 @@ retain(
"professionOrOccupation[]",
"rppdId",
"type[]",
"variantName[]"
"variantName[]",
"periodOfActivity[]"
)

0 comments on commit 40a057f

Please sign in to comment.