X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ad2f309daa381e9a7a2b7a8a17ef494b60f838b2..e0f595e44766e352edfce0aaf5d32be57f448882:/src/catalogue/templates/catalogue/book_detail.html diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html index b625b7e7..3c98787c 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -1,119 +1,145 @@ -{% extends "catalogue/base.html" %} -{% load book_list i18n %} -{% load bootstrap4 %} +{% extends "documents/base.html" %} +{% load i18n %} +{% load pagination_tags %} -{% block titleextra %}{{ book.title }}{% endblock %} +{% block titleextra %}{% trans "Catalogue" %}{% endblock %} -{% block content %} -
+{% block content %} +
-

{{ book.title }}

+

{{ book }}

- - - -{% if editable %}
{% csrf_token %}{% endif %} - {% bootstrap_form form %} - {% if editable %} - {% buttons %} - - {% endbuttons %} - {% endif %} -{% if editable %}
{% endif %} - -{% if editable %} - {% if book.gallery %} -

{% trans "Edit gallery" %}

- {% endif %} + + {% with is_published=book.is_published %} + {% if is_published %} + + {% endif %} + {% if is_published %} + + {% endif %} + {% endwith %} + + {% for author in book.authors.all %} + + + + + + + {% endfor %} + {% for author in book.translator_set.all %} + + + + + + + {% endfor %} + + + + + + + +
+ + {{ author }} + + + {{ author.pd_year|default_if_none:"-" }} + + {{ author.wikidata_link }} + + {{ author.get_priority_display }} +
+ + {{ author }} + + + {{ author.pd_year|default_if_none:"-" }} + + {{ author.wikidata_link }} + + {{ author.get_priority_display }} +
+   + + {{ book.title }} + + + {{ book.pd_year|default_if_none:"-" }} + + {{ book.wikidata_link }} + + {{ book.get_priorty_display }} + +
+
+
-

{% trans "Append to other book" %}

-{% endif %} +
+
+ Tekst
+
+ {% for b in book.document_books.all %} + + {{ b }} + + {% empty %} + Brak tekstu. Jeśli masz źródło ze skanami, utwórz z niego tekst niżej. + {% endfor %}
+
-

{% trans "Chunks" %}

+ Audio
- - - {% for chunk in book %} - {% include 'catalogue/book_list/chunk.html' %} - {% endfor %} -
+ {% with audio=book.audio_status.items %} + {% if audio %} + + {% for s in audio %} + + {% endfor %} +
{{ s.part }}{{ s.youtube_status }}
+ {% endif %} + {% endwith %} +
- - - -
- -
-

{% trans "Publication" %}

+
+
+ Źródło +
+
+ {% for bs in book.booksource_set.all %} + + {{ bs.source }} + + {% if bs.page_start or bs.page_end %} + ({{ bs.page_start }}—{{ bs.page_end }}) + {% else %} + (całość) + {% endif %} +
+ {% csrf_token %} + +
+ {% empty %} + Brak źródła. + Możesz je dodać. + {% endfor %} +
-
-
-
- -{% if book.dc_cover_image %} - {{ book.dc_cover_image }} -{% endif %} -

-
- -Okładka w rozmiarze - x - -
-
-
-

{% trans "Last published" %}: - {% if book.last_published %} - {{ book.last_published }} - {% else %} - — - {% endif %} -

-{% if publishable %} -

- {% trans "Full XML" %}
- {% trans "HTML version" %}
- {% trans "TXT version" %}
- {% trans "PDF version" %}
- {% trans "PDF version for mobiles" %}
- {% trans "EPUB version" %}
- {% trans "MOBI version" %}
-

- {% if user.is_authenticated %} - -
{% csrf_token %} - {{ publish_options_form.as_p }} - - - -
- {% else %} - {% trans "Log in to publish." %} - {% endif %} -{% else %} -

{% trans "This book can't be published yet, because:" %}

-
  • {{ publishable_error }}
-{% endif %} -
-
{% endblock content %}