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 @@