X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/568be7ec391479b5a253137fc08fa0ffa17b8249..5b5ccdc9dc573482feaded2eaa8110bc65f27cb7:/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 dc3696ece..70988f395 100644 --- a/wolnelektury/templates/catalogue/search_multiple_hits.html +++ b/wolnelektury/templates/catalogue/search_multiple_hits.html @@ -1,63 +1,115 @@ {% extends "base.html" %} {% load i18n %} -{% load catalogue_tags pagination_tags %} +{% load catalogue_tags search_tags pagination_tags %} -{% block title %}{% trans "Searching in" %} WolneLektury.pl{% endblock %} +{% block titleextra %}{% trans "Search" %}{% endblock %} {% block bodyid %}tagged-object-list{% endblock %} {% block body %} -
-

{{ form.q }} {% trans "or" %} {% trans "return to main page" %}

-
- -
-
    - {% 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 %} -
      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 "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 %} -{% comment %} -
    -

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

    - + {% if results.content %} +
    +
    +

    {% trans "Results in text" %}

    +
    -{% endcomment %} +
    +
      + {% for result in results.content %} +
    1. + {% book_searched result %} +
    2. + {% endfor %} +
    +
    + {% endif %} -
    - -
    -

    * {% trans "Loading" %}

    -
    + {% if results.other %} +
    +
    +

    {% trans "Other results" %}

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