public domain counter:
[wolnelektury.git] / wolnelektury / templates / catalogue / tagged_object_list.html
1 {% extends "base.html" %}
2 {% load catalogue_tags pagination_tags %}
3
4 {% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %}
5
6 {% block bodyid %}tagged-object-list{% endblock %}
7
8 {% block body %}
9     <h1>{% title_from_tags tags %}</h1>
10     {% breadcrumbs tags %}
11     
12     {% if shelf_is_set and not object_list %}
13     <div id="books-list">
14         <h2>Twoja półka jest pusta</h2>
15         <p>Możesz wrzucić książkę na półkę, wchodząc na stronę danej lektury i klikając na przycisk „Na półkę!”.</p>
16     </div>
17         {% else
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/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                                         Dzieła tego autora objęte są prawem autorskim.
73                                 {% else %}{% comment %} Nie żyje {% endcomment %}
74                     {% if last_tag.in_pd %}
75                             Dzieła tego autora znajdują się w domenie publicznej
76                                                 i niedługo zostaną opublikowane w szkolnej bibliotece
77                                                 internetowej Wolne Lektury. 
78                         {% else %}{% comment %} Nie żyje, ale jeszcze nie w PD {% endcomment %}
79                         <div>
80                                 <p>Dzieła tego autora przejdą do zasobów domeny
81                                                         publicznej i będą mogły być publikowane bez
82                                                         żadnych ograniczeń za:</p>
83                                                         {% include "catalogue/pd_counter.html" %}
84                                                 </div>
85                         {% endif %}
86                 {% endif %}
87                         {% else %}
88                             Nie znaleziono żadnych utworów.
89                         {% endif %}
90             {% include "info/join_us.html" %}
91         {% endif %}
92         {% endwith %}
93         {% paginate %}
94     </div>
95         {% if object_list %}
96         {% comment %} Jeśli nic nie znaleźliśmy, to i po prawej stronie nic nie będzie {% endcomment %}
97     <div id="tags-list">
98         <div id="categories-list">
99             {% if categories.author %}
100                 <h2>Autorzy</h2>
101                 {% tag_list categories.author tags %}
102             {% endif %}
103             {% if categories.kind %}
104                 <h2>Rodzaje</h2>
105                 {% tag_list categories.kind tags %}
106             {% endif %}
107             {% if categories.genre %}
108                 <h2>Gatunki literackie</h2>
109                 {% tag_list categories.genre tags %}
110             {% endif %}
111             {% if categories.epoch %}
112                 <h2>Epoki</h2>
113                 {% tag_list categories.epoch tags %}
114             {% endif %}        
115         </div>
116         <div id="themes-list">
117             {% if categories.theme %}
118                 <h2>Motywy</h2>
119                 {% tag_list categories.theme tags %}
120             {% endif %}
121         </div>
122         <div class="clearboth"></div>
123     </div>
124         {% endif %}
125     {% endif %}
126     <div id="set-window">
127         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
128         <div class="target">
129             <p><img src="/static/img/indicator.gif" alt="*"/> Ładowanie</p>
130         </div>
131     </div>
132 {% endblock %}