Skip to content

Commit

Permalink
Mapping improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrands02 committed Nov 29, 2024
1 parent 60868c1 commit 6676ceb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"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 %}{{ ']' }}",
"status": "{% if d['woo_x005f_publicatiedatum']|default %}Published{% else %}Concept{% endif %}"
"status": "{% if d['woo_x005f_publicatiedatum']|default %}Published{% else %}Concept{% endif %}",
"catalog": ""
},
"unset": [],
"cast": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"description": "zaaktypeomschrijving",
"published" : "{% if startdatum|default %}{{ startdatum|date('Y-m-d') }}{% endif %}",
"modified" : "{{ 'now'|date(H:i:sTm-d-Y') }}",
"status": "{% if startdatum|default %}Published{% else %}Concept{% endif %}"
"status": "{% if startdatum|default %}Published{% else %}Concept{% endif %}",
"catalog": ""
},
"unset": [],
"cast": {
Expand Down

0 comments on commit 6676ceb

Please sign in to comment.