#8 tagged object list for audiobooks
[wolnelektury.git] / src / catalogue / templates / catalogue / tagged_object_list.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load catalogue_tags switch_tag social_tags %}
4 {% load ssi_include from ssify %}
5
6 {% block titleextra %}{% if tags %}{% title_from_tags tags %}{% elif list_type == 'gallery' %}{% trans "Gallery" %}{% elif list_type == 'audiobooks' %}{% trans "Audiobooks" %}{% else %}{% trans "Literature" %}{% endif %}{% endblock %}
7
8 {% block bodyid %}tagged-object-list{% endblock %}
9
10 {% block body %}
11 <div class="tabbed-filter">
12     <h1>{% if tags %}
13         {% html_title_from_tags tags %}
14         {% elif list_type == 'gallery' %}{% trans "Gallery" %}{% elif list_type == 'audiobooks' %}{% trans "Audiobooks" %}{% else %}{% trans "Literature" %}
15         {% endif %}
16     </h1>
17
18     <div class="tabs">
19         <a class="tab white-box" data-id="authors">{% trans "Authors" %}</a>
20         <a class="tab white-box" data-id="epochs">{% trans "Epochs" %}</a>
21         <a class="tab white-box" data-id="genres">{% trans "Genres" %}</a>
22         <a class="tab white-box" data-id="kinds">{% trans "Kinds" %}</a>
23         {% if theme_is_set %}
24             <a class="tab white-box" data-id="themes">{% trans "Themes" %}</a>
25         {% endif %}
26     </div>
27 </div>
28
29 <div class="tabbed-filter-contents">
30     <div id="authors" class="white-box normal-text tab-content">
31         {% inline_tag_list categories.author tags 'author' list_type=list_type %}
32     </div>
33     <div id="epochs" class="white-box normal-text tab-content">
34         {% inline_tag_list categories.epoch tags 'epoch' list_type=list_type %}
35     </div>
36     <div id="genres" class="white-box normal-text tab-content">
37         {% inline_tag_list categories.genre tags 'genre' list_type=list_type %}
38     </div>
39     <div id="kinds" class="white-box normal-text tab-content">
40         {% inline_tag_list categories.kind tags 'kind' list_type=list_type %}
41     </div>
42     {% if theme_is_set %}
43         <div id="themes" class="white-box normal-text tab-content">
44             {% inline_tag_list categories.theme tags 'theme' list_type=list_type %}
45         </div>
46     {% endif %}
47 </div>
48
49 {% if theme_is_set %}
50     {% work_list object_list %}
51 {% else %}
52     <div id="books-list">
53         {% if object_list %}
54             {% work_list best %}
55             {% if tags %}
56                 <h2>{% trans "All matching works" %}</h2>
57             {% else %}
58                 {% if list_type == 'audiobooks' %}
59                     <h2>{% trans "Listing of all audiobooks" %}</h2>
60                 {% else %}
61                     <h2>{% trans "All works" %}</h2>
62                  {% endif %}
63             {% endif %}
64             {% plain_list object_list by_author=True list_type=list_type %}
65             {% if daisy %}
66                 <h2>{% trans "DAISY files" %}</h2>
67                 {% plain_list daisy by_author=True %}
68             {% endif %}
69         {% else %}
70             {% trans "Sorry! Search cirteria did not match any resources." %}
71             {% include "info/join_us.html" %}
72         {% endif %}
73     </div>
74
75     {% if categories.theme and list_type != 'audiobooks' %}
76         <h2>{% trans "Motifs and themes" %}</h2>
77         {% plain_list categories.theme choice=tags list_type=list_type %}
78     {% endif %}
79
80 {% endif %}
81
82 {% for tag in tags %}
83     {% if tag.category != 'set' %}
84         <h2>{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}</h2>
85         <div class="white-box">
86             {% if tag.has_description %}
87                 {{ tag.description|safe }}
88             {% else %}
89                 <em>{% trans "No description." %}</em>
90             {% endif %}
91         </div>
92
93         {% if tag.gazeta_link %}
94             <div class="white-box"><a href="{{ tag.gazeta_link }}">
95                 {{ tag }} {% trans "in Lektury.Gazeta.pl" %}
96             </a></div>
97         {% endif %}
98         {% if tag.wiki_link %}
99             <div class="white-box">
100             <a href="{{ tag.wiki_link }}">
101                 {{ tag }} {% trans "in Wikipedia" %}
102             </a></div>
103         {% endif %}
104         {% if tag.culturepl_link %}
105             <div class="white-box">
106             <a href="{{ tag.culturepl_link }}">
107                 {{ tag }} {% trans "in Culture.pl" %}
108             </a></div>
109         {% endif %}
110     {% endif %}
111 {% endfor %}
112
113 {% endblock %}