X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/276656dcc680e1a35103d310dea046152ddc3785..85f97b6322eacc6fa89788aba7998fc485f85cfc:/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..0a7dc1cf1 100644 --- a/wolnelektury/templates/catalogue/search_multiple_hits.html +++ b/wolnelektury/templates/catalogue/search_multiple_hits.html @@ -12,11 +12,79 @@ {% endif %} -
- {% for result in results %} - {% book_searched result %} - {% endfor %} + + {% if results.author %} +
+
+

{% trans "Results by authors" %}

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

{% trans "Results by title" %}

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

{% trans "Results in text" %}

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

{% trans "Other results" %}

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