X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3c0e373447323b5e33b273859e790a2054771afa..dbdd1449a656f4c62055926d1531be95c2e6e66b:/src/catalogue/templates/catalogue/search_multiple_hits.html diff --git a/src/catalogue/templates/catalogue/search_multiple_hits.html b/src/catalogue/templates/catalogue/search_multiple_hits.html index 28e3985b9..b3f522b0b 100644 --- a/src/catalogue/templates/catalogue/search_multiple_hits.html +++ b/src/catalogue/templates/catalogue/search_multiple_hits.html @@ -14,128 +14,25 @@ {% trans "Did you mean" %} {{did_you_mean|lower}}? {% endif %} -
- {% if tags.author %} + {% if tags %}
-

{% trans "Authors" %}:

- {% for tag in tags.author %} + {% for tag in tags %} - {% ssi_include "catalogue_tag_box" pk=tag.pk %} - - {% endfor %} -
- {% endif %} - {% if tags.kind %} -
-

{% trans "Kinds" %}:

- {% for tag in tags.kind %} - - {% ssi_include "catalogue_tag_box" pk=tag.pk %} - - {% endfor %} -
- {% endif %} - {% if tags.genre %} -
-

{% trans "Genres" %}:

- {% for tag in tags.genre %} - - {% ssi_include "catalogue_tag_box" pk=tag.pk %} - - {% endfor %} -
- {% endif %} - {% if tags.epoch %} -
-

{% trans "Epochs" %}:

- {% for tag in tags.epoch %} - - {% ssi_include "catalogue_tag_box" pk=tag.pk %} + {% include "catalogue/tag_box.html" %} {% endfor %}
{% endif %}
- {% if results.title %} -
-
-

{% trans "Results by title" %}

-
-
-
-
    - {% for result in results.title %} -
  1. - {% ssi_include 'catalogue_book_short' pk=result.book.pk %} -
  2. - {% endfor %} -
-
- {% endif %} - - {% if results.author %} -
-
-

{% trans "Results by authors" %}

-
-
-
-
    - {% for author in results.author %} -
  1. {% ssi_include 'catalogue_book_short' pk=author.book.pk %}
  2. - {% endfor %} -
-
- {% endif %} - - {% if results.translator %} -
-
-

{% trans "Results by translators" %}

-
-
-
-
    - {% for translator in results.translator %} -
  1. {% ssi_include 'catalogue_book_short' pk=translator.book.pk %}
  2. - {% endfor %} -
-
- {% endif %} - - {% if results.content %} -
-
-

{% trans "Results in text" %}

-
-
-
    - {% for result in results.content %} +
+
- {% endif %} - - {% if results.other %} -
-
-

{% trans "Other results" %}

-
-
-
-
    - {% for result in results.other %} -
  1. - {% book_searched result %} -
  2. - {% endfor %} -
-
- {% endif %} {% endblock %}