Browse Source

carousel and video path

master
jules 3 years ago
parent
commit
655a2b110c
  1. 4
      daapinterface.py
  2. 18
      templates/artwork.html
  3. 2
      templates/home.html

4
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="<p>Information not available</p>"
x["text"] = text
print(artworkdescriptiondata)
# print(artworkdescriptiondata)
# exhibitions + id to be changed
sparql.setQuery('''

18
templates/artwork.html

@ -43,28 +43,34 @@
<!-- ARTWORK IMAGES -->
<!-- removed artwork-about-img + on img artwork-about-imgs -->
<div class="my-slider">
{% if artworkimages['results']['bindings']==[] %}
<img class="item" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}">
<img src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}">
{% else %}
{% for x in artworkimages['results']['bindings'] |reverse %}
<div class="item">
<!-- START GROUP IMG + LABELS -->
{% if "image" in x %}
<img class="item" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
<img src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
<!-- copyright and front or back -->
{% endif %}
{% if "depictsLabel" in x %}
<span>{{ x['depictsLabel']['value'] }}</span>
<p>{{ x['depictsLabel']['value'] }}</p>
{% endif %}
{% if "licenseLabel" in x %}
<span>{{ x['licenseLabel']['value'] }}</span>
<p>{{ x['licenseLabel']['value'] }}</p>
{% endif %}
<!-- END GROUP IMG + LABELS -->
</div>
{% endfor %}
{% endif %}
</div>

2
templates/home.html

@ -32,7 +32,7 @@
</div>
<div id="wrapper-vid">
<video preload="meta" autoplay="" loop="">
<source src="{{ url_for('static', filename='/vid/DAAP_video_update.mp4') }}" type="video/mp4">
<source src="{{ url_for('static', filename='/vid/DAAP_video_reduced.mp4') }}" type="video/mp4">
</video>
</div>
</div>

Loading…
Cancel
Save