b14ab0cc079e5751c0648930e43f83536eec5cce
[wolnelektury.git] / src / catalogue / templates / catalogue / search_multiple_hits.html
1 {% extends "base/base.html" %}
2 {% load i18n %}
3 {% load pagination_tags %}
4 {% load inline_tag_list from catalogue_tags %}
5 {% load book_searched from search_tags %}
6 {% load ssi_include from ssify %}
7
8 {% block titleextra %}{% trans "Search" %}{% endblock %}
9
10 {% block bodyid %}tagged-object-list{% endblock %}
11
12 {% block body %}
13   {% if did_you_mean %}
14     <span class="did_you_mean">{% trans "Did you mean" %}
15       <a href="{% url 'search' %}?q={{did_you_mean|urlencode}}">{{did_you_mean|lower}}</a>?</span>
16   {% endif %}
17   <div class="top-tag-list">
18     {% if pd_authors %}
19       <div>
20         {% for author in pd_authors %}
21           <div class="tag-box">
22             {% include "pdcounter/pd_author_box.html" %}
23           </div>
24         {% endfor %}
25       </div>
26     {% endif %}
27   </div>
28
29   <div>
30     {% if books %}
31       <ul class="work-list">
32         {% if pictures %}
33           <h1>{% trans "Books" %}</h1>
34         {% endif %}
35         {% for result in books %}
36           <li class="Book-item">
37             <div class="search-result">
38               {% book_searched result %}
39             </div>
40           </li>
41         {% endfor %}
42       </ul>
43     {% endif %}
44
45     {% if pictures %}
46       <h1>{% trans "Pictures" %}</h1>
47       <ul class="work-list">
48         {% for result in pictures %}
49           <li class="Picture-item">
50             <div class="search-result">
51               {% with result.picture as picture %}
52                 {% include "picture/picture_searched.html" %}
53               {% endwith %}
54             </div>
55           </li>
56         {% endfor %}
57       </ul>
58     {% endif %}
59   </div>
60 {% endblock %}