From 8a2651257d35f3fea39bcc42df22136919b9fe51 Mon Sep 17 00:00:00 2001 From: Barry Brands Date: Thu, 5 Dec 2024 09:11:07 +0100 Subject: [PATCH] Updated mapping --- .../sharepoint-woo-verzoek-to-publications.json | 13 ++++++++----- .../mappings/xxllnc-suite-to-publications.json | 11 +++++++---- 2 files changed, 15 insertions(+), 9 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 f97770a..a6cdbad 100644 --- a/configurations/sharepoint-woo/mappings/sharepoint-woo-verzoek-to-publications.json +++ b/configurations/sharepoint-woo/mappings/sharepoint-woo-verzoek-to-publications.json @@ -9,9 +9,10 @@ "category": "d.woo_x005f_categorie", "published": "{% if d['woo_x005f_publicatiedatum']|default %}{{ d['woo_x005f_publicatiedatum']|date('Y-m-d') }}{% endif %}", "modified": "d.vti_x005f_nexttolasttimemodified", - "attachments": "[ {% for file in fileUrls %} { {% if file['Name']|default %}\"title\": \"{{ file['Name'] }}\",{% endif %}{% if file['d']['document_x005f_label']|default %}\"labels\": [\"{{ file['d']['document_x005f_label'] }}\"],{% endif %}{% if file['__metadata']['uri']|default %}\"downloadUrl\": {\"downloadUrl\": \"{{ file['__metadata']['uri']~'/$value' }}\", \"source\": \"1\"}{% endif %} }{{ loop.last ? '' : ',' }} {% endfor %} ]", - "status": "{% if d['woo_x005f_publicatiedatum']|default %}Published{% else %}Concept{% endif %}", - "catalog": "" + "attachments": "[ {% for file in fileUrls %} { {% if file['Name']|default %}\"title\": \"{{ file['Name'] }}\",{% endif %}{% if file['d']['document_x005f_label']|default %}\"labels\": [\"{{ file['d']['document_x005f_label'] }}\"],{% endif %}{% if file['__metadata']['uri']|default %}\"downloadUrl\": {\"accessUrl\": \"{{ file['__metadata']['uri']~'/$value' }}\", \"source\": \"1\"}{% endif %} }{{ loop.last ? '' : ',' }} {% endfor %} ]", + "status": "Concept", + "catalog": "", + "publicationType": "" }, "unset": [], "cast": { @@ -19,9 +20,11 @@ "description": "unsetIfValue==d.woo_x005f_beschrijving", "summary": "unsetIfValue==d.woo_x005f_samenvatting", "category": "unsetIfValue==d.woo_x005f_categorie", - "published": "unsetIfValue==d.woo_x005f_publicatiedatum", + "published": "unsetIfValue==", "modified": "unsetIfValue==d.vti_x005f_nexttolasttimemodified", - "attachments": "jsonToArray" + "attachments": "jsonToArray", + "publicationType": "unsetIfValue==", + "catalog": "unsetIfValue==" }, "passThrough": false } diff --git a/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json b/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json index 54ef536..7a2ea21 100644 --- a/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json +++ b/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json @@ -7,17 +7,20 @@ "title": "omschrijving", "summary": "zaaktypeomschrijving", "description": "zaaktypeomschrijving", - "published" : "{% if startdatum|default %}{{ startdatum|date('Y-m-d') }}{% endif %}", + "published" : "", "modified" : "{{ 'now'|date(H:i:sTm-d-Y') }}", - "status": "{% if startdatum|default %}Published{% else %}Concept{% endif %}", - "catalog": "" + "status": "Concept", + "catalog": "", + "publicationType": "" }, "unset": [], "cast": { "title": "unsetIfValue==omschrijving", "summary": "unsetIfValue==zaaktypeomschrijving", "description": "unsetIfValue==zaaktypeomschrijving", - "published" : "unsetIfValue==" + "published" : "unsetIfValue==", + "catalog": "unsetIfValue==", + "publicationType": "unsetIfValue==" }, "passThrough": false } \ No newline at end of file