1 {% extends "base.html" %}
3 {% load catalogue_tags pagination_tags %}
5 {% block titleextra %}{{ book.title }}{% endblock %}
7 {% block metadescription %}{% book_title book %}. {{ block.super }}{% endblock %}
9 {% block bodyid %}book-detail{% endblock %}
12 <h1>{% book_title book %}</h1>
15 <div id='breadcrumbs'>
16 {% if categories.author %}
17 {% for tag in categories.author %}
18 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
22 {% for parent in parents %}
23 <a href="{{ parent.get_absolute_url }}">{{ parent }}</a> »
27 {% if extra_info.license %}
28 <p>{% trans "Work is licensed under " %} <a href="{{ extra_info.license }}">{{ extra_info.license_description }}</a>.</p>
30 <p>{% trans "Based on" %}: {{ extra_info.source_name }}</p>
31 {% if book.has_description %}
32 <div id="description">
33 <div id='description-long'>{{ book.description|safe }}</div>
34 <div id='description-short'>{{ book.description|safe|truncatewords_html:30 }}</div>
36 <div id="toggle-description"><p></p></div>
39 <p class="change-sets">{% trans "Put a book" %} <span><a href="{% url catalogue.views.book_sets book.slug %}" class="jqm-trigger">{% trans "on the shelf!" %}</a></span></p>
40 <div class="clearboth"></div>
42 {% if book.has_html_file %}
43 <a class="online" href="{% url book_text book.slug %}">{% trans "Read online" %}</a>
45 <div class="download">
46 {% if book.pdf_file %}
47 <a href="{{ book.pdf_file.url }}"><img src="{{ STATIC_URL }}img/pdf.png" title="{% trans "Download PDF" %} – {% trans "for reading" %} {% trans "and printing using" %} Adobe Reader" %}" alt="{% trans "Download PDF" %}" /></a>
49 {% if book.epub_file %}
50 <a href="{{ book.epub_file.url }}"><img src="{{ STATIC_URL }}img/epub.png" title="{% trans "Download EPUB" %} – {% trans "for reading" %} {% trans "on mobile devices" %}" alt="{% trans "Download EPUB" %}" /></a>
52 {% if book.mobi_file %}
53 <a href="{{ book.mobi_file.url }}"><img src="{{ STATIC_URL }}img/mobi.png" title="{% trans "Download MOBI" %} – {% trans "for reading" %} {% trans "on mobile devices" %}" alt="{% trans "Download MOBI" %}" /></a>
55 {% if book.txt_file %}
56 <a href="{{ book.txt_file.url }}"><img src="{{ STATIC_URL }}img/txt.png" title="{% trans "Download TXT" %} – {% trans "for reading" %} {% trans "on small displays, for example mobile phones" %}" alt="{% trans "Download TXT" %}" /></a>
59 {% if book.pdf_file %}
60 <br/><a href="#" id="custom-pdf-link">{% trans "Dowload customized PDF" %}</a>.
62 <div style="display: none" class="custom-pdf">
63 <form action="{% url catalogue.views.download_custom_pdf book.slug %}" method="GET">
64 {{custom_pdf_form.as_p}}
65 <input type="submit" value="{% trans "Download" %}"/>
72 {% if book_children %}
73 {% autopaginate book_children 10 %}
74 <div id="book-children">
76 {% for book in book_children %}
77 <li>{{ book.short_html }}</li>
88 <h2>{% trans "Details" %}</h2>
92 {% for tag in categories.author %}
93 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
98 {% for tag in categories.epoch %}
99 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
104 {% for tag in categories.kind %}
105 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
110 {% for tag in categories.genre %}
111 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
115 <h2>{% trans "Other resources" %}</h2>
117 {% if extra_info.source_url %}
118 <li><a href="{{ extra_info.source_url }}">{% trans "Source of the book" %}</a></li>
120 {% if extra_info.about and not hide_about %}
121 <li><a href="{{ extra_info.about }}">{% trans "Book on the Editor's Platform" %}</a></li>
123 {% if book.gazeta_link %}
124 <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
126 {% if book.wiki_link %}
127 <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
130 <p><a href="{{ book.xml_file.url }}">{% trans "View XML source" %}</a></p>
131 <p><a href="{% url poem_from_book book.slug %}">Miksuj ten utwór</a></p>
133 <div id="themes-list">
134 <h2>{% trans "Work's themes " %}</h2>
136 {% for theme in book_themes %}
137 <li><a href="{% url book_fragments book.slug theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
141 <div class="clearboth"></div>