From 361e761822cafdf703dec84709e7308b61dc420f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Tue, 4 Jun 2024 11:08:09 +0200 Subject: [PATCH] =?UTF-8?q?Add=20alternateGraphicRepresentation=20for=20be?= =?UTF-8?q?igef=C3=BCgtes=20Werk=20#1836?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/alma/fix/titleRelatedFields.fix | 1 + src/test/resources/alma-fix/990202474680206441.json | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/resources/alma/fix/titleRelatedFields.fix b/src/main/resources/alma/fix/titleRelatedFields.fix index 1c0a1d59a..080b8c7c0 100644 --- a/src/main/resources/alma/fix/titleRelatedFields.fix +++ b/src/main/resources/alma/fix/titleRelatedFields.fix @@ -166,6 +166,7 @@ copy_field("245??.b","otherTitleInformation[].$append") # 249 beigefügtes Werk Subfield $a do list(path:"249 ","var":"$i") copy_field("$i.a","otherTitleInformation[].$append") + call_macro("alternateGraphicRepresationArrayOfStrings",targetArray:"otherTitleInformation[]",variable:"$i") end unless any_match("otherTitleInformation[].*",".*\\.\\.\\.") replace_all("otherTitleInformation[].*","\\s?[./]\\s?$","") diff --git a/src/test/resources/alma-fix/990202474680206441.json b/src/test/resources/alma-fix/990202474680206441.json index 920d4b09a..cbb7f5a9f 100644 --- a/src/test/resources/alma-fix/990202474680206441.json +++ b/src/test/resources/alma-fix/990202474680206441.json @@ -13,6 +13,7 @@ "label" : "Japanisch (Kanji, Hiragana und Katakana)" }, "record" : { + "otherTitleInformation" : [ "思想問題と教育" ], "title" : "小原国芳選集, 3: 全人教育論", "edition" : [ "第4刷" ], "contribution" : [ { @@ -27,6 +28,7 @@ "label" : "Katakana" }, "record" : { + "otherTitleInformation" : [ "シソウ モンダイ ト キョウイク" ], "title" : "3: ゼンジン キョウイクロン" } } ],