1 {% extends "base.html" %}
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 %}
8 {% block titleextra %}{% trans "Search" %}{% endblock %}
10 {% block bodyid %}tagged-object-list{% endblock %}
14 <span class="did_you_mean">{% trans "Did you mean" %} <a href="{% url 'search' %}?q={{did_you_mean|urlencode}}">{{did_you_mean|lower}}</a>?</span>
16 <!-- tu pójdą trafienia w tagi: Autorzy - z description oraz motywy i rodzaje -->
17 <div class="inline-tag-lists top-tag-list">
20 <h2>{% trans "Authors" %}:</h2>
21 {% for tag in tags.author %}
22 <a class="tag-box" href="{{ tag.get_absolute_url }}">
23 {% ssi_include "catalogue_tag_box" pk=tag.pk %}
30 <h2>{% trans "Kinds" %}:</h2>
31 {% for tag in tags.kind %}
32 <a class="tag-box" href="{{ tag.get_absolute_url }}">
33 {% ssi_include "catalogue_tag_box" pk=tag.pk %}
40 <h2>{% trans "Genres" %}:</h2>
41 {% for tag in tags.genre %}
42 <a class="tag-box" href="{{ tag.get_absolute_url }}">
43 {% ssi_include "catalogue_tag_box" pk=tag.pk %}
49 <div class="inline-tag-list">
50 <h2>{% trans "Epochs" %}:</h2>
51 {% for tag in tags.epoch %}
52 <a class="tag-box" href="{{ tag.get_absolute_url }}">
53 {% ssi_include "catalogue_tag_box" pk=tag.pk %}
60 {% if results.title %}
61 <div class="book-list-header">
62 <div class="book-box-inner">
63 <p>{% trans "Results by title" %}</p>
67 <ol class="work-list">
68 {% for result in results.title %}<li class="Book-item">
69 {% ssi_include 'catalogue_book_short' pk=result.book.pk %}
75 {% if results.author %}
76 <div class="book-list-header">
77 <div class="book-box-inner">
78 <p>{% trans "Results by authors" %}</p>
82 <ol class="work-list">
83 {% for author in results.author %}<li class="Book-item">{% ssi_include 'catalogue_book_short' pk=author.book.pk %}</li>{% endfor %}
88 {% if results.translator %}
89 <div class="book-list-header">
90 <div class="book-box-inner">
91 <p>{% trans "Results by translators" %}</p>
95 <ol class="work-list">
96 {% for translator in results.translator %}<li class="Book-item">{% ssi_include 'catalogue_book_short' pk=translator.book.pk %}</li>{% endfor %}
101 {% if results.content %}
102 <div class="book-list-header">
103 <div class="book-box-inner">
104 <p>{% trans "Results in text" %}</p>
108 <ol class="work-list">
109 {% for result in results.content %}
110 <li class="Book-item">
111 {% book_searched result %}
118 {% if results.other %}
119 <div class="book-list-header">
120 <div class="book-box-inner">
121 <p>{% trans "Other results" %}</p>
125 <ol class="work-list">
126 {% for result in results.other %}
127 <li class="Book-item">
128 {% book_searched result %}