From 33a107c254e8c3e412057cb785c514999196c5f4 Mon Sep 17 00:00:00 2001 From: Barry Brands Date: Thu, 28 Nov 2024 15:07:16 +0100 Subject: [PATCH 1/2] Fix category mapping --- .../sharepoint-woo-verzoek-to-publications.json | 12 ++++++------ .../mappings/xxllnc-suite-to-publications.json | 9 ++++++++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/configurations/sharepoint-woo/mappings/sharepoint-woo-verzoek-to-publications.json b/configurations/sharepoint-woo/mappings/sharepoint-woo-verzoek-to-publications.json index e74ad30..afbf58a 100644 --- a/configurations/sharepoint-woo/mappings/sharepoint-woo-verzoek-to-publications.json +++ b/configurations/sharepoint-woo/mappings/sharepoint-woo-verzoek-to-publications.json @@ -12,12 +12,12 @@ }, "unset": [], "cast": { - "title": "d.woo_x005f_titel", - "description": "d.woo_x005f_beschrijving", - "summary": "d.woo_x005f_samenvatting", - "category": "d.woo_x005f_categorie", - "published": "d.woo_x005f_publicatiedatum", - "modified": "d.vti_x005f_nexttolasttimemodified" + "title": "unsetIfValue==d.woo_x005f_titel", + "description": "unsetIfValue==d.woo_x005f_beschrijving", + "summary": "unsetIfValue==d.woo_x005f_samenvatting", + "category": "unsetIfValue==d.woo_x005f_categorie", + "published": "unsetIfValue==d.woo_x005f_publicatiedatum", + "modified": "unsetIfValue==d.vti_x005f_nexttolasttimemodified" }, "passThrough": false } \ No newline at end of file diff --git a/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json b/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json index c142820..bcfefe4 100644 --- a/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json +++ b/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json @@ -7,10 +7,17 @@ "title": "omschrijving", "summary": "zaaktypeomschrijving", "description": "zaaktypeomschrijving", + "category": "{% if zaaktypecode|default %}{% set wooVerzoekenEnBesluiten = ['LP00000431', 'B1873', 'cherry'] %}{% set klachtoordelen = ['LP00000091', 'LP00001132', 'LP00000121', 'B0757', 'LP00000832', 'LP00001096'] %}{% if zaaktypecode in wooVerzoekenEnBesluiten %}{{ 'Woo-verzoeken en -besluiten' }}{% elseif zaaktypecode in klachtoordelen %}{{ 'Klachtoordelen' }}{% endif %}", "published" : "startdatum", "modified" : "{{ 'now'|date(H:i:sTm-d-Y') }}" }, "unset": [], - "cast": [], + "cast": { + "title": "unsetIfValue==omschrijving", + "summary": "unsetIfValue==zaaktypeomschrijving", + "description": "unsetIfValue==zaaktypeomschrijving", + "category": "unsetIfValue==", + "published": "unsetIfValue==startdatum" + }, "passThrough": false } \ No newline at end of file From 4d06d18a7f6aab0a0be65a4ef440668022e089e2 Mon Sep 17 00:00:00 2001 From: Barry Brands Date: Thu, 28 Nov 2024 15:10:47 +0100 Subject: [PATCH 2/2] last mapping fix --- .../sharepoint-woo/mappings/xxllnc-suite-to-publications.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json b/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json index bcfefe4..9d83838 100644 --- a/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json +++ b/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json @@ -7,7 +7,7 @@ "title": "omschrijving", "summary": "zaaktypeomschrijving", "description": "zaaktypeomschrijving", - "category": "{% if zaaktypecode|default %}{% set wooVerzoekenEnBesluiten = ['LP00000431', 'B1873', 'cherry'] %}{% set klachtoordelen = ['LP00000091', 'LP00001132', 'LP00000121', 'B0757', 'LP00000832', 'LP00001096'] %}{% if zaaktypecode in wooVerzoekenEnBesluiten %}{{ 'Woo-verzoeken en -besluiten' }}{% elseif zaaktypecode in klachtoordelen %}{{ 'Klachtoordelen' }}{% endif %}", + "category": "{% if zaaktypecode|default %}{% set wooVerzoekenEnBesluiten = ['LP00000431', 'B1873', 'cherry'] %}{% set klachtoordelen = ['LP00000091', 'LP00001132', 'LP00000121', 'B0757', 'LP00000832', 'LP00001096'] %}{% if zaaktypecode in wooVerzoekenEnBesluiten %}{{ 'Woo-verzoeken en -besluiten' }}{% elseif zaaktypecode in klachtoordelen %}{{ 'Klachtoordelen' }}{% endif %}{% endif %}", "published" : "startdatum", "modified" : "{{ 'now'|date(H:i:sTm-d-Y') }}" },