Commit 11e2b253 authored by Röpert, Dominik's avatar Röpert, Dominik
Browse files

move iiif part to description section

parent 1c476c2a
......@@ -31,20 +31,8 @@
{% endfor %}
{% for item in iiif %}
<dwc:associatedMedia rdf:resource="{{ item[iiif_conf['image_url']] }}" />
{% endfor %}
</rdf:Description>
{% if specimen[sameas['rdf:about']] is not empty %}
<rdf:Description rdf:about="{{ specimen[sameas['rdf:about']]|replace({'https://':'http://'}) }}">
{% for element, column in sameas %}
{% if element is not same as('rdf:about') and specimen[column] is not empty %}
<owl:sameAs rdf:resource="{{ specimen[column] }}" />
{% endif %}
{% endfor %}
</rdf:Description>
{% endif %}
{% if iiif is not empty %}
{% if iiif is not empty %}
<!--This is a link to iiif data-->
<dc:relation>
<rdf:Description rdf:about="{{ base_url()|replace({'https://':'http://'}) ~ path_for('iiif', {barcode:barcode}) }}" >
......@@ -56,6 +44,17 @@
<dc:created>{{ specimen[iiif_conf['dc:created']] }}</dc:created>
</rdf:Description>
</dc:relation>
{% endif %}
</rdf:Description>
{% if specimen[sameas['rdf:about']] is not empty %}
<rdf:Description rdf:about="{{ specimen[sameas['rdf:about']]|replace({'https://':'http://'}) }}">
{% for element, column in sameas %}
{% if element is not same as('rdf:about') and specimen[column] is not empty %}
<owl:sameAs rdf:resource="{{ specimen[column] }}" />
{% endif %}
{% endfor %}
</rdf:Description>
{% endif %}
</rdf:RDF>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment