X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/73b6a1639ba8f9f5fc7615c136364fdba73e5bb2..17af7241ca7724df39d9d589245d818f689d97b5:/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 26fe1678c..eb1ab8a7d 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -1,82 +1,488 @@ -{% extends "base/base.html" %} +{% extends 'base.html' %} {% load i18n %} -{% load common_tags catalogue_tags %} -{% load ssify %} -{% load build_absolute_uri from fnp_common %} -{% load cache %} - -{% block titleextra %}{{ book.pretty_title }}{% endblock %} -{% block ogimage %}{% if book.cover %}{{ book.cover.url|build_absolute_uri:request }}{% endif %}{% endblock %} - -{% block metadescription %}{% book_title book %}. {{ block.super }}{% endblock %} - -{% block bodyid %}book-detail{% endblock %} - -{% block body %} - {% cache 86400 book_wide book.pk book|status:user %} - {% include 'catalogue/book_wide.html' %} - {% endcache %} - - {% work_list book_children %} - - {% spaceless %} - {% if book.other_versions %} -
-

{% trans "Other versions" %}:

- {% for rel in book.other_versions %} - {% cache 86400 book_mini_box rel.pk %} - {% include 'catalogue/book_mini_box.html' with book=rel %} - {% endcache %} - {#% ssi_include 'catalogue_book_mini' pk=rel.pk %#} +{% load chunks %} +{% load static %} +{% load choose_cites from social_tags %} +{% load catalogue_tags %} +{% load likes_book from social_tags %} + + +{% block global-content %} +
+ +
+ + +
+
+ {% with first_text=book.get_first_text %} + +
+ +
+ + + + + + {% if accessible %} +
+
+
+ {% if accessible and first_text %} + + {% endif %} + {{ book.pretty_title }} + {% if accessible and first_text %} + + {% endif %} +
+
+
+ {% if likes %} +
+ {% csrf_token %} + +
+ {% else %} +
+ {% csrf_token %} + +
+ {% endif %} +
+
+
+ {% if book.has_mp3_file %} + + {% endif %} +
+
+ +
+
+ {% if first_text %} + {% trans "czytaj online" %} + {% endif %} +
+
+
+
+ + + + {% if book.has_mp3_file %} + {% include 'catalogue/snippets/jplayer.html' %} + {% else %} + {% with ch=book.get_child_audiobook %} + {% if ch %} + {% include 'catalogue/snippets/jplayer_link.html' with book=ch %} + {% endif %} + {% endwith %} + + {% endif %} + + + + +
+
+
+

{% trans "Pobieranie e-booka" %}

+

{% trans "Wybierz wersję dla siebie" %}:

+
+
+ {% if book.pdf_file %} +
+
+

.pdf

+

{% trans "Jeśli planujesz wydruk albo lekturę na urządzeniu mobilnym bez dodatkowych aplikacji." %}

+
+
+ .pdf +
+
+ {% endif %} + {% if book.epub_file %} +
+
+

.epub

+

{% trans "Uniwersalny format e-booków, obsługiwany przez większość czytników sprzętowych i aplikacji na urządzenia mobilne." %}

+
+
+ .epub +
+
+ {% endif %} + {% if book.mobi_file %} +
+
+

.mobi

+

{% trans "Natywny format dla czytnika Amazon Kindle." %}

+
+
+ .mobi +
+
+ {% endif %} + {% if book.synchro_file %} +
+
+

synchrobook (epub3)

+

{% trans "Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format." %}

+
+ +
+ {% endif %} + {% if book.txt_file or book.fb2_file %} +
+
+

{% trans "inne formaty" %}

+ +
+
+ {% endif %} +
+ +
+
+ {% if book.has_mp3_file %} +
+
+
+

{% trans "Pobieranie audiobooka" %}

+

{% trans "Wybierz wersję dla siebie" %}:

+
+
+
+
+

.mp3

+

{% trans "Uniwersalny format, obsługiwany przez wszystkie urządzenia." %}

+
+
+ .mp3 +
+
+ {% if book.has_ogg_file %} +
+
+

OggVorbis

+

{% trans "Otwarty format plików audio, oferujący wysokiej jakości nagranie." %}

+
+
+ .ogg +
+
+ {% endif %} + {% if book.has_daisy_file %} +
+
+

DAISY

+

{% translate "Format dla osób z dysfunkcjami czytania." %}

+
+
+ {% for dsy in book.media_daisy %} + DAISY + {% endfor %} +
+
+ {% endif %} + {% if book.has_audio_epub_file %} +
+
+

EPUB + audiobook

+

{% trans "Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format." %}

+
+
+ {% for epub in book.media_audio_epub %} + EPUB+audio + {% endfor %} +
+
+ {% endif %} +
+ +
+
+ {% endif %} +
+ {% else %} +
+ {% chunk 'book-preview-warn' %} +
+ +
+ {% include 'club/donation_step1_form.html' with form=donation_form %} +
+ {% endif %} + +
+ {% content_warning book %} + {{ book.abstract|safe }} + + {% if book.toc %} +
+

{% trans "Spis treści" %}:

+ {{ book.toc|safe }} +
+ {% endif %} +
+ +
+ {% if accessible %} +
+
+

+ {% blocktrans trimmed %} + Ta książka jest dostępna dla tysięcy dzieciaków dzięki + darowiznom od osób takich jak Ty! + {% endblocktrans %} +

+ {% trans "Dorzuć się!" %} +
+
+ +
+
+ {% endif %} +
+ {% endwith %}
- {% endif %} -
-

{% trans "See also" %}:

- {% related_books book taken=book.other_versions|length %} -
- {% endspaceless %} - - {% with book.related_themes as themes %} - {% if themes %} -

{% trans "Themes" %}

- {% plain_list themes book=book %} - {% endif %} - {% endwith %} - - -

{% trans "Information about the work" %}

- {% for tag in tags %} - - {% endfor %} + {% for tag in book.authors %} +
+
+ {% include 'catalogue/author_box.html' %} + {% if forloop.first %} + {% choose_cites 3 book=book as cites %} + {% if cites %} +
+
+
+ {% for fragment in cites %} + {% include "catalogue/fragment_slider_box.html" %} + {% endfor %} +
+
+
+ {% endif %} + {% endif %} +
+
+ {% endfor %} + +
+
+ {% with book.related_themes as themes %} + {% if themes %} +

+ {% trans "Motywy występujące w tym utworze" %} + {% trans "Wszystkie motywy" %}

+
+ +
+ + + {% endif %} + {% endwith %} + +
+
+
+ + + + + +
+
+
+

{% trans "Czytaj także" %}

+
+ {% if book.other_versions %} + {% for rel in book.other_versions %} + + {% endfor %} + {% endif %} + + + {% related_books_2022 book taken=book.other_versions|length as related_books %} + {% for rel in related_books %} + + {% endfor %} + + + +
+
+
+
- {% if extra_info.source_url %} -
- {% trans "Source" %} {% trans "of the book" %} - {% trans "in" %} {% source_name extra_info.source_url %} -
- {% endif %} - {% if book|status:user != 'closed' %} -
{% trans "Source XML file" %}
- {% endif %} - {% if extra_info.about and not hide_about %} -
- {% trans "Book on" %} {% trans "Editor's Platform" %} -
- {% endif %} - {% if book.wiki_link %} -
- {% trans "Book description on Wikipedia" %} -
- {% endif %} -
- {% trans "Mix this book" %} -
{% endblock %}