From de22432f4b5b729665099757c463556b27408bee Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Fri, 21 Feb 2025 14:54:03 +0100 Subject: [PATCH] Avoid duplicate numbering in to-lobid transformation (RPB-256) --- conf/rpb-titel-to-lobid.fix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/rpb-titel-to-lobid.fix b/conf/rpb-titel-to-lobid.fix index 7888c22..a5e2228 100644 --- a/conf/rpb-titel-to-lobid.fix +++ b/conf/rpb-titel-to-lobid.fix @@ -85,7 +85,9 @@ if any_equal("type", "Band") copy_field("volumeIn.value", "isPartOf[].$last.hasSuperordinate[].$append.id") copy_field("superordinateLabel", "isPartOf[].$last.hasSuperordinate[].$last.label") if exists("tempNumbering") - paste("isPartOf[].$last.hasSuperordinate[].$last.label", "superordinateLabel", "~;", "tempNumbering") + unless all_match("superordinateLabel", ".+ ; .+") + paste("isPartOf[].$last.hasSuperordinate[].$last.label", "superordinateLabel", "~;", "tempNumbering") + end end copy_field("volumeIn.numbering", "isPartOf[].$last.numbering") # disable after Allegro import until here ^