Browse Source

artwork template divs are fixed and annotated

master
jules 4 years ago
parent
commit
cc1c8ed785
  1. 83
      templates/artwork.html

83
templates/artwork.html

@ -46,17 +46,19 @@
<img class="artwork-about-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"> <img class="artwork-about-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}">
{% else %} {% else %}
{% for x in artworkimages['results']['bindings'] %} {% for x in artworkimages['results']['bindings'] %}
{% if loop.index <= 1 %}
{% if "image" in x %} {% if "image" in x %}
<img class="artwork-about-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'> <img class="artwork-about-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
{% endif %} {% endif %}
{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
<!-- other stuff like downloads, absent for now -->
<!-- DOWNLOADS AND LINKS --> <!-- other stuff like downloads, absent for now -->
<div class="artwork-about-under-img">
<!-- DOWNLOADS AND LINKS -->
<div> <div>
{% if artworklinksanddownloads['results']['bindings']==[] %} {% if artworklinksanddownloads['results']['bindings']==[] %}
{% else %} {% else %}
@ -93,13 +95,13 @@
{% endif %} {% endif %}
</div> </div>
<!-- OTHER DIGITAL ARTEFACTS --> <!-- OTHER DIGITAL ARTEFACTS -->
<div> <div>
{% if artworkartefacts['results']['bindings']==[] %} {% if artworkartefacts['results']['bindings']==[] %}
<p>information not available</p> <p>information not available</p>
{% else %} {% else %}
<p class="label-item">OTHER DIGTAL ARTEFACTS</p> <p class="label-item">OTHER DIGTAL ARTEFACTS</p>
<!-- video images audio --> <!-- video images audio -->
{% for x in artworkartefacts['results']['bindings'] %} {% for x in artworkartefacts['results']['bindings'] %}
{% if ('VideoFile' not in x) and ('AudioFile' not in x) and ('ImageFile' not in x) %} {% if ('VideoFile' not in x) and ('AudioFile' not in x) and ('ImageFile' not in x) %}
@ -131,7 +133,7 @@
{% endif %} {% endif %}
</div> </div>
<!-- DISTRIBUTOR LINKS --> <!-- DISTRIBUTOR LINKS -->
<div> <div>
{% if artworkdistributorlinks['results']['bindings']==[] %} {% if artworkdistributorlinks['results']['bindings']==[] %}
{% else %} {% else %}
@ -149,19 +151,20 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</p>
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div>
</div>
<!-- end of other stuff like downloads, absent for now -->
<!-- RIGHT COLUMN --> <!-- RIGHT COLUMN -->
<div class="artwork-rightcolumn"> <div class="artwork-rightcolumn">
<!-- RIGHT TOP -->
<!-- contributors --> <!-- RIGHT TOP -->
<div class="artwork-rightcolumn-top">
<!-- contributors -->
<div class="artwork-rightcolumn-top-contributors"> <div class="artwork-rightcolumn-top-contributors">
<p class="label-item">CONTRIBUTORS</p> <p class="label-item">CONTRIBUTORS</p>
<!-- check if info not available --> <!-- check if info not available -->
@ -182,7 +185,7 @@
{% endif %} {% endif %}
</div> </div>
<!-- date --> <!-- date -->
<div class="artwork-rightcolumn-top-date"> <div class="artwork-rightcolumn-top-date">
<p class="label-item">DATE</p> <p class="label-item">DATE</p>
<!-- check if info not available --> <!-- check if info not available -->
@ -203,9 +206,11 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div>
<!-- end of date -->
<!-- publishers removed div .artwork-rightcolumn-top-publishers--> <!-- publishers-->
<div class="artwork-rightcolumn-top-publishers">
<p class="label-item">PUBLISHERS</p> <p class="label-item">PUBLISHERS</p>
<!-- loop through publishers --> <!-- loop through publishers -->
{% if artworkpublisher['results']['bindings']==[] %} {% if artworkpublisher['results']['bindings']==[] %}
@ -222,17 +227,21 @@
{% if 'role' in x %} {% if 'role' in x %}
<span>{{ x['role']['value'] }}</span> <span>{{ x['role']['value'] }}</span>
{% endif %} {% endif %}
<div> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
</div> <!-- end of publishers-->
</div>
</div>
<!-- end of about right top -->
<!-- start of about right column bottom -->
<div class="artwork-rightcolumn-bottom">
<div class="artwork-about-bottom"> <!-- description -->
<!-- description -->
<!-- if there is a description add description here --> <!-- if there is a description add description here -->
{% if artworkdescriptiondata['results']['bindings']==[] %} {% if artworkdescriptiondata['results']['bindings']==[] %}
@ -273,9 +282,9 @@
</div> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<!-- end description loop --> <!-- end description loop -->
<!-- exhibition and distribution history loop--> <!-- exhibition and distribution history loop-->
<!-- if exhibition in, then do show that --> <!-- if exhibition in, then do show that -->
{% if artworkexhibitiondata['results']['bindings']==[] %} {% if artworkexhibitiondata['results']['bindings']==[] %}
{% else %} {% else %}
@ -285,7 +294,7 @@
<p class="label-item">EXHIBITION AND DISTRIBUTION HISTORY</p> <p class="label-item">EXHIBITION AND DISTRIBUTION HISTORY</p>
<div> <div>
{{ artworkexhibitiontext | safe }} {{ x['text'] | safe }}
</div> </div>
<!-- right ride with author etc LATER--> <!-- right ride with author etc LATER-->
<div> <div>
@ -311,16 +320,26 @@
</div> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<!-- end exhibition loop --> <!-- end exhibition loop -->
<!-- end of right column --> <!-- end of right column -->
</div> </div>
<!-- end of about --> <!-- end of about -->
</div> </div>
<!-- lists DESIGN IF NO LISTS TO BE CLARIFIE-->
<div class="artwork-nav-label">LISTS</div>
</div>
<!-- END OF ABOUT -->
<!-- LISTS DESIGN IF NO LISTS TO BE CLARIFIED-->
<div class="artwork-lists"> <div class="artwork-lists">
<div class="artwork-nav-label">LISTS</div>
{% if artworklists['results']['bindings']==[] %} {% if artworklists['results']['bindings']==[] %}
<p>The artwork isn't featured in any lists yet</p> <p>The artwork isn't featured in any lists yet</p>
{% else %} {% else %}
@ -347,6 +366,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
<!-- END OF LISTS -->
<!-- copies in collections --> <!-- copies in collections -->
@ -377,6 +397,7 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
<!-- end copies in collections -->
<!-- Related works --> <!-- Related works -->
<div class="artwork-relatedwrapper"> <div class="artwork-relatedwrapper">
@ -411,7 +432,7 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
<!-- End related works -->
</div> </div>
{% endblock content %} {% endblock content %}
Loading…
Cancel
Save