Browse Source

last css Lozana + beginning contributor template

master
jules 4 years ago
parent
commit
cbd6c9b92a
  1. 18
      daapinterface.py
  2. 8
      static/css/style.css
  3. 4
      templates/artistsindex.html
  4. 14
      templates/artwork.html
  5. 6
      templates/browsethearchive.html
  6. 12
      templates/contributor.html
  7. 6
      templates/home.html
  8. 4
      templates/publishersindex.html

18
daapinterface.py

@ -560,9 +560,9 @@ def contributor():
''') ''')
sparql.setReturnFormat(JSON) sparql.setReturnFormat(JSON)
contributorintro = sparql.query().convert() contributorintro = sparql.query().convert()
print("person intro") # print("person intro")
print(contributorintro) # print(contributorintro)
print("==========") # print("==========")
# image # image
sparql.setQuery(''' sparql.setQuery('''
@ -580,8 +580,8 @@ def contributor():
''') ''')
sparql.setReturnFormat(JSON) sparql.setReturnFormat(JSON)
contributorimage = sparql.query().convert() contributorimage = sparql.query().convert()
print(contributorimage) # print(contributorimage)
print("==========") # print("==========")
# biography # biography
@ -659,8 +659,8 @@ def contributor():
''') ''')
sparql.setReturnFormat(JSON) sparql.setReturnFormat(JSON)
contributor_creatorof = sparql.query().convert() contributor_creatorof = sparql.query().convert()
print(contributor_creatorof) # print(contributor_creatorof)
print("==========") # print("==========")
# publisher of # publisher of
sparql.setQuery(''' sparql.setQuery('''
@ -697,8 +697,8 @@ def contributor():
''') ''')
sparql.setReturnFormat(JSON) sparql.setReturnFormat(JSON)
contributor_publisherof = sparql.query().convert() contributor_publisherof = sparql.query().convert()
print(contributor_publisherof) # print(contributor_publisherof)
print("============") # print("============")

8
static/css/style.css

@ -432,10 +432,16 @@ div#footer{
#footer-credit, #footer-socials{ #footer-credit, #footer-socials{
padding: 0px 56px 0px 0px; padding: 0px 56px 0px 0px;
} }
div#footer-title-contact {
margin-bottom: 20px;
}
#footer-socials-links { #footer-socials-links {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-wrap: nowrap; flex-wrap: nowrap;
margin-top: 10px;
} }
div#footer-title-br p, div#footer-title-others p, div#footer-title-contact p, div#footer-title-socials p{ div#footer-title-br p, div#footer-title-others p, div#footer-title-contact p, div#footer-title-socials p{
@ -2112,7 +2118,7 @@ div#tutorials-intro h3, div#tutorials-intro p {
} }
#footer-title-others {text-align: right;} #footer-title-others {text-align: right;}
#footer-title-contact {text-align: left; margin-bottom: 20px;} #footer-title-contact {text-align: left;}
#footer-socials {width: 100%; } #footer-socials {width: 100%; }
#footer-socials-links { #footer-socials-links {
display: flex; display: flex;

4
templates/artistsindex.html

