Browse Source

carousel and video path

master
jules 4 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) sparql.setReturnFormat(JSON)
artworkartefacts = sparql.query().convert() artworkartefacts = sparql.query().convert()
print(artworkartefacts) # print(artworkartefacts)
# Distributor Links # Distributor Links
@ -412,7 +412,7 @@ def artwork():
text="<p>Information not available</p>" text="<p>Information not available</p>"
x["text"] = text x["text"] = text
print(artworkdescriptiondata) # print(artworkdescriptiondata)
# exhibitions + id to be changed # exhibitions + id to be changed
sparql.setQuery(''' sparql.setQuery('''

18
templates/artwork.html

@ -43,28 +43,34 @@
<!-- ARTWORK IMAGES --> <!-- ARTWORK IMAGES -->
<!-- removed artwork-about-img + on img artwork-about-imgs --> <!-- removed artwork-about-img + on img artwork-about-imgs -->
<div class="my-slider"> <div class="my-slider">
{% if artworkimages['results']['bindings']==[] %} {% 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 %} {% else %}
{% for x in artworkimages['results']['bindings'] |reverse %}
{% for x in artworkimages['results']['bindings'] |reverse %}
<div class="item">
<!-- START GROUP IMG + LABELS --> <!-- START GROUP IMG + LABELS -->
{% if "image" in x %} {% 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 --> <!-- copyright and front or back -->
{% endif %} {% endif %}
{% if "depictsLabel" in x %} {% if "depictsLabel" in x %}
<span>{{ x['depictsLabel']['value'] }}</span> <p>{{ x['depictsLabel']['value'] }}</p>
{% endif %} {% endif %}
{% if "licenseLabel" in x %} {% if "licenseLabel" in x %}
<span>{{ x['licenseLabel']['value'] }}</span> <p>{{ x['licenseLabel']['value'] }}</p>
{% endif %} {% endif %}
<!-- END GROUP IMG + LABELS --> <!-- END GROUP IMG + LABELS -->
</div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>

2
templates/home.html

@ -32,7 +32,7 @@
</div> </div>
<div id="wrapper-vid"> <div id="wrapper-vid">
<video preload="meta" autoplay="" loop=""> <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> </video>
</div> </div>
</div> </div>

Loading…
Cancel
Save