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 cd7743b..89c58ec 100644 --- a/configurations/sharepoint-woo/mappings/sharepoint-woo-verzoek-to-publications.json +++ b/configurations/sharepoint-woo/mappings/sharepoint-woo-verzoek-to-publications.json @@ -7,7 +7,7 @@ "description": "d.woo_x005f_beschrijving", "summary": "d.woo_x005f_samenvatting", "category": "d.woo_x005f_categorie", - "published": "d.woo_x005f_publicatiedatum", + "published": "{% if d['woo_x005f_publicatiedatum']|default %}{{ d['woo_x005f_publicatiedatum']|date('Y-m-d') }}{% endif %}", "modified": "d.vti_x005f_nexttolasttimemodified", "attachments": "{{ '[' }}{% if fileUrls['d']['results']|default %}{% set index = 0 %}{% for file in fileUrls['d']['results'] %}{% if index > 0 %}{{ ', ' }}{% endif %}{{ '{' }}{% set uri = file['__metadata']['uri']~'/$value' %}{{ '\"downloadUrl\": \"'~uri~'\",\"source\": \"1\"' }}{{ '}' }}{% endfor %}{% endif %}{{ ']' }}" }, diff --git a/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json b/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json index c142820..2a84a6c 100644 --- a/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json +++ b/configurations/sharepoint-woo/mappings/xxllnc-suite-to-publications.json @@ -7,10 +7,15 @@ "title": "omschrijving", "summary": "zaaktypeomschrijving", "description": "zaaktypeomschrijving", - "published" : "startdatum", + "published" : "{% if startdatum|default %}{{ startdatum|date('Y-m-d') }}{% endif %}", "modified" : "{{ 'now'|date(H:i:sTm-d-Y') }}" }, "unset": [], - "cast": [], + "cast": { + "title": "unsetIfValue===omschrijving", + "summary": "unsetIfValue===zaaktypeomschrijving", + "description": "unsetIfValue===zaaktypeomschrijving", + "published" : "unsetIfValue===" + }, "passThrough": false } \ No newline at end of file