Skip to content

Commit

Permalink
mapping improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrands02 committed Nov 29, 2024
1 parent 6737ab8 commit cd9d093
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}{{ ']' }}"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit cd9d093

Please sign in to comment.