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' %}">tekst</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 %}
41 {% for tag in tags.epoch %}
42 {% if set.epoch == tag.slug %}
43 <em>{{ tag.name }}</em>
45 <a href="{% set_get_parameter epoch=tag.slug %}">
51 <p class="search-filter">
52 <strong>{% trans "kind" %}: </strong>
53 {% if not set.kind %}<em>dowolny</em>{% else %}<a href="{% set_get_parameter kind='' %}">dowolny</a>{% endif %}
54 {% for tag in tags.kind %}
55 {% if set.kind == tag.slug %}
56 <em>{{ tag.name }}</em>
58 <a href="{% set_get_parameter kind=tag.slug %}">
66 <p class="search-filter">
67 <strong>{% trans "genre" %}: </strong>
68 {% if not set.genre %}<em>dowolny</em>{% else %}<a href="{% set_get_parameter genre='' %}">dowolny</a>{% endif %}
69 {% for tag in tags.genre %}
70 {% if set.genre == tag.slug %}
71 <em>{{ tag.name }}</em>
73 <a href="{% set_get_parameter genre=tag.slug %}">
83 <span class="did_you_mean">{% trans "Did you mean" %}
84 <a href="{% url 'search' %}?q={{did_you_mean|urlencode}}">{{did_you_mean|lower}}</a>?</span>
86 <div class="top-tag-list">
89 {% for author in pd_authors %}
91 {% include "pdcounter/pd_author_box.html" %}
100 <ul class="work-list">
102 <h1>{% trans "Books" %}</h1>
104 {% for result in books %}
105 <li class="Book-item">
106 <div class="search-result">
107 {% book_searched result %}
115 <h1>{% trans "Art" %}</h1>
116 <ul class="work-list">
117 {% for result in pictures %}
118 <li class="Picture-item">
119 <div class="search-result">
120 {% with result.picture as picture %}
121 {% include "picture/picture_searched.html" %}