Browse Source

post meeting corrections on artwork template

master
jules 4 years ago
parent
commit
56e03ce321
  1. 45
      templates/artwork.html

45
templates/artwork.html

@ -46,20 +46,32 @@
{% if artworkimages['results']['bindings']==[] %} {% if artworkimages['results']['bindings']==[] %}
<img class="item" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"> <img class="item" 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'] |reverse %}
<!-- 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 class="item" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
<!-- copyright and front or back -->
{% endif %} {% endif %}
{% if "depictsLabel" in x %}
<span>{{ x['depictsLabel']['value'] }}</span>
{% endif %}
{% if "licenseLabel" in x %}
<span>{{ x['licenseLabel']['value'] }}</span>
{% endif %}
<!-- END GROUP IMG + LABELS -->
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
<!-- other stuff like downloads, absent for now --> <!-- other stuff like downloads, absent for now -->
<div class="artwork-about-under-img"> <div class="artwork-about-under-img">
@ -184,7 +196,7 @@
<span>{{ x['creatorsLabel']['value'] }}</span> <span>{{ x['creatorsLabel']['value'] }}</span>
</a> </a>
<!-- role/function --> <!-- role/function -->
<p>{{ x['role']['value'] }}</p> <p>Role {{ x['role']['value'] }}</p>
</div> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
@ -251,10 +263,12 @@
<!-- if there is a description add description here --> <!-- if there is a description add description here -->
{% if artworkdescriptiondata['results']['bindings']==[] %} {% if artworkdescriptiondata['results']['bindings']==[] %}
{% else %} {% else %}
<p class="label-item">DESCRIPTION</p>
<!-- For loop --> <!-- For loop -->
{% for x in artworkdescriptiondata['results']['bindings'] %} {% for x in artworkdescriptiondata['results']['bindings'] %}
<div class="artwork-rightcolumn-bottom"> <div class="artwork-rightcolumn-bottom">
<p class="label-item">DESCRIPTION</p>
<!-- left part with the description text already coming in a div from wiki--> <!-- left part with the description text already coming in a div from wiki-->
<div class="text-description"> <div class="text-description">
{{ x["text"] | safe }} {{ x["text"] | safe }}
@ -263,20 +277,20 @@
<!-- right ride with author etc LATER--> <!-- right ride with author etc LATER-->
<div class="text-date-author"> <div class="text-date-author">
<p class="label-item">AUTHOR</p>
{% if "authordescriptionPageLabel" in x %} {% if "authordescriptionPageLabel" in x %}
<p class="label-item">AUTHOR</p>
<p>{{ x['authordescriptionPageLabel']['value'] }}</p> <p>{{ x['authordescriptionPageLabel']['value'] }}</p>
{% endif %} {% endif %}
<!-- if there is an author name then add here otherwise info non available --> <!-- if there is an author name then add here otherwise info non available -->
<p class="label-item">SOURCE</p>
{% if "sourcedescriptionPage" in x %} {% if "sourcedescriptionPage" in x %}
<p class="label-item">SOURCE</p>
<p>{{ x["sourcedescriptionPage"]["value"]}} </p> <p>{{ x["sourcedescriptionPage"]["value"]}} </p>
<!-- if there is a source name then add here otherwise info non available --> <!-- if there is a source name then add here otherwise info non available -->
{% endif %} {% endif %}
<p class="label-item">DATE</p>
{% if "datedescriptionPage" in x %} {% if "datedescriptionPage" in x %}
<p class="label-item">DATE</p>
<p>{{ x["datedescriptionPage"]["value"] | replace("T00:00:00Z", "") }}</p> <p>{{ x["datedescriptionPage"]["value"] | replace("T00:00:00Z", "") }}</p>
{% endif %} {% endif %}
<!-- if there is a date add here otherwise info non available--> <!-- if there is a date add here otherwise info non available-->
@ -293,37 +307,32 @@
{% if artworkexhibitiondata['results']['bindings']==[] %} {% if artworkexhibitiondata['results']['bindings']==[] %}
{% else %} {% else %}
<p class="label-item">EXHIBITION AND DISTRIBUTION HISTORY</p>
{% for x in artworkexhibitiondata['results']['bindings'] %} {% for x in artworkexhibitiondata['results']['bindings'] %}
<div class="artwork-rightcolumn-exhibition"> <div class="artwork-rightcolumn-exhibition">
<p class="label-item">EXHIBITION AND DISTRIBUTION HISTORY</p>
<div class="text-exhibition"> <div class="text-exhibition">
{{ x['text'] | safe }} {{ x['text'] | safe }}
</div> </div>
<!-- right ride with author etc LATER--> <!-- right ride with author etc LATER-->
<div class="text-date-author"> <div class="text-date-author">
<p class="label-item">AUTHOR</p>
<!-- if there is an author name then add here otherwise info non available --> <!-- if there is an author name then add here otherwise info non available -->
{% if "authorexhibitionHisPageLabel" in x %} {% if "authorexhibitionHisPageLabel" in x %}
<p class="label-item">AUTHOR</p>
<p>{{ x["authorexhibitionHisPageLabel"]["value"]}} </p> <p>{{ x["authorexhibitionHisPageLabel"]["value"]}} </p>
{% endif %} {% endif %}
{% if "authorexhibitionHisPageLabel" not in x %}
<p>information not available</p>
{% endif %}
<p class="label-item">SOURCE</p>
<!-- if there is a source name then add here otherwise info non available --> <!-- if there is a source name then add here otherwise info non available -->
{% if "sourceexhibitionHisPage" not in x %}
<p>information not available </p>
{% endif %}
{% if "sourceexhibitionHisPage" in x%} {% if "sourceexhibitionHisPage" in x%}
<p class="label-item">SOURCE</p>
<p>{{ x["sourceexhibitionHisPage"]["value"]}} </p> <p>{{ x["sourceexhibitionHisPage"]["value"]}} </p>
{% endif %} {% endif %}
<p class="label-item">DATE</p>
<!-- if there is a date add here otherwise info non available--> <!-- if there is a date add here otherwise info non available-->
{% if "dateexhibitionHisPage" in x%} {% if "dateexhibitionHisPage" in x%}
<p class="label-item">DATE</p>
<p>{{ x["dateexhibitionHisPage"]["value"] | replace("T00:00:00Z", "") }} </p> <p>{{ x["dateexhibitionHisPage"]["value"] | replace("T00:00:00Z", "") }} </p>
{% endif %} {% endif %}
</div> </div>

Loading…
Cancel
Save