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