diff --git a/templates/artwork.html b/templates/artwork.html index 085a0a9..8e5f660 100644 --- a/templates/artwork.html +++ b/templates/artwork.html @@ -46,20 +46,32 @@ {% if artworkimages['results']['bindings']==[] %} {% else %} - {% for x in artworkimages['results']['bindings'] %} + {% 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 %} + {% endif %} +
@@ -184,7 +196,7 @@ {{ x['creatorsLabel']['value'] }} -

{{ x['role']['value'] }}

+

Role {{ x['role']['value'] }}

{% endfor %} {% endif %} @@ -251,10 +263,12 @@ {% if artworkdescriptiondata['results']['bindings']==[] %} {% else %} + +

DESCRIPTION

+ {% for x in artworkdescriptiondata['results']['bindings'] %}
-

DESCRIPTION

{{ x["text"] | safe }} @@ -263,20 +277,20 @@
-

AUTHOR

{% if "authordescriptionPageLabel" in x %} +

AUTHOR

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

{% endif %} -

SOURCE

{% if "sourcedescriptionPage" in x %} +

SOURCE

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

{% endif %} -

DATE

{% if "datedescriptionPage" in x %} +

DATE

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

{% endif %} @@ -293,37 +307,32 @@ {% if artworkexhibitiondata['results']['bindings']==[] %} {% else %} +

EXHIBITION AND DISTRIBUTION HISTORY

+ {% for x in artworkexhibitiondata['results']['bindings'] %}
-

EXHIBITION AND DISTRIBUTION HISTORY

{{ x['text'] | safe }}
-

AUTHOR

+ {% if "authorexhibitionHisPageLabel" in x %} +

AUTHOR

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

{% endif %} - {% if "authorexhibitionHisPageLabel" not in x %} -

information not available

- {% endif %} - -

SOURCE

- {% if "sourceexhibitionHisPage" not in x %} -

information not available

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

SOURCE

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

{% endif %} -

DATE

{% if "dateexhibitionHisPage" in x%} +

DATE

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

{% endif %}