Show publisher on book data page
This commit is contained in:
parent
7cf0f904e5
commit
611e7870e7
|
@ -86,6 +86,15 @@
|
||||||
{% blocktrans with pages=book.pages %}{{ pages }} pages{% endblocktrans %}
|
{% blocktrans with pages=book.pages %}{{ pages }} pages{% endblocktrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
{% if book.published_date and book.publishers %}
|
||||||
|
{% blocktrans with date=book.published_date|date:'M jS Y' publisher=book.publishers|join:', ' %}Published {{ date }} by {{ publisher }}.{% endblocktrans %}
|
||||||
|
{% elif book.published_date %}
|
||||||
|
{% blocktrans with date=book.published_date|date:'M jS Y' %}Published {{ date }}{% endblocktrans %}
|
||||||
|
{% else %}
|
||||||
|
{% blocktrans with publisher=book.publishers|join:', ' %}Published by {{ publisher }}.{% endblocktrans %}
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
|
||||||
{% if book.openlibrary_key %}
|
{% if book.openlibrary_key %}
|
||||||
<p><a href="https://openlibrary.org/books/{{ book.openlibrary_key }}" target="_blank" rel="noopener">{% trans "View on OpenLibrary" %}</a></p>
|
<p><a href="https://openlibrary.org/books/{{ book.openlibrary_key }}" target="_blank" rel="noopener">{% trans "View on OpenLibrary" %}</a></p>
|
||||||
|
|
Loading…
Reference in New Issue