{% extends "layout.html" %} {% block content %}
ARTWORK
{% for x in artworkintro['results']['bindings'] %} {{ x['workLabel']['value'] }} {% endfor %}
{% for x in artworkintro['results']['bindings'] %} {% if 'workDescription' in x %} {{ x['workDescription']['value'] }} {% endif %} {% endfor %}
ABOUT THIS WORK
{% if artworkimages['results']['bindings']==[] %} {% else %} {% for x in artworkimages['results']['bindings'] |reverse %} {% if "image" in x %} {% endif %} {% if "depictsLabel" in x %} {{ x['depictsLabel']['value'] }} {% endif %} {% if "licenseLabel" in x %} {{ x['licenseLabel']['value'] }} {% endif %} {% endfor %} {% endif %}
{% if artworklinksanddownloads['results']['bindings']==[] %} {% else %} {% for x in artworklinksanddownloads['results']['bindings'] %}

DOWNLOADS AND LINKS

{% if ('DownloadDigitalFacsimile' not in x) and ('DigitalFacsimileExternalLink' not in x) and ('DigitalFacsimileExternalLink2' not in x) %}

information not available

{% endif %} {% if 'DownloadDigitalFacsimile' in x %}
Download digital facsimile
{% endif %} {% if 'DigitalFacsimileExternalLink' in x %}
External digital facsimile link
{% endif %} {% if 'DigitalFacsimileExternalLink2' in x %}
External digital facsimile link 2
{% endif %} {% endfor %} {% endif %}
{% if artworkartefacts['results']['bindings']==[] %}

information not available

{% else %}

OTHER DIGTAL ARTEFACTS

{% for x in artworkartefacts['results']['bindings'] %} {% if ('VideoFile' not in x) and ('AudioFile' not in x) and ('ImageFile' not in x) %}

information not available

{% endif %} {% if 'VideoFile' in x %}
Video
{% endif %} {% if 'AudioFile' in x %}
Audio
{% endif %} {% if 'ImageFile' in x %}
Image
{% endif %} {% endfor %} {% endif %}
{% if artworkdistributorlinks['results']['bindings']==[] %} {% else %}

DISTRIBUTOR LINKS

{% for x in artworkdistributorlinks['results']['bindings'] %} {% if 'distributorLinks' not in x %}

information not available

{% endif %} {% if 'distributorLinks' in x %} {% endif %} {% endfor %} {% endif %}

CONTRIBUTORS

{% if artworkcontributors['results']['bindings']==[] %}
information not available
{% else %} {% for x in artworkcontributors['results']['bindings'] %} {% endfor %} {% endif %}

DATE

{% if artworkdate['results']['bindings']==[] %}
information not available
{% else %} {% for x in artworkdate['results']['bindings'] %} {% if 'date' in x %}
{{ x['date']['value'] | replace("T00:00:00Z", "") }}
{% endif %} {% if 'sourceLabel' in x %}
Source: {{ x['sourceLabel']['value'] }}
{% endif %} {% endfor %} {% endif %}

PUBLISHERS

{% if artworkpublisher['results']['bindings']==[] %} information not available {% else %} {% for x in artworkpublisher['results']['bindings'] %} {% endfor %} {% endif %}
{% if artworkdescriptiondata['results']['bindings']==[] %} {% else %}

DESCRIPTION

{% for x in artworkdescriptiondata['results']['bindings'] %}
{{ x["text"] | safe }}
{% if "authordescriptionPageLabel" in x %}

AUTHOR

{{ x['authordescriptionPageLabel']['value'] }}

{% endif %} {% if "sourcedescriptionPage" in x %}

SOURCE

{{ x["sourcedescriptionPage"]["value"]}}

{% endif %} {% if "datedescriptionPage" in x %}

DATE

{{ x["datedescriptionPage"]["value"] | replace("T00:00:00Z", "") }}

{% endif %}
{% endfor %} {% endif %} {% if artworkexhibitiondata['results']['bindings']==[] %} {% else %}

EXHIBITION AND DISTRIBUTION HISTORY

{% for x in artworkexhibitiondata['results']['bindings'] %}
{{ x['text'] | safe }}
{% if "authorexhibitionHisPageLabel" in x %}

AUTHOR

{{ x["authorexhibitionHisPageLabel"]["value"]}}

{% endif %} {% if "sourceexhibitionHisPage" in x%}

SOURCE

{{ x["sourceexhibitionHisPage"]["value"]}}

{% endif %} {% if "dateexhibitionHisPage" in x%}

DATE

{{ x["dateexhibitionHisPage"]["value"] | replace("T00:00:00Z", "") }}

{% endif %}
{% endfor %} {% endif %}
LISTS
{% if artworklists['results']['bindings']==[] %}

The artwork isn't featured in any lists yet

{% else %}

This artwork is featured in the following lists:

{% for x in artworklists['results']['bindings'] %}
{% if "image" in x %} {% else %} {% endif %}
{% if "listLabel" in x %} {{ x['listLabel']['value'] }} {% endif %}
placeholder for number of artworks in list
{% endfor %} {% endif %}
Copies in collections
{% for x in copiesincollection['results']['bindings'] %}
{% if "image" in x %}
{% else %}
{% endif %}
{{ x["collectionLabel"]["value"]}}
{% endfor %}
Related works
{% for x in relatedworks['results']['bindings'] %}
{% if "image" in x %}
{% else %}
{% endif %}
{{ x["relatedWorksLabel"]["value"]}}
{% if "daterelatedWorks" in x %} {{ x["daterelatedWorks"]["value"] | replace("T00:00:00Z", "") }} {% endif %}
{% endfor %}
{% endblock content %}