Skip to content

Commit

Permalink
Add type Article if no type is set in Strapi data (RPB-202)
Browse files Browse the repository at this point in the history
Article is a separate content type in Strapi, has no own type field
  • Loading branch information
fsteeg committed Nov 11, 2024
1 parent da7b017 commit 9ea23ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ copy_field("rpbId", "_id")
# ------- Set "type" -------

set_array("type[]", "BibliographicResource")
unless exists("type")
set_field("type[].$append", "Article")
end
if all_equal("type", "u")
set_field("type[].$append", "Article")
end
Expand Down

0 comments on commit 9ea23ad

Please sign in to comment.