@ -15,8 +15,8 @@
<tbody> <tbody>
{% for x in results['results']['bindings']%} {% for x in results['results']['bindings']%}
<tr> <tr>
<th class="idnumber"><a href="person?id={{ x['creators']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x['creators']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}</a></th> <th class="idnumber"><a href="contributor?id={{ x['creators']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x['creators']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}</a></th>
<th class="label"><a href="person?id={{ x['creators']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x["creatorsLabel"]['value'] }}</a></th> <th class="label"><a href="contributor?id={{ x['creators']['value'] | replace('https://daap.bannerrepeater.org/entity/', '') }}">{{ x["creatorsLabel"]['value'] }}</a></th>
<th class="altaliases"> <th class="altaliases">
{% if "creatorsAltLabel" in x %} {% if "creatorsAltLabel" in x %}
{{ x["creatorsAltLabel"]["value"] }} {{ x["creatorsAltLabel"]["value"] }}

14
templates/artwork.html

@ -197,7 +197,7 @@
{% for x in artworkcontributors['results']['bindings'] %} {% for x in artworkcontributors['results']['bindings'] %}
<!-- name surname --> <!-- name surname -->
<div class="metadata-link"> <div class="metadata-link">
<a href='/contributor?id={{ x["creators"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/contributor?id={{ x["creators"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<span>{{ x['creatorsLabel']['value'] }}</span> <span>{{ x['creatorsLabel']['value'] }}</span>
</a> </a>
<!-- role/function --> <!-- role/function -->
@ -243,7 +243,7 @@
<!-- name, surname --> <!-- name, surname -->
<div class="metadata-link artwork-rightcolumn-top-publishers-item"> <div class="metadata-link artwork-rightcolumn-top-publishers-item">
{% if 'publishersLabel' in x %} {% if 'publishersLabel' in x %}
<a href='/contributor?id={{ x["publishers"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'><span>{{ x['publishersLabel']['value'] }}</span></a> <a href='/contributor?id={{ x["publishers"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'><span>{{ x['publishersLabel']['value'] }}</span></a>
{% endif %} {% endif %}
<!-- role --> <!-- role -->
{% if 'role' in x %} {% if 'role' in x %}
@ -371,12 +371,12 @@
<!-- img --> <!-- img -->
<div class="artwork-copiesincollection-img-div"> <div class="artwork-copiesincollection-img-div">
{% if "image" in x %} {% if "image" in x %}
<!-- <a href='/artwork?id={{ x["copiesCollections"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> --> <!-- <a href='/artwork?id={{ x["copiesCollections"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'> -->
<img class="artwork-copiesincollection-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'> <img class="artwork-copiesincollection-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
<!-- </a> --> <!-- </a> -->
<br> <br>
{% else %} {% else %}
<!-- <a href='/artwork?id={{ x["copiesCollections"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> --> <!-- <a href='/artwork?id={{ x["copiesCollections"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'> -->
<img class="artwork-copiesincollection-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"> <img class="artwork-copiesincollection-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}">
<!-- </a> --> <!-- </a> -->
<br> <br>
@ -401,12 +401,12 @@
<!-- image --> <!-- image -->
<div class="artwork-relatedworks-img-div"> <div class="artwork-relatedworks-img-div">
{% if "image" in x %} {% if "image" in x %}
<a href='/artwork?id={{ x["relatedWorks"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/artwork?id={{ x["relatedWorks"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<img class="artwork-relatedworks-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'> <img class="artwork-relatedworks-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
</a> </a>
<br> <br>
{% else %} {% else %}
<a href='/artwork?id={{ x["relatedWorks"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/artwork?id={{ x["relatedWorks"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<img class="artwork-relatedworks-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"> <img class="artwork-relatedworks-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}">
</a> </a>
<br> <br>
@ -414,7 +414,7 @@
</div> </div>
<!-- title --> <!-- title -->
<div class="artwork-relatedworks-tile"> <div class="artwork-relatedworks-tile">
<a href='/artwork?id={{ x["relatedWorks"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'>{{ x["relatedWorksLabel"]["value"]}}</a> <a href='/artwork?id={{ x["relatedWorks"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>{{ x["relatedWorksLabel"]["value"]}}</a>
</div> </div>
<!-- year --> <!-- year -->
<div class="artwork-relatedworks-date"> <div class="artwork-relatedworks-date">

6
templates/browsethearchive.html

@ -10,18 +10,18 @@
<div class="browsethearchive-items"> <div class="browsethearchive-items">
<div class="browsethearchive-items-top"> <div class="browsethearchive-items-top">
{% if "image" in x %} {% if "image" in x %}
<a href='/artwork?id={{ x["work"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/artwork?id={{ x["work"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<img class="browsethearchive-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'> <img class="browsethearchive-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
</a> <br> </a> <br>
{% else %} {% else %}
<a href='/artwork?id={{ x["work"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/artwork?id={{ x["work"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<img class="browsethearchive-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"><br> <img class="browsethearchive-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"><br>
</a> </a>
{% endif %} {% endif %}
</div> </div>
<div class="browsethearchive-items-bottom"> <div class="browsethearchive-items-bottom">
<a class="title" href='/artwork?id={{ x["work"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a class="title" href='/artwork?id={{ x["work"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
{{ x["workLabel"]["value"]}} {{ x["workLabel"]["value"]}}
</a> <br> </a> <br>
<span class="date"> <span class="date">

12
templates/contributor.html

@ -134,12 +134,12 @@
<!-- image --> <!-- image -->
<div class="artwork-relatedworks-img-div"> <div class="artwork-relatedworks-img-div">
{% if "image" in x %} {% if "image" in x %}
<a href='/artwork?id={{ x["Works"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/artwork?id={{ x["Works"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<img class="artwork-relatedworks-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'> <img class="artwork-relatedworks-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
</a> </a>
<br> <br>
{% else %} {% else %}
<a href='/artwork?id={{ x["Works"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/artwork?id={{ x["Works"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<img class="artwork-relatedworks-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"> <img class="artwork-relatedworks-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}">
</a> </a>
<br> <br>
@ -147,7 +147,7 @@
</div> </div>
<!-- title --> <!-- title -->
<div class="artwork-relatedworks-tile"> <div class="artwork-relatedworks-tile">
<a href='/artwork?id={{ x["Works"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'>{{ x["WorksLabel"]["value"]}}</a> <a href='/artwork?id={{ x["Works"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>{{ x["WorksLabel"]["value"]}}</a>
</div> </div>
<!-- year --> <!-- year -->
<div class="artwork-relatedworks-date"> <div class="artwork-relatedworks-date">
@ -170,12 +170,12 @@
<!-- image --> <!-- image -->
<div class="artwork-relatedworks-img-div"> <div class="artwork-relatedworks-img-div">
{% if "image" in x %} {% if "image" in x %}
<a href='/artwork?id={{ x["Works"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/artwork?id={{ x["Works"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<img class="artwork-relatedworks-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'> <img class="artwork-relatedworks-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
</a> </a>
<br> <br>
{% else %} {% else %}
<a href='/artwork?id={{ x["Works"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/artwork?id={{ x["Works"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<img class="artwork-relatedworks-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"> <img class="artwork-relatedworks-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}">
</a> </a>
<br> <br>
@ -183,7 +183,7 @@
</div> </div>
<!-- title --> <!-- title -->
<div class="artwork-relatedworks-tile"> <div class="artwork-relatedworks-tile">
<a href='/artwork?id={{ x["Works"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'>{{ x["WorksLabel"]["value"]}}</a> <a href='/artwork?id={{ x["Works"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>{{ x["WorksLabel"]["value"]}}</a>
</div> </div>
<!-- year --> <!-- year -->
<div class="artwork-relatedworks-date"> <div class="artwork-relatedworks-date">

6
templates/home.html

@ -55,18 +55,18 @@
<div class="home-recent-items"> <div class="home-recent-items">
<div class="home-recent-items-top"> <div class="home-recent-items-top">
{% if "image" in x %} {% if "image" in x %}
<a href='/artwork?id={{ x["work"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/artwork?id={{ x["work"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<img class="home-recent-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'> <img class="home-recent-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
</a> <br> </a> <br>
{% else %} {% else %}
<a href='/artwork?id={{ x["work"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a href='/artwork?id={{ x["work"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
<img class="home-recent-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"><br> <img class="home-recent-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"><br>
</a> </a>
{% endif %} {% endif %}
</div> </div>
<div class="home-recent-items-bottom"> <div class="home-recent-items-bottom">
<a class="title" href='/artwork?id={{ x["work"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'> <a class="title" href='/artwork?id={{ x["work"]["value"] | replace("https://daap.bannerrepeater.org/entity/", "") }}'>
{{ x["workLabel"]["value"]}} {{ x["workLabel"]["value"]}}
</a> <br> </a> <br>
<span class="date"> <span class="date">

4
templates/publishersindex.html

@ -15,8 +15,8 @@
<tbody> <tbody>
{% for x in results['results']['bindings']%} {% for x in results['results']['bindings']%}
<tr> <tr>
<th class="idnumber"><a href="organisation?id={{ x['publishers']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x['publishers']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}</a></th> <th class="idnumber"><a href="contributor?id={{ x['publishers']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x['publishers']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}</a></th>
<th class="label"><a href="organisation?id={{ x['publishers']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x["publishersLabel"]['value'] }}</a></th> <th class="label"><a href="contributor?id={{ x['publishers']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x["publishersLabel"]['value'] }}</a></th>
<th class="altaliases"> <th class="altaliases">
{% if "publishersAltLabel" in x %} {% if "publishersAltLabel" in x %}
{{ x["publishersAltLabel"]["value"] }} {{ x["publishersAltLabel"]["value"] }}

Loading…
Cancel
Save