From cc1c8ed7854603fc1d3ed35497b1827f2ac35101 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 19 Nov 2020 17:11:28 +0100 Subject: [PATCH] artwork template divs are fixed and annotated --- templates/artwork.html | 83 ++++++++++++++++++++++++++---------------- 1 file changed, 52 insertions(+), 31 deletions(-) diff --git a/templates/artwork.html b/templates/artwork.html index a7d0eef..67d7348 100644 --- a/templates/artwork.html +++ b/templates/artwork.html @@ -46,17 +46,19 @@ {% else %} {% for x in artworkimages['results']['bindings'] %} - {% if loop.index <= 1 %} + {% if "image" in x %} {% endif %} - {% endif %} + {% endfor %} {% endif %} - - + +
+ +
{% if artworklinksanddownloads['results']['bindings']==[] %} {% else %} @@ -93,13 +95,13 @@ {% 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) %} @@ -131,7 +133,7 @@ {% endif %}
- +
{% if artworkdistributorlinks['results']['bindings']==[] %} {% else %} @@ -149,19 +151,20 @@ {% endif %} {% endfor %} -

{% endif %}
-
- - + + + + - -
- + +
- + +
+

CONTRIBUTORS

@@ -182,7 +185,7 @@ {% endif %}
- +

DATE

@@ -203,9 +206,11 @@ {% endif %} {% endfor %} {% endif %} +
+ - - + +

PUBLISHERS

{% if artworkpublisher['results']['bindings']==[] %} @@ -222,17 +227,21 @@ {% if 'role' in x %} {{ x['role']['value'] }} {% endif %} -
+
{% endfor %} {% endif %} +
-
-
+ + +
+ + +
-
- + {% if artworkdescriptiondata['results']['bindings']==[] %} @@ -273,9 +282,9 @@
{% endfor %} {% endif %} - + - + {% if artworkexhibitiondata['results']['bindings']==[] %} {% else %} @@ -285,7 +294,7 @@

EXHIBITION AND DISTRIBUTION HISTORY

- {{ artworkexhibitiontext | safe }} + {{ x['text'] | safe }}
@@ -311,16 +320,26 @@
{% endfor %} {% endif %} - + - +
+ - -
LISTS
+ + + + + + + + +
+
LISTS
+ {% if artworklists['results']['bindings']==[] %}

The artwork isn't featured in any lists yet

{% else %} @@ -347,6 +366,7 @@ {% endfor %} {% endif %}
+ @@ -377,6 +397,7 @@ {% endfor %} +
@@ -411,7 +432,7 @@
{% endfor %} + - {% endblock content %} \ No newline at end of file