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)
contributorintro = sparql.query().convert()
print("person intro")
print(contributorintro)
print("==========")
# print("person intro")
# print(contributorintro)
# print("==========")
# image
sparql.setQuery('''
@ -580,8 +580,8 @@ def contributor():
''')
sparql.setReturnFormat(JSON)
contributorimage = sparql.query().convert()
print(contributorimage)
print("==========")
# print(contributorimage)
# print("==========")
# biography
@ -659,8 +659,8 @@ def contributor():
''')
sparql.setReturnFormat(JSON)
contributor_creatorof = sparql.query().convert()
print(contributor_creatorof)
print("==========")
# print(contributor_creatorof)
# print("==========")
# publisher of
sparql.setQuery('''
@ -697,8 +697,8 @@ def contributor():
''')
sparql.setReturnFormat(JSON)
contributor_publisherof = sparql.query().convert()
print(contributor_publisherof)
print("============")
# print(contributor_publisherof)
# print("============")

8
static/css/style.css

@ -432,10 +432,16 @@ div#footer{
#footer-credit, #footer-socials{
padding: 0px 56px 0px 0px;
}
div#footer-title-contact {
margin-bottom: 20px;
}
#footer-socials-links {
display: flex;
flex-direction: column;
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{
@ -2112,7 +2118,7 @@ div#tutorials-intro h3, div#tutorials-intro p {
}
#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-links {
display: flex;

4
templates/artistsindex.html

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

14
templates/artwork.html

@ -197,7 +197,7 @@
{% for x in artworkcontributors['results']['bindings'] %}
<!-- name surname -->
<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>
</a>
<!-- role/function -->
@ -243,7 +243,7 @@
<!-- name, surname -->
<div class="metadata-link artwork-rightcolumn-top-publishers-item">
{% 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 %}
<!-- role -->
{% if 'role' in x %}
@ -371,12 +371,12 @@
<!-- img -->
<div class="artwork-copiesincollection-img-div">
{% 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/") }}'>
<!-- </a> -->
<br>
{% 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') }}">
<!-- </a> -->
<br>
@ -401,12 +401,12 @@
<!-- image -->
<div class="artwork-relatedworks-img-div">
{% 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/") }}'>
</a>
<br>
{% 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') }}">
</a>
<br>
@ -414,7 +414,7 @@
</div>
<!-- title -->
<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>
<!-- year -->
<div class="artwork-relatedworks-date">

6
templates/browsethearchive.html

@ -10,18 +10,18 @@
<div class="browsethearchive-items">
<div class="browsethearchive-items-top">
{% 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/") }}'>
</a> <br>
{% 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>
</a>
{% endif %}
</div>
<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"]}}
</a> <br>
<span class="date">

12
templates/contributor.html

@ -134,12 +134,12 @@
<!-- image -->
<div class="artwork-relatedworks-img-div">
{% 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/") }}'>
</a>
<br>
{% 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') }}">
</a>
<br>
@ -147,7 +147,7 @@
</div>
<!-- title -->
<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>
<!-- year -->
<div class="artwork-relatedworks-date">
@ -170,12 +170,12 @@
<!-- image -->
<div class="artwork-relatedworks-img-div">
{% 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/") }}'>
</a>
<br>
{% 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') }}">
</a>
<br>
@ -183,7 +183,7 @@
</div>
<!-- title -->
<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>
<!-- year -->
<div class="artwork-relatedworks-date">

6
templates/home.html

@ -55,18 +55,18 @@
<div class="home-recent-items">
<div class="home-recent-items-top">
{% 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/") }}'>
</a> <br>
{% 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>
</a>
{% endif %}
</div>
<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"]}}
</a> <br>
<span class="date">

4
templates/publishersindex.html

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

Loading…
Cancel
Save