Skip to content

Commit

Permalink
Skip empty subjectComponents in index transformation (RPB-229)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Dec 30, 2024
1 parent 3849672 commit 380c8b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ do list (path:"@temp_subject", "var": "$i")
set_array("temp_subject.$append.type[]","ComplexSubject")
set_array("temp_subject.$last.label") # Muss Array sein, damit Labels in einem zweiten Schritt zusammengeführt werden können.
set_array("temp_subject.$last.componentList[]")
copy_field("$i.subjectComponent[]", "temp_subject.$last.componentList[]")
do list_as (component: "$i.subjectComponent[]")
if exists("component.value")
copy_field("component", "temp_subject.$last.componentList[].$append")
end
end
end

do
Expand Down

0 comments on commit 380c8b1

Please sign in to comment.