X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/eaba19e725b49fdf4efc858604a7b9d70d27f59f..98062d2158ebe1f734d811691ab15e6887684281:/src/catalogue/templates/catalogue/2022/book_detail.html diff --git a/src/catalogue/templates/catalogue/2022/book_detail.html b/src/catalogue/templates/catalogue/2022/book_detail.html index f0910a542..7c2bb071c 100644 --- a/src/catalogue/templates/catalogue/2022/book_detail.html +++ b/src/catalogue/templates/catalogue/2022/book_detail.html @@ -90,14 +90,18 @@

{% for author in book.authors %}{{ author.name }}{% if not forloop.last %}, {% endif %}{% endfor %}

{{ book.title }}

- {% if book.translators %} + {% with translators=book.translators %} + {% if translators %}

- tłum. - {% for translator in book.translators %} + {% if translators.0 != 'tłumacz nieznany' %} + tłum. + {% endif %} + {% for translator in translators %} {{ translator }}{% if not forloop.last %}, {% endif %} {% endfor %}

{% endif %} + {% endwith %} @@ -130,187 +134,127 @@ {% 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 %} - czytaj online - {% endif %} -
-
-
+
+ {% 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 %} + czytaj online + {% endif %} +
+
+
- {% if book.has_mp3_file %} - {% include 'catalogue/snippets/2022_jplayer.html' %} - {% else %} - {% with ch=book.get_child_audiobook %} - {% if ch %} - {% include 'catalogue/snippets/2022_jplayer_link.html' with book=ch %} - {% endif %} - {% endwith %} + {% if book.has_mp3_file %} + {% include 'catalogue/snippets/2022_jplayer.html' %} + {% else %} + {% with ch=book.get_child_audiobook %} + {% if ch %} + {% include 'catalogue/snippets/2022_jplayer_link.html' with book=ch %} + {% endif %} + {% endwith %} - {% endif %} + {% endif %} -
-
-
-

Pobieranie e-booka

-

Wybierz wersję dla siebie:

-
-
- {% if book.pdf_file %} -
-
-

.pdf

-

Jeśli planujesz wydruk albo lekturę na urządzeniu mobilnym bez dodatkowych aplikacji.

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

.epub

-

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

-

Natywny format dla czytnika Amazon Kindle.

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

synchrobook (epub3)

-

Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format (np. ..., ..., ...).

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

inne formaty

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

Pobieranie audiobooka

+

Pobieranie e-booka

Wybierz wersję dla siebie:

-
-
-

.mp3

-

Uniwersalny format, obsługiwany przez wszystkie urządzenia.

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

.pdf

+

Jeśli planujesz wydruk albo lekturę na urządzeniu mobilnym bez dodatkowych aplikacji.

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

OggVorbis

-

Otwarty format plików audio, oferujący nagranie w najwyższej jakości dźwiękowej.

+

.epub

+

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

- .ogg + .epub
{% endif %} - {% if book.has_daisy_file %} + {% if book.mobi_file %}
-

DAISY

-

Format dla osób z dysfunkcjami czytania.

+

.mobi

+

Natywny format dla czytnika Amazon Kindle.

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

EPUB + audiobook

-

Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format.

+

synchrobook (epub3)

+

Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format (np. ..., ..., ...).

- {% for epub in book.media_audio_epub %} - EPUB+audio - {% endfor %} + synchrobook +
+
+ {% endif %} + {% if book.txt_file or book.fb2_file %} +
+
+

inne formaty

+
{% endif %} @@ -320,19 +264,80 @@
- {% endif %} -
+ {% if book.has_mp3_file %} +
+
+
+

Pobieranie audiobooka

+

Wybierz wersję dla siebie:

+
+
+
+
+

.mp3

+

Uniwersalny format, obsługiwany przez wszystkie urządzenia.

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

OggVorbis

+

Otwarty format plików audio, oferujący nagranie w najwyższej jakości dźwiękowej.

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

DAISY

+

Format dla osób z dysfunkcjami czytania.

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

EPUB + audiobook

+

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' %} -
+
+ {% chunk 'book-preview-warn' %} +
-
- {% include 'club/2022/donation_step1_form.html' with form=donation_form %} -
+
+ {% include 'club/2022/donation_step1_form.html' with form=donation_form %} +
{% endif %}
+ {% content_warning book %} {{ book.abstract|safe }} {% if book.toc %}