Fixes #4001: TOC contains parent books, and add links to previous and next book.
[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
7 {% block titleextra %}{% trans "Search" %}{% endblock %}
8
9 {% block bodyid %}tagged-object-list{% endblock %}
10
11 {% block body %}
12   {% if did_you_mean %}
13     <span class="did_you_mean">{% trans "Did you mean" %}
14       <a href="{% url 'search' %}?q={{did_you_mean|urlencode}}">{{did_you_mean|lower}}</a>?</span>
15   {% endif %}
16   <div class="top-tag-list">
17     {% if pd_authors %}
18       <div>
19         {% for author in pd_authors %}
20           <div class="tag-box">
21             {% include "pdcounter/pd_author_box.html" %}
22           </div>
23         {% endfor %}
24       </div>
25     {% endif %}
26   </div>
27
28   <div>
29     {% if books %}
30       <ul class="work-list">
31         {% if pictures %}
32           <h1>{% trans "Books" %}</h1>
33         {% endif %}
34         {% for result in books %}
35           <li class="Book-item">
36             <div class="search-result">
37               {% book_searched result %}
38             </div>
39           </li>
40         {% endfor %}
41       </ul>
42     {% endif %}
43
44     {% if pictures %}
45       <h1>{% trans "Pictures" %}</h1>
46       <ul class="work-list">
47         {% for result in pictures %}
48           <li class="Picture-item">
49             <div class="search-result">
50               {% with result.picture as picture %}
51                 {% include "picture/picture_searched.html" %}
52               {% endwith %}
53             </div>
54           </li>
55         {% endfor %}
56       </ul>
57     {% endif %}
58   </div>
59 {% endblock %}