daap with browse archive and categories and subcategories and also homepage
This commit is contained in:
parent
036995b02d
commit
965d22d0e4
@ -70,7 +70,7 @@ ORDER BY (?workLabel)
|
||||
publication_date = publication["date"]["value"]
|
||||
if "image" in publication:
|
||||
publication_image = publication["image"]["value"]
|
||||
return render_template('browsethearchive.html', results=results)
|
||||
return render_template('home.html', results=results)
|
||||
|
||||
|
||||
@app.route("/browsethearchive")
|
||||
@ -133,6 +133,7 @@ def artistsindex():
|
||||
''')
|
||||
sparql.setReturnFormat(JSON)
|
||||
results = sparql.query().convert()
|
||||
print(results)
|
||||
return render_template('artistsindex.html', results=results)
|
||||
|
||||
######################### PUBLISHERS INDEX
|
||||
|
78
templates/--layout.html
Normal file
78
templates/--layout.html
Normal file
@ -0,0 +1,78 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>D.A.A.P</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='/css/style.css') }}">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
|
||||
<div id="header-top">
|
||||
<div id="animatedlogo">
|
||||
<img src="{{ url_for('static', filename='/imgs/Logos/DAAP BR square logo -Animated Image (Small).gif') }}">
|
||||
</div>
|
||||
<div id="header-title">
|
||||
<a href="{{ url_for('home') }}">DIGITAL ARCHIVE OF ARTISTS' PUBLISHING</a>
|
||||
</div>
|
||||
<div id="header-keyword-search">
|
||||
<span>WEBSITE IN DEVELOPMENT</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="navigation">
|
||||
<div id="nav-about"><a href="{{ url_for('about') }}">About</a></div>
|
||||
<div id="nav-browse-archive"><a href="{{ url_for('browsethearchive') }}">Browse the archive</a></div>
|
||||
<div id="nav-browse-category">Browse by category</div>
|
||||
<div id="nav-search"><a target="_blank" href="http://query.daap.bannerrepeater.org">Search tools</a></div>
|
||||
<div id="nav-tutorials">Tutorials</div>
|
||||
<div id="nav-upload">Upload</div>
|
||||
<div id="nav-login"><a target="_blank" href="https://daap.bannerrepeater.org/w/index.php">Log in</a></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
|
||||
<div id="footer">
|
||||
|
||||
<!-- <div id="footer-br"> -->
|
||||
<div id="footer-title-br"><p>A project by:</p></div>
|
||||
<div id="footer-img-br"><a target="_blank" href="https://www.bannerrepeater.org/"><img src="{{ url_for('static', filename='/imgs/Logos/Banner-Repeater-Logo.png') }}"></a></div>
|
||||
<!-- </div> -->
|
||||
<!-- <div id="footer-others"> -->
|
||||
<div id="footer-title-others"><p>With support from:</p></div>
|
||||
<div id="footer-img-others">
|
||||
<div id="footer-img-wiki"><a href="_blank" target="https://wikimedia.org.uk/"><img src="{{ url_for('static', filename='/imgs/Logos/wikimedia_logo.png') }}"></a></div>
|
||||
<div id="footer-img-lottery"><a href="https://www.artscouncil.org.uk/" target=""><img src="{{ url_for('static', filename='/imgs/Logos/Lottery-white on black.png') }}"></a></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="footer-title-socials"><p>SOCIAL</p></div>
|
||||
<div id="footer-socials-links">
|
||||
<p><a target="_blank" href="https://www.facebook.com/BannerRepeater">Facebook</a></p>
|
||||
<p><a target="_blank" href="https://twitter.com/BANNERREPEATER">Twitter</a></p>
|
||||
<p><a target="_blank" href="https://www.instagram.com/bannerrepeater/">Instagram</a></p>
|
||||
<p><a target="_blank" href="mailto:daap.community@disroot.org">Email address</a></p>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="footer-title-contact"><p>EXPRESSION OF INTEREST</p></div>
|
||||
<div id="footer-contact"><a target="_blank" href="https://forms.gle/4EFpkQ9AKzZpdUmF6"><div class="bluebutton" id="contactform">FILL UP CONTACT FORM<span></span></div></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -15,8 +15,8 @@
|
||||
<tbody>
|
||||
{% for x in results['results']['bindings']%}
|
||||
<tr>
|
||||
<th><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><a href="person?id={{ x['creators']['value'] | replace('http://wikibase.svc/entity/', '') }}">{{ x['creators']['value'] | replace('http://wikibase.svc/entity/', '') }}</a></th>
|
||||
<th class="label"><a href="person?id={{ x['creators']['value'] | replace('http://wikibase.svc/entity/', '') }}">{{ x["creatorsLabel"]['value'] }}</a></th>
|
||||
<th>
|
||||
{% if "creatorsAltLabel" in x %}
|
||||
{{ x["creatorsAltLabel"]["value"] }}
|
||||
|
@ -9,15 +9,15 @@
|
||||
{% for x in results['results']['bindings']%}
|
||||
<div class="browsethearchive-items">
|
||||
{% 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("http://wikibase.svc/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("http://wikibase.svc/entity/", "") }}'>
|
||||
<img class="browsethearchive-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"><br>
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href='/artwork?id={{ x["work"]["value"] | replace("http://daap.bannerrepeater.org/entity/", "") }}'>
|
||||
<a href='/artwork?id={{ x["work"]["value"] | replace("http://wikibase.svc/entity/", "") }}'>
|
||||
{{ x["workLabel"]["value"]}}
|
||||
</a> <br>
|
||||
{% if "date" in x %}
|
||||
|
@ -21,7 +21,7 @@
|
||||
<a href="{{ url_for('home') }}">DIGITAL ARCHIVE OF ARTISTS' PUBLISHING</a>
|
||||
</div>
|
||||
<div id="header-keyword-search">
|
||||
<span>WEBSITE IN DEVELOPMENT</span>
|
||||
<input type="text" id="fname" name="fname" value="Keyword search">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -29,11 +29,11 @@
|
||||
<div id="navigation">
|
||||
<div id="nav-about"><a href="{{ url_for('about') }}">About</a></div>
|
||||
<div id="nav-browse-archive"><a href="{{ url_for('browsethearchive') }}">Browse the archive</a></div>
|
||||
<div id="nav-browse-category">Browse by category</div>
|
||||
<div id="nav-search"><a target="_blank" href="http://query.daap.bannerrepeater.org">Search tools</a></div>
|
||||
<div id="nav-tutorials">Tutorials</div>
|
||||
<div id="nav-upload">Upload</div>
|
||||
<div id="nav-login"><a target="_blank" href="https://daap.bannerrepeater.org/w/index.php">Log in</a></div>
|
||||
<div id="nav-browse-category"><a href="{{ url_for('browsebycategory') }}">Browse by category</a></div>
|
||||
<div id="nav-search"><a href="{{ url_for('searchtools') }}">Search tools</a></div>
|
||||
<div id="nav-tutorials"><a href="{{ url_for('tutorials') }}">Tutorials</a></div>
|
||||
<div id="nav-upload"><a href="{{ url_for('upload') }}">Upload</a></div>
|
||||
<div id="nav-login"><a href="https://daap.bannerrepeater.org/w/index.php?title=Special:UserLogin&returnto=Main+Page">Log in</a></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -46,13 +46,13 @@
|
||||
|
||||
<!-- <div id="footer-br"> -->
|
||||
<div id="footer-title-br"><p>A project by:</p></div>
|
||||
<div id="footer-img-br"><a target="_blank" href="https://www.bannerrepeater.org/"><img src="{{ url_for('static', filename='/imgs/Logos/Banner-Repeater-Logo.png') }}"></a></div>
|
||||
<div id="footer-img-br"><img src="{{ url_for('static', filename='/imgs/Logos/Banner-Repeater-logo.png') }}"></div>
|
||||
<!-- </div> -->
|
||||
<!-- <div id="footer-others"> -->
|
||||
<div id="footer-title-others"><p>With support from:</p></div>
|
||||
<div id="footer-img-others">
|
||||
<div id="footer-img-wiki"><a href="_blank" target="https://wikimedia.org.uk/"><img src="{{ url_for('static', filename='/imgs/Logos/wikimedia_logo.png') }}"></a></div>
|
||||
<div id="footer-img-lottery"><a href="https://www.artscouncil.org.uk/" target=""><img src="{{ url_for('static', filename='/imgs/Logos/Lottery-white on black.png') }}"></a></div>
|
||||
<div id="footer-img-wiki"><img src="{{ url_for('static', filename='/imgs/Logos/wikimedia_logo.png') }}"></div>
|
||||
<div id="footer-img-lottery"><img src="{{ url_for('static', filename='/imgs/Logos/Lottery-white on black.png') }}"></div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<div id="footer-title-contact"><p>EXPRESSION OF INTEREST</p></div>
|
||||
<div id="footer-contact"><a target="_blank" href="https://forms.gle/4EFpkQ9AKzZpdUmF6"><div class="bluebutton" id="contactform">FILL UP CONTACT FORM<span></span></div></a></div>
|
||||
<div id="footer-contact"><a href=""><div class="bluebutton" id="contactform">FILL UP CONTACT FORM<span></span></div></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -15,8 +15,8 @@
|
||||
<tbody>
|
||||
{% for x in results['results']['bindings']%}
|
||||
<tr>
|
||||
<th><a href="person?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="person?id={{ x['publishers']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x["publishersLabel"]['value'] }}</a></th>
|
||||
<th><a href="person?id={{ x['publishers']['value'] | replace('http://wikibase.svc/entity/', '') }}">{{ x['publishers']['value'] | replace('http://wikibase.svc/entity/', '') }}</a></th>
|
||||
<th class="label"><a href="person?id={{ x['publishers']['value'] | replace('http://wikibase.svc/entity/', '') }}">{{ x["publishersLabel"]['value'] }}</a></th>
|
||||
<th>
|
||||
{% if "publishersAltLabel" in x %}
|
||||
{{ x["publishersAltLabel"]["value"] }}
|
||||
|
@ -15,8 +15,8 @@
|
||||
<tbody>
|
||||
{% for x in results['results']['bindings']%}
|
||||
<tr>
|
||||
<th><a href="artwork?id={{ x['work']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x['work']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}</a></th>
|
||||
<th class="label"><a href="artwork?id={{ x['work']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x["workLabel"]['value'] }}</a></th>
|
||||
<th><a href="artwork?id={{ x['work']['value'] | replace('http://wikibase.svc/entity/', '') }}">{{ x['work']['value'] | replace('http://wikibase.svc/entity/', '') }}</a></th>
|
||||
<th class="label"><a href="artwork?id={{ x['work']['value'] | replace('http://wikibase.svc/entity/', '') }}">{{ x["workLabel"]['value'] }}</a></th>
|
||||
<th>
|
||||
{% if "workAltLabel" in x %}
|
||||
{{ x["workAltLabel"]["value"] }}
|
||||
|
@ -15,8 +15,8 @@
|
||||
<tbody>
|
||||
{% for x in results['results']['bindings']%}
|
||||
<tr>
|
||||
<th><a href="artwork?id={{ x['work']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x['work']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}</a></th>
|
||||
<th class="label"><a href="artwork?id={{ x['work']['value'] | replace('http://daap.bannerrepeater.org/entity/', '') }}">{{ x["workLabel"]['value'] }}</a></th>
|
||||
<th><a href="artwork?id={{ x['work']['value'] | replace('http://wikibase.svc/entity/', '') }}">{{ x['work']['value'] | replace('http://wikibase.svc/entity/', '') }}</a></th>
|
||||
<th class="label"><a href="artwork?id={{ x['work']['value'] | replace('http://wikibase.svc/entity/', '') }}">{{ x["workLabel"]['value'] }}</a></th>
|
||||
<th>
|
||||
{% if "workAltLabel" in x %}
|
||||
{{ x["workAltLabel"]["value"] }}
|
||||
|
Loading…
Reference in New Issue
Block a user