Skip to content

Commit

Permalink
Add alternateGraphicRepresentation for beigefügtes Werk #1836
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jun 4, 2024
1 parent 3419dac commit 361e761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/resources/alma/fix/titleRelatedFields.fix
Original file line number Diff line number Diff line change
Expand Up @@ -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?$","")
Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/alma-fix/990202474680206441.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"label" : "Japanisch (Kanji, Hiragana und Katakana)"
},
"record" : {
"otherTitleInformation" : [ "思想問題と教育" ],
"title" : "小原国芳選集, 3: 全人教育論",
"edition" : [ "第4刷" ],
"contribution" : [ {
Expand All @@ -27,6 +28,7 @@
"label" : "Katakana"
},
"record" : {
"otherTitleInformation" : [ "シソウ モンダイ ト キョウイク" ],
"title" : "3: ゼンジン キョウイクロン"
}
} ],
Expand Down

0 comments on commit 361e761

Please sign in to comment.