1 {% extends 'base.html' %}
5 {% load choose_cites from social_tags %}
6 {% load catalogue_tags %}
7 {% load likes_book from social_tags %}
10 {% block global-content %}
11 <div class="l-container">
12 <div class="l-breadcrumb">
13 <a href="/"><span>{% trans "Strona główna" %}</span></a>
14 <a href="/katalog/lektury/"><span>{% trans "Literatura" %}</span></a>
15 {% for ancestor in book.ancestors %}
16 <a href="{{ ancestor.get_absolute_url }}">{{ ancestor.title }}</a>
22 <main class="l-main page-book">
23 <section class="l-section lay-s-col-rev">
24 {% with first_text=book.get_first_text %}
25 <aside class="l-aside">
26 <figure class="only-l">
27 {% if accessible and first_text %}
28 <a href="{% url 'book_text' first_text.slug %}">
30 <img src="{% if book.cover_clean %}{{ book.cover_clean.url }}{% endif %}" alt="{{ book.pretty_title }}" width="240">
31 {% if accessible and first_text %}
36 {% if book.parent or book.get_children %}
37 <ul class="l-aside__zbiory">
39 {% for b in book.ancestors %}
41 <a href="{{ b.get_absolute_url }}">{{ b.title }}</a>
44 {% for b in book.get_siblings %}
47 <strong>{{ b.title }}</strong>
49 {% for c in book.get_children %}
51 <a href="{{ c.get_absolute_url }}">{{ c.title }}</a>
56 <a href="{{ b.get_absolute_url }}">{{ b.title }}</a>
61 {% for b in book.ancestor.all %}
67 <strong>{{ book.title }}</strong>
69 {% for c in book.get_children %}
71 <a href="{{ c.get_absolute_url }}">{{ c.title }}</a>
80 <ul class="l-aside__info">
81 <li><span>{% trans "Epoka" %}:</span> {% for tag in book.epochs %}<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a> {% endfor %}</li>
82 <li><span>{% trans "Rodzaj" %}:</span> {% for tag in book.kinds %}<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a> {% endfor %}</li>
83 <li><span>{% trans "Gatunek" %}:</span> {% for tag in book.genres %}<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a> {% endfor %}</li>
87 <div class="l-content">
88 <header class="l-header">
89 <div class="l-header__content">
90 <p>{% for author in book.authors %}<a href="{{ author.get_absolute_url }}">{{ author.name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
92 <h1><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h1>
93 {% if book.translators.exists %}
94 <p class="l-header__translators">
95 {% for translator in book.translators.all %}
96 {% if forloop.first and translator.name != 'tłumacz nieznany' %}
99 <a href="{{ translator.get_absolute_url }}">
100 {{ translator }}</a>{% if not forloop.last %}, {% endif %}
108 {% likes_book book as likes %}
109 <div class="l-header__actions only-l">
111 <form method='post' action='{% url 'social_unlike_book' book.slug %}'>
113 <button class="l-button l-button--fav">
114 <img src="{% static '2022/images/faved.svg' %}" alt="{% trans 'Usuń z ulubionych' %}">
118 <form method='post' action='{% url 'social_like_book' book.slug %}'>
120 <button class="l-button l-button--fav">
121 <img src="{% static '2022/images/fav.svg' %}" alt="{% trans 'Dodaj do ulubionych' %}">
127 <article class="l-article">
134 <div class="c-media">
135 <div class="lay-row lay-l-block lay-spread">
136 <figure class="only-s book-cover-small">
137 {% if accessible and first_text %}
138 <a href="{% url 'book_text' first_text.slug %}">
140 <img src="{% if book.cover_clean %}{{ book.cover_clean.url }}{% endif %}" alt="{{ book.pretty_title }}">
141 {% if accessible and first_text %}
145 <div class="lay-col lay-spread lay-grow">
146 <div class="l-header__actions only-s">
148 <form method='post' action='{% url 'social_unlike_book' book.slug %}'>
150 <button class="l-button l-button--fav">
151 <img src="{% static '2022/images/faved.svg' %}" alt="{% trans 'Usuń z ulubionych' %}">
155 <form method='post' action='{% url 'social_like_book' book.slug %}'>
157 <button class="l-button l-button--fav">
158 <img src="{% static '2022/images/fav.svg' %}" alt="{% trans 'Dodaj do ulubionych' %}">
163 <div class="c-media__actions lay-col lay-l-row">
164 <div class="c-media__btn">
165 {% if book.has_mp3_file %}
166 <button class="l-button l-button--media" id="audiobook"><i class="icon icon-audio"></i> {% trans "pobierz audiobook" %}</button>
169 <div class="c-media__btn">
170 <button class="l-button l-button--media" id="ebook"><i class="icon icon-book"></i> {% trans "pobierz książkę" %}</button>
172 <div class="c-media__btn">
174 <a href="https://elevenreader.io/app/reader/audiobooks/wolnelektury:{{ first_text.slug }}" target="_blank" class="l-button l-button--media"><img src="{% static 'img/elevenreader-21.png' %}" title="{% trans "Posłuchaj w ElevenReader" %}" alt="{% trans "Posłuchaj w ElevenReader" %}"></a>
177 <div class="c-media__btn">
179 <a href="{% url 'book_text' first_text.slug %}" class="l-button l-button--media l-button--media--full"><i class="icon icon-eye"></i> {% trans "czytaj online" %}</a>
188 {% if book.has_mp3_file %}
189 {% include 'catalogue/snippets/jplayer.html' %}
191 {% with ch=book.get_child_audiobook %}
193 {% include 'catalogue/snippets/jplayer_link.html' with book=ch %}
202 <div class="c-media__popup" data-popup="ebook">
203 <div class="c-media__popup__box">
204 <div class="c-media__popup__box__lead">
205 <h2>{% trans "Pobieranie e-booka" %}</h2>
206 <p>{% trans "Wybierz wersję dla siebie" %}:</p>
208 <div class="c-media__popup__box__items">
209 {% if book.pdf_file %}
210 <div class="c-media__popup__box__item">
213 <p>{% trans "Jeśli planujesz wydruk albo lekturę na urządzeniu mobilnym bez dodatkowych aplikacji." %}</p>
216 <a href="{{ book.pdf_url }}" class="l-button l-button--media l-button--media--full">.pdf</a>
220 {% if book.epub_file %}
221 <div class="c-media__popup__box__item">
224 <p>{% trans "Uniwersalny format e-booków, obsługiwany przez większość czytników sprzętowych i aplikacji na urządzenia mobilne." %}</p>
227 <a href="{{ book.epub_url }}" class="l-button l-button--media l-button--media--full">.epub</a>
231 {% if book.mobi_file %}
232 <div class="c-media__popup__box__item">
235 <p>{% trans "Natywny format dla czytnika Amazon Kindle." %}</p>
238 <a href="{{ book.mobi_url }}" class="l-button l-button--media l-button--media--full">.mobi</a>
242 {% if book.synchro_file %}
243 <div class="c-media__popup__box__item">
245 <h3>synchrobook (epub3)</h3>
246 <p>{% trans "Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format." %}</p>
249 <a href="{{ book.synchro_file }}" class="l-button l-button--media l-button--media--full">synchrobook</a>
253 {% if book.txt_file or book.fb2_file %}
254 <div class="c-media__popup__box__item">
256 <h3>{% trans "inne formaty" %}</h3>
258 <li><a href="{% url 'custom_pdf_form' book.slug %}">{% trans "Stwórz własny PDF" %}</a></li>
259 {% if book.txt_file %}<li><a href="{{ book.txt_url }}">{% trans "plik tekstowy" %} (.txt)</a></li>{% endif %}
260 {% if book.fb2_file %}<li><a href="{{ book.fb2_url }}">{% trans "FictionBook" %}</a></li>{% endif %}
266 <button class="c-media__popup__close">
267 <img src="{% static '2022/images/close.svg' %}" alt="{% trans 'Zamknij' %}">
271 {% if book.has_mp3_file %}
272 <div class="c-media__popup" data-popup="audiobook">
273 <div class="c-media__popup__box">
274 <div class="c-media__popup__box__lead">
275 <h2>{% trans "Pobieranie audiobooka" %}</h2>
276 <p>{% trans "Wybierz wersję dla siebie" %}:</p>
278 <div class="c-media__popup__box__items">
279 <div class="c-media__popup__box__item">
282 <p>{% trans "Uniwersalny format, obsługiwany przez wszystkie urządzenia." %}</p>
285 <a href="{% url 'download_zip_mp3' book.slug %}" class="l-button l-button--media l-button--media--full">.mp3</a>
288 {% if book.has_ogg_file %}
289 <div class="c-media__popup__box__item">
292 <p>{% trans "Otwarty format plików audio, oferujący wysokiej jakości nagranie." %}</p>
295 <a href="{% url 'download_zip_ogg' book.slug %}" class="l-button l-button--media l-button--media--full">.ogg</a>
299 {% if book.has_daisy_file %}
300 <div class="c-media__popup__box__item">
303 <p>{% translate "Format dla osób z dysfunkcjami czytania." %}</p>
306 {% for dsy in book.media_daisy %}
307 <a href="{{ dsy.file.url }}" class="l-button l-button--media l-button--media--full">DAISY</a>
312 {% if book.has_audio_epub_file %}
313 <div class="c-media__popup__box__item">
315 <h3>EPUB + audiobook</h3>
316 <p>{% trans "Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format." %}</p>
319 {% for epub in book.media_audio_epub %}
320 <a href="{{ epub.file.url }}" class="l-button l-button--media l-button--media--full">EPUB+audio</a>
326 <button class="c-media__popup__close">
327 <img src="{% static '2022/images/close.svg' %}" alt="{% trans 'Zamknij' %}">
334 <div style="margin-bottom: 1.5rem; font-size: 15px; like-height: 150%; color: #808080;">
335 {% chunk 'book-preview-warn' %}
338 <div class="l-checkout__box">
339 {% include 'club/donation_step1_form.html' with form=donation_form %}
343 <div class="l-article__overlay" data-max-height="327">
344 {% content_warning book %}
345 {{ book.abstract|safe }}
349 <h4>{% trans "Spis treści" %}:</h4>
354 <button class="l-article__read-more" aria-label="{% trans 'Kliknij aby rozwinąć' %}" data-label="{% trans 'Czytaj więcej' %}" data-action="{% trans 'Zwiń tekst' %}">{% trans 'Czytaj więcej' %}</button>
357 <div class="c-support">
360 {% blocktrans trimmed %}
361 Ta książka jest dostępna dla tysięcy dzieciaków dzięki
362 <span>darowiznom</span> od osób takich jak <span>Ty</span>!
365 <a href="{% url 'club_join' %}?pk_campaign=layout">{% trans "Dorzuć się!" %}</a>
368 <!-- img src="{% static '2022/images/dziecko.jpeg' %}" alt="Dorzuć się!" -->
376 {% for tag in book.authors %}
377 <section class="l-section">
378 <div class="l-author">
379 {% include 'catalogue/author_box.html' %}
381 {% if forloop.first %}
382 {% choose_cites 3 book=book as cites %}
385 <div class="l-author__quotes">
386 <div class="l-author__quotes__slider">
387 {% for fragment in cites %}
388 {% include "catalogue/fragment_slider_box.html" %}
399 <section class="l-section">
400 <div class="l-themes__wrapper">
401 {% with book.related_themes as themes %}
404 {% trans "Motywy występujące w tym utworze" %}
405 <a href="/katalog/motyw/"><span>{% trans "Wszystkie motywy" %}</span> <i class="icon icon-arrow-right"></i></a></h2>
406 <div class="l-themes l-article__overlay" data-max-height="80">
408 {% for item in themes %}
409 <li><a href="{% url 'book_fragments' book.slug item.slug %}">{{ item }} ({{ item.count}})</a></li>
413 <button class="l-article__read-more" aria-label="{% trans 'Kliknij aby rozwinąć' %}" data-label="{% trans 'Zobacz więcej' %}" data-action="{% trans 'Zwiń tekst' %}">{% trans 'Zobacz więcej' %}</button>
418 {% if book.wiki_link %}
419 <li><a href="{{ book.wiki_link }}">{% trans "strona utworu w Wikipedii" %}</a></li>
423 <a href="{{ book.xml_url }}">{% trans "źródłowy plik XML" %}</a>
426 <a target="_blank" href="{% url 'poem_from_book' book.slug %}">{% trans "miksuj treść utworu" %}</a>
429 <a target="_blank" href="{{ book.get_extra_info_json.about }}">{% trans "utwór na Platformie Redakcyjnej" %}</a>
441 <section class="l-section">
442 <div class="l-books__wrapper">
443 <div class="l-container">
444 <h2>{% trans "Czytaj także" %}</h2>
445 <div class="l-books">
446 {% if book.other_versions %}
447 {% for rel in book.other_versions %}
448 <article class="l-books__item">
449 <figure class="l-books__item__img">
450 <a href="{{ rel.get_absolute_url }}">
451 <img src="{% if rel.cover_clean %}{{ rel.cover_clean.url }}{% endif %}" alt="{{ rel.pretty_title }}">
455 {% for author in rel.authors %}
456 <a href="{{ author.get_absolute_url }}">{{ author }}</a>
459 <h2><a href="{{ rel.get_absolute_url }}">{{ rel.title }}</a></h2>
465 {% related_books_2022 book taken=book.other_versions|length as related_books %}
466 {% for rel in related_books %}
467 <article class="l-books__item">
468 <figure class="l-books__item__img">
469 <a href="{{ rel.get_absolute_url }}">
470 <img src="{% if rel.cover_clean %}{{ rel.cover_clean.url }}{% endif %}" alt="{{ rel.pretty_title }}">
474 {% for author in rel.authors %}
475 <a href="{{ author.get_absolute_url }}">{{ author|upper }}</a>
478 <h2><a href="{{ rel.get_absolute_url }}">{{ rel.title }}</a></h2>
482 <article class="l-books__item l-books__item--link">
483 <a href="/katalog/kolekcje/">{% trans "i wiele innych książek, wierszy, obrazów, audiobooków…" %}</a>
484 <a href="/katalog/kolekcje/" class="icon-link"><i class="icon icon-all"></i></a>