1 {% extends "base.html" %}
3 {% load catalogue_tags pagination_tags %}
5 {% block title %}{{ book.title }} {% trans "on WolneLektury.pl" %}{% endblock %}
7 {% block metadescription %}{% book_title book %}. {{ block.super }}{% endblock %}
9 {% block bodyid %}book-detail{% endblock %}
12 <h1>{% book_title book %}</h1>
13 <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
14 <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to main page" %}</a></p>
18 <div id='breadcrumbs'>
19 {% if categories.author %}
20 {% for tag in categories.author %}
21 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
25 {% for parent in parents %}
26 <a href="{{ parent.get_absolute_url }}">{{ parent }}</a> »
30 {% if extra_info.license %}
31 <p>{% trans "Work is licensed under " %} <a href="{{ extra_info.license }}">{{ extra_info.license_description }}</a>.</p>
33 <p>{% trans "Based on" %}: {{ extra_info.source_name }}</p>
34 {% if book.has_description %}
35 <div id="description">
36 <div id='description-long'>{{ book.description|safe }}</div>
37 <div id='description-short'>{{ book.description|safe|truncatewords_html:30 }}</div>
39 <div id="toggle-description"><p></p></div>
42 <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>
43 <div class="clearboth"></div>
45 {% if book.has_html_file %}
46 <a class="online" href="{% url book_text book.slug %}">{% trans "Read online" %}</a>
48 <div class="download">
49 {% if book.pdf_file %}
50 <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>
52 {% if book.root_ancestor.epub_file %}
53 <a href="{{ book.root_ancestor.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>
55 {% if book.mobi_file %}
56 <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>
58 {% if book.txt_file %}
59 <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>
61 {% for media in book.get_odt %}
62 <a href="{{ media.file.url }}"><img src="{{ STATIC_URL }}img/odt.png" title="{% trans "Download ODT" %} – {% trans "for reading" %} {% trans "and editing using" %} OpenOffice.org: {{ media.name }}" alt="{% trans "Download ODT" %}" /></a>
65 {% if book.pdf_file %}
66 <br/><a href="#" id="custom-pdf-link">{% trans "Dowload customized PDF" %}</a>.
68 <div style="display: none" class="custom-pdf">
69 <form action="{% url catalogue.views.download_custom_pdf book.slug %}" method="GET">
70 {{custom_pdf_form.as_p}}
71 <input type="submit" value="{% trans "Download" %}"/>
75 {% if book.has_mp3_file or book.has_ogg_file or book.has_daisy_file %}
77 <span class="desc">{% trans "Audiobooks" %}:</span>
78 <span class="audiotabs">
79 {% if book.has_mp3_file %}<span class="active" data-format="mp3">MP3</span>{% endif %}
80 {% if book.has_ogg_file %}<span data-format="ogg">Ogg Vorbis</span>{% endif %}
81 {% if book.has_daisy_file %}<span data-format="daisy">DAISY</span>{% endif %}
84 <div class="audiobooks">
85 <img src="{{ STATIC_URL }}img/speaker.png" id="speaker" alt="Speaker icon"/>
86 {% if book.has_mp3_file %}
87 <ul class="audiobook-list" id="mp3-files">
88 {% for media in book.get_mp3 %}
89 <li class="mp3Player">
90 <a href="{{ media.file.url }}">{{ media.name }}</a><br/>
91 {% trans "Artist" %}: {{ media.get_extra_info_value.artist_name }}<br/>
92 {% trans "Director"%}: {{ media.get_extra_info_value.director_name }}<br/>
93 <object type="application/x-shockwave-flash" style="margin-top: 0.5em" data="{{ STATIC_URL }}player.swf" width="226" height="20">
94 <param name="movie" value="{{ STATIC_URL }}player.swf" />
95 <param name="bgcolor" value="#ffffff" />
96 <param name="FlashVars" value="mp3={{ media.file.url }}&width=226&showvolume=1&bgcolor1=eeeeee&bgcolor2=eeeeee&buttoncolor=666666" />
104 {% if book.has_ogg_file %}
105 <ul class="audiobook-list" id="ogg-files">
106 {% for media in book.get_ogg %}
107 <li><a href="{{ media.file.url }}">{{ media.name }}</a></li>
111 {% if book.has_daisy_file %}
112 <ul class="audiobook-list" id="daisy-files">
113 {% for media in book.get_daisy %}
114 <li><a href="{{ media.file.url }}">{{ media.name }}</a></li>
118 </div> <!-- /audiobooks -->
119 {% if projects|length > 1 %}
120 <p>{% trans "Audiobooks were prepared as a part of the projects:" %}</p>
122 {% for cs, fb in projects %}
125 {% blocktrans %}{{ cs }}, funded by {{ fb }}{% endblocktrans %}
134 {% with projects.0.0 as cs %}
135 {% with projects.0.1 as fb %}
137 {% blocktrans %}Audiobooks were prepared as a part of the {{ cs }} project funded by {{ fb }}.{% endblocktrans %}
139 {% blocktrans %}Audiobooks were prepared as a part of the {{ cs }} project.{% endblocktrans %}
149 {% if book_children %}
150 {% autopaginate book_children 10 %}
151 <div id="book-children">
153 {% for book in book_children %}
154 <li>{{ book.short_html }}</li>
165 <h2>{% trans "Details" %}</h2>
168 {% trans "Author" %}:
169 {% for tag in categories.author %}
170 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
175 {% for tag in categories.epoch %}
176 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
181 {% for tag in categories.kind %}
182 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
187 {% for tag in categories.genre %}
188 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
192 <h2>{% trans "Other resources" %}</h2>
194 {% if extra_info.source_url %}
195 <li><a href="{{ extra_info.source_url }}">{% trans "Source of the book" %}</a></li>
197 {% if extra_info.about and not hide_about %}
198 <li><a href="{{ extra_info.about }}">{% trans "Book on the Editor's Platform" %}</a></li>
200 {% if book.gazeta_link %}
201 <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
203 {% if book.wiki_link %}
204 <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
207 <p><a href="{{ book.xml_file.url }}">{% trans "View XML source" %}</a></p>
208 <p><a href="{% url poem_from_book book.slug %}">Miksuj ten utwór</a></p>
210 <div id="themes-list">
211 <h2>{% trans "Work's themes " %}</h2>
213 {% for theme in book_themes %}
214 <li><a href="{% url book_fragments book.slug,theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
218 <div class="clearboth"></div>
220 <div id="set-window">
221 <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
223 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>