X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/87ff3f803d2f147e6fa939a99c4c4a4ca6aa965f..c26ab6ee15974c1133a6d08c459b51199185f25f:/apps/catalogue/templates/catalogue/search_multiple_hits.html diff --git a/apps/catalogue/templates/catalogue/search_multiple_hits.html b/apps/catalogue/templates/catalogue/search_multiple_hits.html new file mode 100644 index 000000000..70988f395 --- /dev/null +++ b/apps/catalogue/templates/catalogue/search_multiple_hits.html @@ -0,0 +1,115 @@ +{% extends "base.html" %} +{% load i18n %} +{% load catalogue_tags search_tags pagination_tags %} + +{% block titleextra %}{% trans "Search" %}{% endblock %} + +{% block bodyid %}tagged-object-list{% endblock %} + +{% block body %} + {% if did_you_mean %} + {% 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 %} +
+
+

{% 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 %} + + + +{% endblock %}