2020-12-29 22:56:28 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block main %}
|
2024-03-30 15:52:45 +01:00
|
|
|
{% include 'user_authorization.html' %}
|
|
|
|
<div id="nav" class="menu">
|
|
|
|
<div class="dropdown">
|
|
|
|
<button><a href="/">All books</a></button>
|
|
|
|
</div>
|
2024-03-30 20:23:24 +01:00
|
|
|
{% if current_user.is_authenticated %}
|
2024-03-30 15:52:45 +01:00
|
|
|
<div class="dropdown">
|
|
|
|
<button><a href="/upload">Upload</a></button>
|
|
|
|
</div>
|
2024-03-30 20:23:24 +01:00
|
|
|
{% endif %}
|
2021-04-18 10:13:30 +02:00
|
|
|
<div class="dropdown" style="visibility: hidden">
|
|
|
|
<button id="Year" class="dropbtn">Year</button>
|
|
|
|
</div>
|
2020-12-29 22:56:28 +01:00
|
|
|
</div>
|
2021-05-03 16:26:02 +02:00
|
|
|
<div id="publication">
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
{%if fullpublication["Image"]%}
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="tdimage">
|
|
|
|
<img src="{{ url_for('static', filename='images/image-{0}.jpg'.format(publicationID))}}" alt="">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
<tr>
|
|
|
|
<td>Title of publication</td>
|
|
|
|
<td>{{ fullpublication["Title"] }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Author/Editor</td>
|
|
|
|
<td>{{ fullpublication["Author"] }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Year</td>
|
|
|
|
<td>{{ fullpublication["Year"] }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Fields</td>
|
|
|
|
<td>{{ fullpublication["Fields"] }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Type of publication</td>
|
|
|
|
<td>{{ fullpublication["Type"] }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Publishers</td>
|
|
|
|
<td>{{ fullpublication["Publishers"] }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>License</td>
|
|
|
|
<td>{{ fullpublication["License"] }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Highlights</td>
|
|
|
|
<td><p>{{ fullpublication["Highlights"] }}</p></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Comments</td>
|
|
|
|
<td><p>{{ fullpublication["Comments"] }}</p></td>
|
|
|
|
</tr>
|
2023-11-29 23:40:12 +01:00
|
|
|
<tr>
|
|
|
|
<td>File</td>
|
|
|
|
<td><a href='files/{{fullpublication["Files"]}}'><p>{{ fullpublication["Files"] }}</p></a></td>
|
|
|
|
</tr>
|
2024-03-31 12:25:53 +02:00
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
<tr>
|
|
|
|
<td>Upload new</td>
|
|
|
|
<td>
|
|
|
|
<form method="POST" enctype="multipart/form-data" action="/{{ publicationID }}">
|
|
|
|
{{ pdf_uploadform.csrf_token }}
|
|
|
|
<fieldset class="fileupload-field">
|
|
|
|
{{ pdf_uploadform.pdf.label }}
|
|
|
|
{{ pdf_uploadform.pdf }}
|
|
|
|
{% for message in pdf_uploadform.pdf.errors %}
|
|
|
|
<div class="error">{{ message }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
</fieldset>
|
|
|
|
{{ pdf_uploadform.submit }}
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Upload new</td>
|
|
|
|
<td>
|
|
|
|
<form method="POST" enctype="multipart/form-data" action="/{{ publicationID }}">
|
|
|
|
{{ image_uploadform.csrf_token }}
|
|
|
|
<fieldset class="fileupload-field">
|
|
|
|
{{ image_uploadform.image.label }}
|
|
|
|
{{ image_uploadform.image }}
|
|
|
|
{% for message in image_uploadform.image.errors %}
|
|
|
|
<div class="error">{{ message }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
</fieldset>
|
|
|
|
{{ image_uploadform.submit }}
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
2023-11-29 23:07:19 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2024-03-30 15:52:45 +01:00
|
|
|
{% endblock %}
|