Skip to content

Commit

Permalink
Remove non-URI isPartOf IDs, add numbering (RPB-226)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Dec 18, 2024
1 parent bd91ce8 commit cc5db17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ if exists("isPartOf[]")
if exists("isPartOf[].1.label")
copy_field("isPartOf[].1.value", "temp.$last.hasSuperordinate[].$append.id")
copy_field("isPartOf[].1.label", "temp.$last.hasSuperordinate[].$last.label")
unless all_match("temp.$last.hasSuperordinate[].$last.id", "^http.+")
set_field("temp.$last.hasSuperordinate[].$last.id", "") # free text in Strapi
copy_field("isPartOf[].1.value", "temp.$last.hasSuperordinate[].$last.label")
end
copy_field("isPartOf[].1.numbering", "temp.$last.numbering")
else
split_field("isPartOf[].1.value", " ; ")
copy_field("isPartOf[].1.value.1", "temp.$last.hasSuperordinate[].$append.label")
Expand Down

0 comments on commit cc5db17

Please sign in to comment.