1 {% extends "base/base.html" %}
3 {% load pagination_tags %}
4 {% load inline_tag_list from catalogue_tags %}
5 {% load book_searched from search_tags %}
6 {% load set_get_parameter %}
8 {% block titleextra %}{% trans "Search" %}{% endblock %}
10 {% block bodyid %}tagged-object-list{% endblock %}
14 <h1>{% trans "Search" %}</h1>
16 <div class="white-box">
18 <p class="search-filter">
19 <strong>format:</strong>
20 {% if not set.format %}<em>dowolny</em>{% else %}<a href="{% set_get_parameter format='' %}">dowolny</a>{% endif %}
21 {% if set.format == "tekst" %}<em>tekst</em>{% else %}<a href="{% set_get_parameter format='tekst' %}">tekst</a>{% endif %}
22 {% if set.format == "audio" %}<em>audiobook</em>{% else %}<a href="{% set_get_parameter format='audio' %}">audiobook</a>{% endif %}
23 {% if set.format == "synchro" %}<em>DAISY</em>{% else %}<a href="{% set_get_parameter format='synchro' %}">DAISY</a>{% endif %}
24 {% if set.format == "obraz" %}<em>obraz</em>{% else %}<a href="{% set_get_parameter format='obraz' %}">obraz</a>{% endif %}
27 <p class="search-filter">
28 <strong>{% trans "language" %}: </strong>
29 {% if not set.lang %}<em>dowolny</em>{% else %}<a href="{% set_get_parameter lang='' %}">dowolny</a>{% endif %}
30 {% if set.lang == "pol" %}<em>polski</em>{% else %}<a href="{% set_get_parameter lang='pol' %}">polski</a>{% endif %}
31 {% if set.lang == "eng" %}<em>angielski</em>{% else %}<a href="{% set_get_parameter lang='eng' %}">angielski</a>{% endif %}
32 {% if set.lang == "fre" %}<em>francuski</em>{% else %}<a href="{% set_get_parameter lang='fre' %}">francuski</a>{% endif %}
33 {% if set.lang == "ger" %}<em>niemiecki</em>{% else %}<a href="{% set_get_parameter lang='ger' %}">niemiecki</a>{% endif %}
34 {% if set.lang == "lit" %}<em>litewski</em>{% else %}<a href="{% set_get_parameter lang='lit' %}">litewski</a>{% endif %}
38 <p class="search-filter">
39 <strong>{% trans "epoch" %}: </strong>
40 {% if not set.epoch %}<em>dowolna</em>{% else %}<a href="{% set_get_parameter epoch='' %}">dowolna</a>{% endif %}
42 {% for tag in tags.epoch %}
43 {% if set.epoch == tag.slug %}
44 <em>{{ tag.name }}</em>
46 <a href="{% set_get_parameter epoch=tag.slug %}">
52 <p class="search-filter">
53 <strong>{% trans "kind" %}: </strong>
54 {% if not set.kind %}<em>dowolny</em>{% else %}<a href="{% set_get_parameter kind='' %}">dowolny</a>{% endif %}
55 {% for tag in tags.kind %}
56 {% if set.kind == tag.slug %}
57 <em>{{ tag.name }}</em>
59 <a href="{% set_get_parameter kind=tag.slug %}">
67 <p class="search-filter">
68 <strong>{% trans "genre" %}: </strong>
69 {% if not set.genre %}<em>dowolny</em>{% else %}<a href="{% set_get_parameter genre='' %}">dowolny</a>{% endif %}
70 {% for tag in tags.genre %}
71 {% if set.genre == tag.slug %}
72 <em>{{ tag.name }}</em>
74 <a href="{% set_get_parameter genre=tag.slug %}">
84 <span class="did_you_mean">{% trans "Did you mean" %}
85 <a href="{% url 'search' %}?q={{did_you_mean|urlencode}}">{{did_you_mean|lower}}</a>?</span>
87 <div class="top-tag-list">
90 {% for author in pd_authors %}
92 {% include "pdcounter/pd_author_box.html" %}
101 <ul class="work-list">
103 <h1>{% trans "Books" %}</h1>
105 {% for result in books %}
106 <li class="Book-item">
107 <div class="search-result">
108 {% book_searched result %}
116 <h1>{% trans "Art" %}</h1>
117 <ul class="work-list">
118 {% for result in pictures %}
119 <li class="Picture-item">
120 <div class="search-result">
121 {% with result.picture as picture %}
122 {% include "picture/picture_searched.html" %}