From c734b3a6d44f99eefb1f6fa51b4b8429eed1cccd Mon Sep 17 00:00:00 2001 From: Jens Wille Date: Thu, 19 Oct 2023 18:25:55 +0200 Subject: [PATCH] translatedTitle --- src/main/resources/transformation/alma.fix | 11 +---------- .../resources/transformation/marc/translatedTitle.fix | 11 +++++++++++ 2 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 src/main/resources/transformation/marc/translatedTitle.fix diff --git a/src/main/resources/transformation/alma.fix b/src/main/resources/transformation/alma.fix index 0175be5c..5676a12d 100644 --- a/src/main/resources/transformation/alma.fix +++ b/src/main/resources/transformation/alma.fix @@ -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[]") diff --git a/src/main/resources/transformation/marc/translatedTitle.fix b/src/main/resources/transformation/marc/translatedTitle.fix new file mode 100644 index 00000000..a9ccd29c --- /dev/null +++ b/src/main/resources/transformation/marc/translatedTitle.fix @@ -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