Skip to content

Commit

Permalink
translatedTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed Oct 19, 2023
1 parent fe6b348 commit c734b3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 1 addition & 10 deletions src/main/resources/transformation/alma.fix
Original file line number Diff line number Diff line change
Expand Up @@ -996,16 +996,7 @@ uniq("Subject[]")
uniq("introx.subject[]")

# MARC/242
set_array("TranslatedTitle[]")
do list(path: "242??", "var": "$i")
add_field("TranslatedTitle[].$append.__dummy__", "")
call_macro("remove-nonsort", source: "$i.a")
copy_field("$i.a", "TranslatedTitle[].$last.title")
copy_field("$i.y", "TranslatedTitle[].$last.languageSource")
copy_field("$i.y", "@language")
lookup("@language", "ISO639-2-to-GND", delete: "true")
move_field("@language", "TranslatedTitle[].$last.language")
end
include("./marc/translatedTitle.fix")

# MARC/880
set_array("AlternateGraphicRepresentation[]")
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/transformation/marc/translatedTitle.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# MARC/242
set_array("TranslatedTitle[]")
do list(path: "242??", "var": "$i")
add_field("TranslatedTitle[].$append.__dummy__", "")
call_macro("remove-nonsort", source: "$i.a")
copy_field("$i.a", "TranslatedTitle[].$last.title")
copy_field("$i.y", "TranslatedTitle[].$last.languageSource")
copy_field("$i.y", "@language")
lookup("@language", "ISO639-2-to-GND", delete: "true")
move_field("@language", "TranslatedTitle[].$last.language")
end

0 comments on commit c734b3a

Please sign in to comment.