1 {% extends "base.html" %}
3 {% load catalogue_tags pagination_tags %}
5 {% block title %}{{ book.title }} {% trans "on WolneLektury.pl" %}{% endblock %}
7 {% block bodyid %}book-detail{% endblock %}
10 <h1>{% book_title book %}</h1>
11 <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
12 <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>
16 <div id='breadcrumbs'>
17 {% if categories.author %}
18 {% for tag in categories.author %}
19 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
23 {% for parent in parents %}
24 <a href="{{ parent.get_absolute_url }}">{{ parent }}</a> »
28 {% if extra_info.license %}
29 <p>{% trans "Work is licensed under " %} <a href="{{ extra_info.license }}">{{ extra_info.license_description }}</a>.</p>
31 <p>{% trans "Based on" %}: {{ extra_info.source_name }}</p>
32 {% if book.has_description %}
33 <div id="description">
34 <div id='description-long'>{{ book.description|safe }}</div>
35 <div id='description-short'>{{ book.description|safe|truncatewords_html:30 }}</div>
37 <div id="toggle-description"><p></p></div>
40 <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>
41 <div class="clearboth"></div>
43 {% if book.has_html_file %}
44 <a href="{% url book_text book.slug %}">{% trans "Read online" %}</a>
46 {% if book.has_pdf_file %}
47 <a href="{{ book.pdf_file.url }}">{% trans "Download PDF" %}</a>
49 {% if book.root_ancestor.epub_file %}
50 <a href="{{ book.root_ancestor.epub_file.url }}">{% trans "Download EPUB" %}</a>
52 {% if book.has_odt_file %}
55 {% for media in book.get_odt %}
56 <li><a href="{{ media.file.url }}">{{ media.name }}</a></li>
60 {% if book.has_txt_file %}
61 <a href="{{ book.txt_file.url }}">{% trans "Download TXT" %}</a>
63 {% if book.has_ogg_file %}
66 {% for media in book.get_ogg %}
67 <li><a href="{{ media.file.url }}">{{ media.name }}</a></li>
71 {% if book.has_daisy_file %}
74 {% for media in book.get_daisy %}
75 <li><a href="{{ media.file.url }}">{{ media.name }}</a></li>
79 {% if book.has_mp3_file %}
81 <a href="http://czytamysluchajac.pl/" id="czytamysluchajac-logo"><img src="{{ STATIC_URL }}img/czytamysluchajac-logo-small.png" /></a>
83 {% for media in book.get_mp3 %}
84 <li><a href="{{ media.file.url }}">{{ media.name }}</a></li>
85 <li class="mp3Player">
86 <object type="application/x-shockwave-flash" style="margin-top: 0.5em" data="{{ STATIC_URL }}player.swf" width="226" height="20">
87 <param name="movie" value="{{ STATIC_URL }}player.swf" />
88 <param name="bgcolor" value="#ffffff" />
89 <param name="FlashVars" value="mp3={{ media.file.url }} &width=226&showvolume=1&bgcolor1=eeeeee&bgcolor2=eeeeee&buttoncolor=666666" />
98 {% if book_children %}
99 {% autopaginate book_children 10 %}
100 <div id="book-children">
102 {% for book in book_children %}
103 <li>{{ book.short_html }}</li>
114 <h2>{% trans "Details" %}</h2>
118 {% trans "Author" %}:
119 {% for tag in categories.author %}
120 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
125 {% for tag in categories.epoch %}
126 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
131 {% for tag in categories.kind %}
132 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
137 {% for tag in categories.genre %}
138 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
142 <a href="{{ book.xml_file.url }}">{% trans "View XML source" %}</a>
145 <h2>{% trans "Other resources" %}</h2>
147 <li><a href="{{ extra_info.about }}">{% trans "Book on project's wiki" %}</a></li>
148 {% if extra_info.source_url %}
149 <li><a href="{{ extra_info.source_url }}">{% trans "Source of the book" %}</a></li>
151 {% if book.gazeta_link %}
152 <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
154 {% if book.wiki_link %}
155 <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
159 <div id="themes-list">
160 <h2>{% trans "Work's themes " %}</h2>
162 {% for theme in book_themes %}
163 <li><a href="{% url book_fragments book.slug,theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
167 <div class="clearboth"></div>
169 <div id="set-window">
170 <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
172 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>