Skip to content

Commit

Permalink
Move hbzId for Articles to containedIn RPB-232
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Feb 6, 2025
1 parent 4e6ab28 commit cad8e9f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions conf/rpb-titel-to-lobid.fix
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,17 @@ do list_as(citation: "bibliographicCitation[]")
move_field("fullLabel", "bibliographicCitation.$append")
end

# containedIn - For articles we should move hbzId of parent records to containedIn since they are not the article records hbzId except for edoweb and dilibri resources

if any_equal("type[]", "Article")
if exists("hbzId")
unless any_match("hbzId","CT.*") # exclude delibris and edoweb. See: https://jira.hbz-nrw.de/browse/RPB-232?focusedId=330532&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-330532
paste("containedIn[].$append.id","~https://lobid.org/resources/","hbzId","~#!", join_char:"")
remove_field("hbzId")
end
end
end

uniq("containedIn[]")
join_field("bibliographicCitation", "; ")

Expand Down

0 comments on commit cad8e9f

Please sign in to comment.