X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/462d84ea8718cd3ca1112fe11c2120a0f20f475f..94924a2ca60f4f045c739cdb19d859cdcf8959af:/wolnelektury/templates/catalogue/search_multiple_hits.html diff --git a/wolnelektury/templates/catalogue/search_multiple_hits.html b/wolnelektury/templates/catalogue/search_multiple_hits.html index 0a7dc1cf1..70988f395 100644 --- a/wolnelektury/templates/catalogue/search_multiple_hits.html +++ b/wolnelektury/templates/catalogue/search_multiple_hits.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% load i18n %} -{% load search_tags pagination_tags %} +{% load catalogue_tags search_tags pagination_tags %} {% block titleextra %}{% trans "Search" %}{% endblock %} @@ -8,11 +8,46 @@ {% block body %} {% if did_you_mean %} - {% trans "Dod you mean" %} {{did_you_mean|lower}}? + {% trans "Did you mean" %} {{did_you_mean|lower}}? {% endif %} +
+ {% if tags.author %} +
+
{% trans "Authors" %}:
+
+ {% inline_tag_list tags.author %} +
+
+ {% endif %} + {% if tags.kind %} +
+
{% trans "Kinds" %}:
+
+ {% inline_tag_list tags.kind %} +
+
+ {% endif %} + {% if tags.genre %} +
+
{% trans "Genres" %}:
+
+ {% inline_tag_list tags.genre %} +
+
+ {% endif %} + {% if tags.epoch %} +
+
{% trans "Epochs" %}:
+
+ {% inline_tag_list tags.epoch %} +
+
+ {% endif %} +
+ {% if results.author %}
@@ -21,11 +56,7 @@
    - {% for author in results.author %} -
  1. - {{author.book.short_html}} -
  2. - {% endfor %} + {% for author in results.author %}
  3. {% book_short author.book %}
  4. {% endfor %}
{% endif %} @@ -38,17 +69,14 @@
    - {% for result in results.title %} -
  1. - {{result.book.short_html}} -
  2. - {% endfor %} + {% for result in results.title %}
  3. + {% book_short result.book %} +
  4. {% endfor %}
{% endif %} {% if results.content %} - {% for result in results.content %}

{% trans "Results in text" %}

@@ -56,18 +84,16 @@
    - {% for result in results.title %} -
  1. + {% for result in results.content %} +
  2. {% book_searched result %}
  3. {% endfor %}
- {% endfor %} {% endif %} {% if results.other %} - {% for result in results.other %}

{% trans "Other results" %}

@@ -76,16 +102,14 @@
    {% for result in results.other %} -
  1. +
  2. {% book_searched result %}
  3. {% endfor %}
- {% endfor %} {% endif %} - {% endblock %}