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