X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/55bc643c16dc56cf2377bd5c4d6e924d5fc62698..b65636fcd90b21946fead6813d7f1312e7ade6ce:/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 5d222519f..6739645cc 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 %} @@ -12,11 +12,75 @@ {% endif %} -
- {% for result in results %} - {% book_searched result %} - {% endfor %} + {% 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 %}