|
|
|
@ -12,7 +12,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-9 col-lg-9 book-meta">
|
|
|
|
|
<div class="more-stuff">
|
|
|
|
|
<div class="btn-toolbar" role="toolbar">
|
|
|
|
|
<div class="btn-group" role="group" aria-label="Download, send to Kindle, reading">
|
|
|
|
|
{% if g.user.role_download() %}
|
|
|
|
@ -22,12 +21,9 @@
|
|
|
|
|
{{_('Download')}} :
|
|
|
|
|
</button>
|
|
|
|
|
{% for format in entry.data %}
|
|
|
|
|
<button id="btnGroupDrop1{{format.format|lower}}" type="button" class="btn btn-primary">
|
|
|
|
|
<a class="button-link" href="{{ url_for('get_download_link_ext', book_id=entry.id, book_format=format.format|lower, anyname=entry.id|string+'.'+format.format) }}">
|
|
|
|
|
<span class="glyphicon glyphicon-download"></span>
|
|
|
|
|
{{format.format}}
|
|
|
|
|
</a>
|
|
|
|
|
</button>
|
|
|
|
|
<a href="{{ url_for('get_download_link_ext', book_id=entry.id, book_format=format.format|lower, anyname=entry.id|string+'.'+format.format) }}" id="btnGroupDrop1{{format.format|lower}}" class="btn btn-primary" role="button">
|
|
|
|
|
<span class="glyphicon glyphicon-download"></span>{{format.format}}
|
|
|
|
|
</a>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% else %}
|
|
|
|
|
<button id="btnGroupDrop1" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
@ -63,6 +59,7 @@
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h2>{{entry.title}}</h2>
|
|
|
|
|
<p class="author">
|
|
|
|
|
{% for author in entry.authors %}
|
|
|
|
@ -106,20 +103,22 @@
|
|
|
|
|
{% for identifier in entry.identifiers %}
|
|
|
|
|
<a href="{{identifier}}" target="_blank" class="btn btn-xs btn-success" role="button">{{identifier.formatType()}}</a>
|
|
|
|
|
{%endfor%}
|
|
|
|
|
</div>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if entry.tags|length > 0 %}
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
<div class="tags">
|
|
|
|
|
<p>
|
|
|
|
|
<span class="glyphicon glyphicon-tags"></span>
|
|
|
|
|
|
|
|
|
|
{% for tag in entry.tags %}
|
|
|
|
|
<a href="{{ url_for('category', book_id=tag.id) }}" class="btn btn-xs btn-info" role="button">{{tag.name}}</a>
|
|
|
|
|
{%endfor%}
|
|
|
|
|
</div>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if entry.publishers|length > 0 %}
|
|
|
|
|
<div class="publishers">
|
|
|
|
@ -132,8 +131,9 @@
|
|
|
|
|
<p>{{_('Publishing date')}}: {{entry.pubdate|formatdate}} </p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if cc|length > 0 %}
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
<div class="custom_columns">
|
|
|
|
|
<p>
|
|
|
|
|
{% for c in cc %}
|
|
|
|
|
{% if entry['custom_column_' ~ c.id]|length > 0 %}
|
|
|
|
|
{{ c.name }}:
|
|
|
|
@ -155,20 +155,21 @@
|
|
|
|
|
<br />
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if not g.user.is_anonymous() %}
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
<div class="custom_columns">
|
|
|
|
|
<p>
|
|
|
|
|
<form id="have_read_form" action="{{ url_for('toggle_read', book_id=entry.id)}}" method="POST">
|
|
|
|
|
<label class="block-label">
|
|
|
|
|
<input id="have_read_cb" type="checkbox" {% if have_read %}checked{% endif %} >
|
|
|
|
|
<span>{{_('Read')}}</span>
|
|
|
|
|
</label>
|
|
|
|
|
</form>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -178,7 +179,8 @@
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</br>
|
|
|
|
|
<div class="more-stuff">
|
|
|
|
|
|
|
|
|
|
{% if g.user.is_authenticated %}
|
|
|
|
|
{% if g.user.shelf.all() or g.public_shelfes %}
|
|
|
|
|
<div class="btn-toolbar" role="toolbar">
|
|
|
|
@ -220,18 +222,20 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if g.user.role_edit() %}
|
|
|
|
|
<div class="btn-toolbar" role="toolbar">
|
|
|
|
|
<div class="btn-group" role="group" aria-label="Edit/Delete book">
|
|
|
|
|
<a href="{{ url_for('edit_book', book_id=entry.id) }}" class="btn btn-sm btn-warning" role="button"><span class="glyphicon glyphicon-edit"></span> {{_('Edit metadata')}}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block js %}
|
|
|
|
|