X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9fbf0c4158a9427442171629a564e2de7780b5b7..45b36abf753366dd523cae85a8eced7e5c9711e0:/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 414dcfdc0..31e67a8c1 100644 --- a/wolnelektury/templates/catalogue/search_multiple_hits.html +++ b/wolnelektury/templates/catalogue/search_multiple_hits.html @@ -1,56 +1,91 @@ {% 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" %}

- -
-
    - {% for result in results %} -
  1. -

    {{result.book.pretty_title}} (id: {{result.book_id}}, score: {{result.score}})

    -
      - {% for hit in result.process_hits %} -
    • - {% if hit.fragment %} - Idź do fragmentu -
      Tagi/Motywy: {% for tag in hit.themes %}{{tag.name}} {% endfor %}
      - {% endif %} - {% for snip in hit.snippets %} - {{snip|safe}}
      - {% endfor %} -
    • - {% endfor %} - -
    -
  2. - {% empty %} -

    No results.

    - {% endfor %} + {% if did_you_mean %} + {% trans "Dod you mean" %} {{did_you_mean|lower}}? + {% 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 %} -{% comment %} -
    -

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

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

    {% trans "Results in text" %}

    +
    +
    +
    +
      + {% for result in results.title %} +
    1. + {% book_searched result %} +
    2. + {% endfor %} +
    -{% endcomment %} + {% 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 %} + + + {% endblock %}