From 655a2b110cda8daf7074d9f1efc60fa662c21f45 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 26 Nov 2020 13:32:50 +0100 Subject: [PATCH] carousel and video path --- daapinterface.py | 4 ++-- templates/artwork.html | 18 ++++++++++++------ templates/home.html | 2 +- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/daapinterface.py b/daapinterface.py index 5c2a398..3757399 100644 --- a/daapinterface.py +++ b/daapinterface.py @@ -297,7 +297,7 @@ def artwork(): ''') sparql.setReturnFormat(JSON) artworkartefacts = sparql.query().convert() - print(artworkartefacts) + # print(artworkartefacts) # Distributor Links @@ -412,7 +412,7 @@ def artwork(): text="

Information not available

" x["text"] = text - print(artworkdescriptiondata) + # print(artworkdescriptiondata) # exhibitions + id to be changed sparql.setQuery(''' diff --git a/templates/artwork.html b/templates/artwork.html index 8e5f660..0a8fa4c 100644 --- a/templates/artwork.html +++ b/templates/artwork.html @@ -43,28 +43,34 @@
+ + {% if artworkimages['results']['bindings']==[] %} - + {% else %} + {% for x in artworkimages['results']['bindings'] |reverse %} - +
{% if "image" in x %} - + {% endif %} {% if "depictsLabel" in x %} - {{ x['depictsLabel']['value'] }} +

{{ x['depictsLabel']['value'] }}

{% endif %} {% if "licenseLabel" in x %} - {{ x['licenseLabel']['value'] }} +

{{ x['licenseLabel']['value'] }}

{% endif %} - +
{% endfor %} + {% endif %} + +
diff --git a/templates/home.html b/templates/home.html index 8b08108..4f83e4b 100644 --- a/templates/home.html +++ b/templates/home.html @@ -32,7 +32,7 @@