Skip to content
Snippets Groups Projects
Commit 24524016 authored by Thomas Bock's avatar Thomas Bock :speech_balloon:
Browse files

enable file statement

parent 3196a53d
Branches
No related tags found
No related merge requests found
......@@ -3,39 +3,48 @@
{# TODO: weitere Einträge ergänzen #}
<dcc:statements>
{%- for i in x['statement'] %}
<dcc:statement>
{%- if i['convention'] is defined %}
<dcc:convention>{{i.convention}}</dcc:convention>
{% endif -%}
<dcc:statement>
{%- if i['convention'] is defined %}
<dcc:convention>{{i.convention}}</dcc:convention>
{% endif -%}
{% if i['traceable'] is defined %}
<dcc:traceable>{{i.traceable|lower}}</dcc:traceable>
{% endif -%}
{%- if i['norm'] is defined %}
<dcc:norm>{{i.norm}}</dcc:norm>
{% endif -%}
{%- if i['reference'] is defined %}
<dcc:reference>{{i.reference}}</dcc:reference>
{% endif -%}
{%- if i['declaration'] is defined %}
<dcc:traceable>{{i.traceable|lower}}</dcc:traceable>
{% endif -%}
{%- if i['norm'] is defined %}
<dcc:norm>{{i.norm}}</dcc:norm>
{% endif -%}
{%- if i['reference'] is defined %}
<dcc:reference>{{i.reference}}</dcc:reference>
{% endif -%}
{%- if i['declaration'] is defined %}
<dcc:declaration>
{%- for j in i['declaration'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{%- if j['content'] is defined %}
<dcc:content lang="{{j.lang}}">
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
</dcc:content>
{% endif -%}
{%- if j['file'] is defined %}
<dcc:file>
<dcc:fileName>{{j.file.fileName}}</dcc:fileName>
<dcc:mimeType>{{j.file.mimeType}}</dcc:mimeType>
<dcc:dataBase64>{{j.file.dataBase64}}</dcc:dataBase64>
</dcc:file>
{% endif -%}
{% endfor -%}
</dcc:declaration>
{% endif -%}
{% endif -%}
{% if i['valid'] is defined %}
<dcc:valid>{{i.valid|lower}}</dcc:valid>
<dcc:valid>{{i.valid|lower}}</dcc:valid>
{% endif -%}
{%- if i['date'] is defined %}
<dcc:date>{{i.date}}</dcc:date>
{% endif -%}
{%- if i['date'] is defined %}
<dcc:date>{{i.date}}</dcc:date>
{% endif -%}
{% if i['respAuthority'] is defined %}
<dcc:respAuthority>
{% set x1 = i['respAuthority'] %}
{%- if x1['name'] is defined %}
<dcc:name>
<dcc:name>
{%- for j in x1['name'] %}
<dcc:content lang="{{j.lang}}">
<![CDATA[{%- for k in j.content %}{{k|safe}}{% endfor -%}]]>
......@@ -61,7 +70,7 @@
<dcc:countryCode>{{x1.location.countryCode}}</dcc:countryCode>
{% endif -%}
</dcc:location>
</dcc:respAuthority>
</dcc:respAuthority>
{% endif -%}
</dcc:statement>
{% endfor -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment