4 {% load choose_cites from social_tags %}
 
   5 {% load choose_fragment license_icon from catalogue_tags %}
 
   6 {% load catalogue_tags %}
 
   7 {% load likes_book from social_tags %}
 
  13     <meta charset="utf-8">
 
  14     <meta name="description" content="">
 
  15     <meta name="viewport" content="width=device-width,initial-scale=1">
 
  16     <title>WolneLektury.pl</title>
 
  17     <link rel="apple-touch-icon" href="apple-touch-icon.png">
 
  19     {% stylesheet '2022' %}
 
  20       <script src="scripts/modernizr.js"></script>
 
  22       <link rel="preconnect" href="https://fonts.googleapis.com">
 
  23       <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 
  24       <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap" rel="stylesheet">
 
  30     <nav class="l-navigation">
 
  31       <div class="l-change-pop">
 
  32         <h3>Zmieniamy się!</h3>
 
  34           Jeżeli to czytasz jesteś jedną z osób, której prezentujemy nowy wygląd strony książki.
 
  35           Będziemy bardzo! wdzięczni za Twoją opinię – <a href='/formularz/ux-strona-ksiazki-T1/' target="_blank">możesz nam ją przesłać tutaj</a>.
 
  36           Jeżeli wolisz klasyczny wygląd - wystarczy, że <a class="quit-experiment" href="#">klikniesz tutaj</a>
 
  38         <!-- button class="l-change-pop__close">
 
  39              <i class="icon icon-close"></i>
 
  42       <div class="l-container">
 
  43         <a href="/" class="l-navigation__logo">
 
  44           <img src="{% static "2022/images/logo.png" %}" alt="WolneLektury.pl">
 
  46         <div class="l-naviagion__search">
 
  47           <form action="/szukaj/">
 
  48             <input id="search" name="q" type="text" placeholder="szukaj tytułu, autora, motywów…" autocomplete="off" data-source="/szukaj/hint/?max=10">
 
  51         <div class="l-navigation__actions">
 
  52           <a href="/ludzie/polka/"><i class="icon icon-liked"></i></a>
 
  53           <!-- button class="l-navigation__button js-menu" aria-label="Menu">
 
  54                <span class="c-hamburger">
 
  55                <span class="bar"></span>
 
  63     <div class="l-container">
 
  64       <div class="l-breadcrumb">
 
  65         <a href="/"><span>Strona główna</span></a>
 
  66         <a href="/katalog/lektury/"><span>Literatura</span></a>
 
  67         {% for ancestor in book.ancestors %}
 
  68           <a href="{{ ancestor.get_absolute_url }}">{{ ancestor.title }}</a>
 
  75       <section class="l-section">
 
  76         {% with first_text=book.get_first_text %}
 
  77           <aside class="l-aside">
 
  80                 <a href="{% url 'book_text' first_text.slug %}">
 
  82               <img src="{% if book.cover_clean %}{{ book.cover_clean.url }}{% endif %}" alt="{{ book.pretty_title }}" width="240">
 
  88             {% if book.parent or book.get_children %}
 
  89               <ul class="l-aside__zbiory">
 
  91                   {% for b in book.ancestors %}
 
  93                       <a href="{{ b.get_absolute_url }}">{{ b.title }}</a>
 
  96                   {% for b in book.get_siblings %}
 
  99                         <strong>{{ b.title }}</strong>
 
 101                           {% for c in book.get_children %}
 
 103                               <a href="{{ c.get_absolute_url }}">{{ c.title }}</a>
 
 108                         <a href="{{ b.get_absolute_url }}">{{ b.title }}</a>
 
 113                   {% for b in book.ancestor.all %}
 
 119                     <strong>{{ book.title }}</strong>
 
 121                       {% for c in book.get_children %}
 
 123                           <a href="{{ c.get_absolute_url }}">{{ c.title }}</a>
 
 132             <ul class="l-aside__info">
 
 133               <li><span>Epoka:</span> {% for tag in book.epochs %}<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a> {% endfor %}</li>
 
 134               <li><span>Rodzaj:</span> {% for tag in book.kinds %}<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a> {% endfor %}</li>
 
 135               <li><span>Gatunek:</span> {% for tag in book.genres %}<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a> {% endfor %}</li>
 
 139           <div class="l-content">
 
 140             <header class="l-header">
 
 141               <div class="l-header__content">
 
 142                 <p>{% for author in book.authors %}<a href="{{ author.get_absolute_url }}">{{ author.name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
 
 144                 <h1><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h1>
 
 145                 {% if book.translators %}
 
 146                   <p class="l-header__translators">
 
 148                     {% for translator in book.translators %}
 
 149                       {{ translator }}{% if not forloop.last %}, {% endif %}
 
 154               <div class="l-header__actions">
 
 155                 {% likes_book book as likes %}
 
 157                   <form method='post' action='{% url 'social_unlike_book' book.slug %}'>
 
 159                     <button class="l-button l-button--fav">
 
 160                       <img src="{% static '2022/images/faved.svg' %}" alt="Usuń z ulubionych">
 
 164                   <form method='post' action='{% url 'social_like_book' book.slug %}'>
 
 166                     <button class="l-button l-button--fav">
 
 167                       <img src="{% static '2022/images/fav.svg' %}" alt="Dodaj do ulubionych">
 
 173             <article class="l-article">
 
 174               <div class="c-media">
 
 175                 <div class="c-media__actions">
 
 176                   <div class="c-media__btn">
 
 177                     {% if book.has_mp3_file %}
 
 178                       <button class="l-button l-button--media" id="audiobook"><i class="icon icon-audio"></i> pobierz audiobook</button>
 
 181                   <div class="c-media__btn">
 
 182                     <button class="l-button l-button--media" id="ebook"><i class="icon icon-book"></i> pobierz książkę</button>
 
 184                   <div class="c-media__btn">
 
 186                       <a href="{% url 'book_text' first_text.slug %}" class="l-button l-button--media l-button--media--full"><i class="icon icon-eye"></i> czytaj online</a>
 
 193                 {% if book.has_mp3_file %}
 
 194                   {% include 'catalogue/snippets/2022_jplayer.html' %}
 
 196                   {% with ch=book.get_child_audiobook %}
 
 198                       {% include 'catalogue/snippets/2022_jplayer_link.html' with book=ch %}
 
 207                 <div class="c-media__popup" data-popup="ebook">
 
 208                   <div class="c-media__popup__box">
 
 209                     <div class="c-media__popup__box__lead">
 
 210                       <h2>Pobieranie e-booka</h2>
 
 211                       <p>Wybierz wersję dla siebie:</p>
 
 213                     <div class="c-media__popup__box__items">
 
 214                       {% if book.pdf_file %}
 
 215                         <div class="c-media__popup__box__item">
 
 218                             <p>Jeśli planujesz wydruk albo lekturę na urządzeniu mobilnym bez dodatkowych aplikacji.</p>
 
 221                             <a href="{{ book.pdf_url }}" class="l-button l-button--media l-button--media--full">.pdf</a>
 
 225                       {% if book.epub_file %}
 
 226                         <div class="c-media__popup__box__item">
 
 229                             <p>Uniwersalny format e-booków, obsługiwany przez większość czytników sprzętowych i aplikacji na urządzenia mobilne.</p>
 
 232                             <a href="{{ book.epub_url }}" class="l-button l-button--media l-button--media--full">.epub</a>
 
 236                       {% if book.mobi_file %}
 
 237                         <div class="c-media__popup__box__item">
 
 240                             <p>Natywny format dla czytnika Amazon Kindle.</p>
 
 243                             <a href="{{ book.mobi_url }}" class="l-button l-button--media l-button--media--full">.mobi</a>
 
 247                       {% if book.synchro_file %}
 
 248                         <div class="c-media__popup__box__item">
 
 250                             <h3>synchrobook (epub3)</h3>
 
 251                             <p>Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format (np. ..., ..., ...).</p>
 
 254                             <a href="#" class="l-button l-button--media l-button--media--full">synchrobook</a>
 
 258                       {% if book.txt_file or book.fb2_file %}
 
 259                         <div class="c-media__popup__box__item">
 
 261                             <h3>inne formaty</h3>
 
 263                               <li><a href="{% url 'custom_pdf_form' book.slug %}">Stwórz własny PDF</a></li>
 
 264                               {% if book.txt_file %}<li><a href="{{ book.txt_url }}">plik tekstowy (.txt)</a></li>{% endif %}
 
 265                               {% if book.fb2_file %}<li><a href="{{ book.fb2_url }}">FictionBook</a></li>{% endif %}
 
 271                     <button class="c-media__popup__close">
 
 272                       <img src="{% static '2022/images/close.svg' %}" alt="Zamknij">
 
 276                 {% if book.has_mp3_file %}
 
 277                   <div class="c-media__popup" data-popup="audiobook">
 
 278                     <div class="c-media__popup__box">
 
 279                       <div class="c-media__popup__box__lead">
 
 280                         <h2>Pobieranie audiobooka</h2>
 
 281                         <p>Wybierz wersję dla siebie:</p>
 
 283                       <div class="c-media__popup__box__items">
 
 284                         <div class="c-media__popup__box__item">
 
 287                             <p>Uniwersalny format, obsługiwany przez wszystkie urządzenia.</p>
 
 290                             <a href="{% url 'download_zip_mp3' book.slug %}" class="l-button l-button--media l-button--media--full">.mp3</a>
 
 293                         {% if book.has_ogg_file %}
 
 294                           <div class="c-media__popup__box__item">
 
 297                               <p>Otwarty format plików audio, oferujący nagranie w najwyższej jakości dźwiękowej.</p>
 
 300                               <a href="{% url 'download_zip_ogg' book.slug %}" class="l-button l-button--media l-button--media--full">.ogg</a>
 
 304                         {% if book.has_daisy_file %}
 
 305                           <div class="c-media__popup__box__item">
 
 308                               <p>Format dla osób z dysfunkcjami czytania.</p>
 
 311                               {% for dsy in book.media_daisy %}
 
 312                                 <a href="{{ dsy.file.url }}" class="l-button l-button--media l-button--media--full">DAISY</a>
 
 317                         {% if book.has_synchro_file %}
 
 318                           <div class="c-media__popup__box__item">
 
 321                               <p>Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format.</p>
 
 324                               <a href="#" class="l-button l-button--media l-button--media--full">synchrobook</a>
 
 329                       <button class="c-media__popup__close">
 
 330                         <img src="{% static '2022/images/close.svg' %}" alt="Zamknij">
 
 337               <div class="l-article__overlay" data-max-height="327">
 
 338                 {{ book.abstract|safe }}
 
 341                   <h4>Spis treści:</h4>
 
 345               <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Czytaj więcej" data-action="Zwiń tekst">Czytaj więcej</button>
 
 347             <div class="c-support">
 
 349                 <h2>Ta książka jest dostępna dla tysięcy dzieciaków dzięki <span>darowiznom</span> od osób takich jak <span>Ty</span>!</h2>
 
 350                 <a href="{% url 'club_join' %}?pk_campaign=layout">Dorzuć się!</a>
 
 353                 <img src="{% static '2022/images/dziecko.jpeg' %}" alt="Dorzuć się!">
 
 360       {% for author in book.authors %}
 
 361         <section class="l-section">
 
 362           <div class="l-author">
 
 366                 {% if author.photo %}
 
 367                   <figure class="l-author__photo">
 
 368                     <img src="{{ author.photo.url }}" alt="{{ author.name }}" style="width: 238px;">
 
 370                       {{ author.photo_attribution|safe }}
 
 374                 <article class="l-author__info">
 
 375                   <h3><a href="{{ author.get_absolute_url }}">{{ author.name }}</a></h3>
 
 376                   <div class="l-article__overlay" data-max-height="327">
 
 377                     {{ author.description|safe }}
 
 379                   <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Czytaj więcej" data-action="Zwiń tekst">Czytaj więcej</button>
 
 384             {% choose_cites book 3 as cites %}
 
 387                 <div class="l-author__quotes">
 
 388                   <div class="l-author__quotes__slider">
 
 389                     {% for fragment in cites %}
 
 390                       <a class="l-author__quotes__slider__item" href="{{ fragment.get_absolute_url }}">
 
 393                           {{ fragment.short_text|safe }}
 
 395                         <p>{{ fragment.book.pretty_title }}</p>
 
 406       <section class="l-section">
 
 407         <div class="l-themes__wrapper">
 
 408           {% with book.related_themes as themes %}
 
 410               <h2>Motywy występujące w tym utworze <a href="/katalog/motyw/"><span>Wszystkie motywy</span> <i class="icon icon-arrow-right"></i></a></h2>
 
 411               <div class="l-themes l-article__overlay" data-max-height="80">
 
 413                   {% for item in themes %}
 
 414                     <li><a href="{% url 'book_fragments' book.slug item.slug %}">{{ item }} ({{ item.count}})</a></li>
 
 418               <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Czytaj więcej" data-action="Zwiń tekst">Zobacz więcej</button>
 
 423             {% if book.wiki_link %}
 
 424               <li><a href="{{ book.wiki_link }}">strona utworu w Wikipedii</a></li>
 
 427               <a href="{{ book.xml_url }}">źródłowy plik XML</a>
 
 430               <a target="_blank" href="{% url 'poem_from_book' book.slug %}">miksuj treść utworu</a>
 
 433               <a target="_blank" href="{{ book.get_extra_info_json.about }}">utwór na Platformie Redakcyjnej</a>
 
 444     <section class="l-section">
 
 445       <div class="l-books__wrapper">
 
 446         <div class="l-container">
 
 447           <h2>Czytaj także</h2>
 
 448           <div class="l-books">
 
 449             {% if book.other_versions %}
 
 450               {% for rel in book.other_versions %}
 
 451                 <article class="l-books__item">
 
 452                   <figure class="l-books__item__img">
 
 453                     <a href="{{ rel.get_absolute_url }}">
 
 454                       <img src="{% if rel.cover_clean %}{{ rel.cover_clean.url }}{% endif %}" alt="{{ rel.pretty_title }}">
 
 458                     {% for author in rel.authors %}
 
 459                       <a href="{{ author.get_absolute_url }}">{{ author }}</a>
 
 462                   <h2><a href="{{ rel.get_absolute_url }}">{{ rel.title }}</a></h2>
 
 468             {% related_books_2022 book taken=book.other_versions|length as related_books %}
 
 469             {% for rel in related_books %}
 
 470               <article class="l-books__item">
 
 471                 <figure class="l-books__item__img">
 
 472                   <a href="{{ rel.get_absolute_url }}">
 
 473                     <img src="{% if rel.cover_clean %}{{ rel.cover_clean.url }}{% endif %}" alt="{{ rel.pretty_title }}">
 
 477                   {% for author in rel.authors %}
 
 478                     <a href="{{ author.get_absolute_url }}">{{ author|upper }}</a>
 
 481                 <h2><a href="{{ rel.get_absolute_url }}">{{ rel.title }}</a></h2>
 
 485             <article class="l-books__item l-books__item--link">
 
 486               <a href="/katalog/kolekcje/">i wiele innych książek, wierszy, obrazów, audiobooków…</a>
 
 487               <a href="/katalog/kolekcje/" class="icon-link"><i class="icon icon-all"></i></a>
 
 495     <div class="l-footer">
 
 496       <div class="l-container">
 
 497         <div class="l-footer__row">
 
 498           <a href="#"><img src="{% static '2022/images/FNP-logo.png' %}" alt="FUNDACJA Nowoczesna Polska"></a>
 
 500             <li>ul. Marszałkowska 84/92 lok. 125</li>
 
 501             <li>00-514 Warszawa</li>
 
 504             <li>tel. <a href="#">(22) 621 30 17</a></li>
 
 505             <li>email <a href="#">fundacja@nowoczesnapolska.org.pl</a></li>
 
 508         <div class="l-footer__row">
 
 510             Wolne Lektury to projekt prowadzony przez fundację <a href="#">Nowoczesna Polska</a>. <br>
 
 511             Hosting: <a href="#">ICM</a>.
 
 514             <a href="#"><img src="{% static '2022/images/MKiDN.png' %}" alt="MKiDN"></a>
 
 517             Strona biblioteki Wolne Lektury powstała dzięki dofinansowaniu ze środków Ministra <a href="#">Kultury i Dziedzictwa Narodowego</a>
 
 518             pochodzących z <a href="#">Funduszu Promocji Kultury</a> – państwowego funduszu celowego.
 
 524     <script src="{% static '2022/scripts/vendor.js' %}"></script>
 
 525     <script src="{% static '2021/scripts/main.js' %}"></script>
 
 527     {% javascript '2022' %}
 
 528       {% javascript '2022_player' %}
 
 529         <!-- Hotjar Tracking Code for https://wolnelektury.pl/ -->
 
 531          (function(h,o,t,j,a,r){
 
 532              h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
 
 533              h._hjSettings={hjid:2661024,hjsv:6};
 
 534              a=o.getElementsByTagName('head')[0];
 
 535              r=o.createElement('script');r.async=1;
 
 536              r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
 
 538          })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');