X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2bf5eaca680da6ebd22e6fd799a9a5d68206f0b8..b2d05b5ed588e0829c4cec01796a20a803b301db:/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 1eea6fc3b..6739645cc 100644 --- a/wolnelektury/templates/catalogue/search_multiple_hits.html +++ b/wolnelektury/templates/catalogue/search_multiple_hits.html @@ -1,27 +1,87 @@ {% extends "base.html" %} {% load i18n %} -{% load catalogue_tags pagination_tags %} +{% load catalogue_tags search_tags pagination_tags %} {% block titleextra %}{% trans "Search" %}{% endblock %} {% block bodyid %}tagged-object-list{% endblock %} {% block body %} -

{% trans "Search" %}

- -
-

{% trans "More than one result matching the criteria found." %}

- -
- -{% endblock %} \ No newline at end of file + {% if did_you_mean %} + {% trans "Dod you mean" %} {{did_you_mean|lower}}? + {% endif %} + + + {% spaceless %} + {% if results.author %} +
+
+

{% trans "Results by authors" %}

+
+
+
+
    + {% for author in results.author %} +
  1. + {% book_short author.book %} +
  2. + {% endfor %} +
+
+ {% endif %} + + {% if results.title %} +
+
+

{% trans "Results by title" %}

+
+
+
+
    + {% for result in results.title %} +
  1. + {% book_short result.book %} +
  2. + {% endfor %} +
+
+ {% endif %} + + {% if results.content %} +
+
+

{% trans "Results in text" %}

+
+
+
+
    + {% for result in results.content %} +
  1. + {% book_searched result %} +
  2. + {% endfor %} +
+
+ {% endif %} + + {% if results.other %} +
+
+

{% trans "Other results" %}

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