More search fixes.
[wolnelektury.git] / wolnelektury / templates / catalogue / tagged_object_list.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load catalogue_tags pagination_tags %}
4
5 {% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %}
6
7 {% block bodyid %}tagged-object-list{% endblock %}
8
9 {% block body %}
10     <h1>{% title_from_tags tags %}</h1>
11     {% breadcrumbs tags %}
12     
13     {% if shelf_is_set and not object_list %}
14     <div id="books-list">
15         <h2>Twoja półka jest pusta</h2>
16         <p>Możesz wrzucić książkę na półkę, wchodząc na stronę danej lektury i klikając na przycisk „Na półkę!”.</p>
17     </div>
18     {% else %}
19     {% autopaginate object_list 10 %}
20     <div id="books-list">
21         {% with tags|last as last_tag %}
22         {% if last_tag.has_description %}
23             <div id="description">
24                 {{ last_tag.description|safe }}
25             </div>
26             <div class="clearboth"></div>
27             <div id="toggle-description"><p>Zwiń opis ▲</p></div>
28         {% endif %}
29         {% if shelf_is_set %}
30             <a id="download-shelf" href="{% url download_shelf last_tag.slug %}">
31                 Pobierz wszystkie książki z tej półki
32             </a>
33             <div id="download-shelf-menu" style="display:none;">
34                 <form action="{% url download_shelf last_tag.slug %}" method="get" accept-charset="utf-8" id="download-formats-form" data-formats-feed="{% url shelf_book_formats last_tag.slug %}">
35                     <p>Wybierz formaty książek, które chcesz pobrać:</p>
36                     <li data-format="pdf"><label for="id_formats_2"><input type="checkbox" name="formats" value="pdf" id="id_formats_2" /> PDF</label> <em><strong>do czytania</strong> i drukowania przy pomocy <a href="http://get.adobe.com/reader/">Adobe Reader</a></em></li>
37                     <li data-format="odt"><label for="id_formats_3"><input type="checkbox" name="formats" value="odt" id="id_formats_3" /> ODT</label> <em><strong>do czytania</strong> i edytowania przy pomocy <a href="http://pl.openoffice.org/">OpenOffice.org</a></em></li>
38                     <li data-format="txt"><label for="id_formats_4"><input type="checkbox" name="formats" value="txt" id="id_formats_4" /> TXT</label> <em><strong>do czytania</strong> na małych ekranach, np. na komórce</em></li>
39                     <li data-format="mp3"><label for="id_formats_0"><input type="checkbox" name="formats" value="mp3" id="id_formats_0" /> MP3</label> <em><strong>do słuchania</strong> w ulubionym odtwarzaczu MP3</em></li>
40                     <li data-format="ogg"><label for="id_formats_1"><input type="checkbox" name="formats" value="ogg" id="id_formats_1" /> Ogg Vorbis</label> <em><strong>do słuchania</strong> &mdash; otwarty format <a href="http://www.vorbis.com/">Fundacji Xiph.Org</a></em></li>
41                     <li id="download-formats-form-submit-li"><label><input type="submit" name="submit" value="Pobierz" id="download-formats-form-submit" disabled="disabled" />&nbsp;<img src="{{ STATIC_URL }}img/indicator.gif" /></label> <span id="updating-formats">Uaktualniam listę formatów książek na półce.</span><span id="formats-updated" style="display:none;">lub <a href="#" id="download-formats-form-cancel">anuluj</a></span></li>
42                     <div class="clearboth"></div>
43                 </form>
44             </div>
45         {% endif %}
46         {% if last_tag.gazeta_link %}
47         <p><a href="{{ last_tag.gazeta_link }}">
48             {% ifequal last_tag.category "author" %}Przeczytaj omówienia utworów autora w serwisie Lektury.Gazeta.pl{% endifequal %}
49             {% ifequal last_tag.category "epoch"  %}Przeczytaj omówienia z epoki {{ last_tag }} w serwisie Lektury.Gazeta.pl{% endifequal %}
50         </a></p>
51         {% endif %}
52         {% if last_tag.wiki_link %}
53         <p><a href="{{ last_tag.wiki_link }}">
54             {% ifequal last_tag.category "author" %}Przeczytaj artykuł o autorze w Wikipedii{% endifequal %}
55             {% ifequal last_tag.category "epoch"  %}Przeczytaj artykuł o epoce {{ last_tag }} w Wikipedii{% endifequal %}
56         </a></p>
57         {% endif %}
58
59         {% if object_list %}
60             <ol>
61             {% for book in object_list %}
62                 <li>
63                     {% if user_is_owner %}
64                         <a href="{% url remove_from_shelf last_tag.slug book.slug %}" class="remove-from-shelf">Usuń</a>
65                     {% endif %}
66                     {{ book.short_html }}</li>
67             {% endfor %}
68             </ol>
69         {% else %}
70                         {% if only_author %}
71                     {% if last_tag.alive %}
72                                         <p>Dzieła tego autora objęte są prawem autorskim.</p>
73                                         <p>Dowiedz się, dlaczego biblioteki internetowe
74                                         nie mogą udostępniać dzieł tego autora.</p>
75                                 {% else %}{% comment %} Nie żyje {% endcomment %}
76                     {% if last_tag.in_pd %}
77                             <p>Dzieła tego autora znajdują się w domenie publicznej
78                                                 i niedługo zostaną opublikowane w szkolnej bibliotece
79                                                 internetowej Wolne Lektury.</p> 
80                         {% else %}{% comment %} Nie żyje, ale jeszcze nie w PD {% endcomment %}
81                         <div>
82                                 <p>Dzieła tego autora przejdą do zasobów domeny
83                                                         publicznej i będą mogły być publikowane bez
84                                                         żadnych ograniczeń za:</p>
85                                                         {% include "catalogue/pd_counter.html" %}
86                             <p>Dowiedz się, dlaczego biblioteki internetowe
87                             nie mogą udostępniać dzieł tego autora.</p>
88                                                 </div>
89                         {% endif %}
90                 {% endif %}
91                         {% else %}
92                             Nie znaleziono żadnych utworów.
93                         {% endif %}
94             {% include "info/join_us.html" %}
95         {% endif %}
96         {% endwith %}
97         {% paginate %}
98     </div>
99         {% if object_list %}
100         {% comment %} Jeśli nic nie znaleźliśmy, to i po prawej stronie nic nie będzie {% endcomment %}
101     <div id="tags-list">
102         <div id="categories-list">
103             {% if categories.author %}
104                 <h2>Autorzy</h2>
105                 {% tag_list categories.author tags %}
106             {% endif %}
107             {% if categories.kind %}
108                 <h2>Rodzaje</h2>
109                 {% tag_list categories.kind tags %}
110             {% endif %}
111             {% if categories.genre %}
112                 <h2>Gatunki literackie</h2>
113                 {% tag_list categories.genre tags %}
114             {% endif %}
115             {% if categories.epoch %}
116                 <h2>Epoki</h2>
117                 {% tag_list categories.epoch tags %}
118             {% endif %}        
119         </div>
120         <div id="themes-list">
121             {% if categories.theme %}
122                 <h2>Motywy</h2>
123                 {% tag_list categories.theme tags %}
124             {% endif %}
125         </div>
126         <div class="clearboth"></div>
127     </div>
128         {% endif %}
129     {% endif %}
130     <div id="set-window">
131         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
132         <div class="target">
133             <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> Ładowanie</p>
134         </div>
135     </div>
136 {% endblock %}