From f53d2cbdf97d2659343b3d2cf1f4fddfc4cf1273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Fri, 23 Aug 2024 14:01:48 +0200 Subject: [PATCH] Add $f for GND subject work #2058 --- src/main/resources/alma/fix/macros.fix | 3 +++ src/test/resources/alma-fix/990172512030206441.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/resources/alma/fix/macros.fix b/src/main/resources/alma/fix/macros.fix index 719a72f68..04d86ab66 100644 --- a/src/main/resources/alma/fix/macros.fix +++ b/src/main/resources/alma/fix/macros.fix @@ -222,6 +222,9 @@ do put_macro("gndOtherCombinedLabel") if exists("$[field].c") paste("$[field].@combinedLabel", "$[field].@combinedLabel", "~, ", "$[field].c", join_char:"") end + if exists("$[field].f") + paste("$[field].@combinedLabel", "$[field].@combinedLabel", "~ (", "$[field].f", "~)", join_char:"") + end if exists("$[field].g") paste("$[field].@combinedLabel", "$[field].@combinedLabel", "~ (", "$[field].g", "~)", join_char:"") end diff --git a/src/test/resources/alma-fix/990172512030206441.json b/src/test/resources/alma-fix/990172512030206441.json index 4024d3266..b0724d13a 100644 --- a/src/test/resources/alma-fix/990172512030206441.json +++ b/src/test/resources/alma-fix/990172512030206441.json @@ -116,9 +116,9 @@ "agent" : { "gndIdentifier" : "4015727-1", "id" : "https://d-nb.info/gnd/4015727-1", - "label" : "Europäische Menschenrechtskonvention", + "label" : "Europäische Menschenrechtskonvention (1950 November 4)", "type" : [ "CorporateBody" ], - "altLabel" : [ "European Convention on Human Rights", "Convention for the Protection of Human Rights and Fundamental Freedoms", "Convention européenne des droits de l'homme", "Europäische Konvention zum Schutze der Menschenrechte und Grundfreiheiten", "Konvention zum Schutze der Menschenrechte und Grundfreiheiten", "Menschenrechtskonvention", "Convenzione per la salvaguardia dei Diritti dell'Uomo e delle Libertà fondamentali", "Convenio para la Protección de los Derechos Humanos y de las Libertades Fundamentales", "Verdrag tot Bescherming van de Rechten van de Mens en de Fundamentele Vrijheden", "Konventionen om skydd för de mänskliga rättigheterna och de grundläggande friheterna", "EMRK", "ECHR" ] + "altLabel" : [ "European Convention on Human Rights (1950 November 4)", "Convention for the Protection of Human Rights and Fundamental Freedoms (1950 November 4)", "Convention européenne des droits de l'homme (1950 November 4)", "Europäische Konvention zum Schutze der Menschenrechte und Grundfreiheiten (1950 November 4)", "Konvention zum Schutze der Menschenrechte und Grundfreiheiten (1950 November 4)", "Menschenrechtskonvention (1950 November 4)", "Convenzione per la salvaguardia dei Diritti dell'Uomo e delle Libertà fondamentali (1950 November 4)", "Convenio para la Protección de los Derechos Humanos y de las Libertades Fundamentales (1950 November 4)", "Verdrag tot Bescherming van de Rechten van de Mens en de Fundamentele Vrijheden (1950 November 4)", "Konventionen om skydd för de mänskliga rättigheterna och de grundläggande friheterna (1950 November 4)", "EMRK", "ECHR" ] }, "role" : { "id" : "http://id.loc.gov/vocabulary/relators/oth",