From 55cb772e92a448317fe5ceea25c49a66e177aa63 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Wed, 22 Jan 2025 14:16:40 +0100 Subject: [PATCH] Update phone number mapping The default behaviour should clean any number that can be cleaned BUT let the other numbers flow without any modification. The previous behaviour I'm fixing here was to NOT let them flow if they were not in a "cleanable" format. --- .../mapping/queries/dl2op/data-cleanup/phone.rq | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/data-cleanup/phone.rq b/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/data-cleanup/phone.rq index 3ffc95a..7e761c1 100644 --- a/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/data-cleanup/phone.rq +++ b/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/data-cleanup/phone.rq @@ -17,7 +17,5 @@ CONSTRUCT { BIND(REPLACE(?extendedDefaultBe, """^320""", "+32") AS ?finalResult) - FILTER(REGEX(?finalResult, """^\\+((32\\d{8})|(324\\d{8})|((?!32)\\d+))$""")) - - BIND(CONCAT("tel:", ?finalResult) as ?cleanedPhoneNumber) + BIND(IF(REGEX(?finalResult, """^\\+((32\\d{8})|(324\\d{8})|((?!32)\\d+))$"""), CONCAT("tel:", ?finalResult), ?phoneNumber) AS ?cleanedPhoneNumber) }