diff --git a/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix b/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix index a4f4a5c29..60f47d0e1 100644 --- a/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix +++ b/src/main/resources/alma/fix/relatedRessourcesAndLinks.fix @@ -48,7 +48,7 @@ do list(path:"77008", "var":"$i") do list(path:"$i.i","var":"$j") copy_field("$j","supplement[].$last.note[].$append") end - copy_field("$i.t","supplement[].$last.label") + paste("supplement[].$last.label","$i.t","$i.b",join_char:". ") do list(path:"$i.w","var": "$j") if all_match("$j","^\\((?:DE-600|DE-605)\\)(.*)$") copy_field("$j","supplement[].$last.id") diff --git a/src/test/resources/alma-fix/990054089950206441.json b/src/test/resources/alma-fix/990054089950206441.json index 006010f51..8da32140e 100644 --- a/src/test/resources/alma-fix/990054089950206441.json +++ b/src/test/resources/alma-fix/990054089950206441.json @@ -126,19 +126,19 @@ "id" : "http://lobid.org/resources/ZDB-2840235-2#!" }, { "note" : [ "Supplement" ], - "label" : "Starkes Land", + "label" : "Starkes Land. Baden-Württemberg", "id" : "http://lobid.org/resources/ZDB-2907832-5#!" }, { "note" : [ "Supplement" ], - "label" : "Starkes Land", + "label" : "Starkes Land. Hessen", "id" : "http://lobid.org/resources/ZDB-2900172-9#!" }, { "note" : [ "Supplement" ], - "label" : "Starkes Land", + "label" : "Starkes Land. Österreich", "id" : "http://lobid.org/resources/ZDB-3049164-2#!" }, { "note" : [ "Supplement" ], - "label" : "Der Spiegel", + "label" : "Der Spiegel. Edition Geschichte", "id" : "http://lobid.org/resources/ZDB-2857424-2#!" }, { "note" : [ "Supplement" ],