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 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" %}
15 <a href="{% url 'search' %}?q={{did_you_mean|urlencode}}">{{did_you_mean|lower}}</a>?</span>
17 <!-- tu pójdą trafienia w tagi: Autorzy - z description oraz motywy i rodzaje -->
18 <div class="inline-tag-lists top-tag-list">
21 <h2>{% trans "Authors" %}:</h2>
22 {% for tag in tags.author %}
23 <a class="tag-box" href="{{ tag.get_absolute_url }}">
24 {% ssi_include "catalogue_tag_box" pk=tag.pk %}
31 <h2>{% trans "Kinds" %}:</h2>
32 {% for tag in tags.kind %}
33 <a class="tag-box" href="{{ tag.get_absolute_url }}">
34 {% ssi_include "catalogue_tag_box" pk=tag.pk %}
41 <h2>{% trans "Genres" %}:</h2>
42 {% for tag in tags.genre %}
43 <a class="tag-box" href="{{ tag.get_absolute_url }}">
44 {% ssi_include "catalogue_tag_box" pk=tag.pk %}
50 <div class="inline-tag-list">
51 <h2>{% trans "Epochs" %}:</h2>
52 {% for tag in tags.epoch %}
53 <a class="tag-box" href="{{ tag.get_absolute_url }}">
54 {% ssi_include "catalogue_tag_box" pk=tag.pk %}
61 {% if results.title %}
62 <div class="book-list-header">
63 <div class="book-box-inner">
64 <p>{% trans "Results by title" %}</p>
68 <ol class="work-list">
69 {% for result in results.title %}
70 <li class="Book-item">
71 {% ssi_include 'catalogue_book_short' pk=result.book.pk %}
78 {% if results.author %}
79 <div class="book-list-header">
80 <div class="book-box-inner">
81 <p>{% trans "Results by authors" %}</p>
85 <ol class="work-list">
86 {% for author in results.author %}
87 <li class="Book-item">{% ssi_include 'catalogue_book_short' pk=author.book.pk %}</li>
93 {% if results.translator %}
94 <div class="book-list-header">
95 <div class="book-box-inner">
96 <p>{% trans "Results by translators" %}</p>
100 <ol class="work-list">
101 {% for translator in results.translator %}
102 <li class="Book-item">{% ssi_include 'catalogue_book_short' pk=translator.book.pk %}</li>
108 {% if results.content %}
109 <div class="book-list-header">
110 <div class="book-box-inner">
111 <p>{% trans "Results in text" %}</p>
115 <ol class="work-list">
116 {% for result in results.content %}
117 <li class="Book-item">
118 {% book_searched result %}
125 {% if results.other %}
126 <div class="book-list-header">
127 <div class="book-box-inner">
128 <p>{% trans "Other results" %}</p>
132 <ol class="work-list">
133 {% for result in results.other %}
134 <li class="Book-item">
135 {% book_searched result %}