Skip to content

Commit

Permalink
Ensure alternativeTitle[] is actually an array (RPB-256)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Feb 25, 2025
1 parent 824d5d5 commit fd108fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,8 @@ copy_field("parallelTitle[].*.value", "otherTitleInformation[].$append")

# ------- "alternativeTitle" -------
move_field("alternativeTitle[]", "alternativeTitleObjects[]")
copy_field("alternativeTitleObjects[].*.value", "alternativeTitle[]")
unless exists("alternativeTitle[]")
set_array("alternativeTitle[]")
end
set_array("alternativeTitle[]")
copy_field("alternativeTitleObjects[].*.value", "alternativeTitle[].$append")
do list_as("inSeries": "inSeries[]")
if exists("inSeries.numbering")
paste("alternativeTitle[].$append", "inSeries.value", "~;", "inSeries.numbering")
Expand Down

0 comments on commit fd108fd

Please sign in to comment.