X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f7179cd5fbb16e2454f1a193a213f6607592e22c..a91eb26eb1627fbb4ca7bd15ff850e0393ca817e:/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 cc93d5631..7a3e580b8 100644 --- a/wolnelektury/templates/catalogue/search_multiple_hits.html +++ b/wolnelektury/templates/catalogue/search_multiple_hits.html @@ -1,27 +1,75 @@ {% extends "base.html" %} +{% load i18n %} {% load catalogue_tags pagination_tags %} -{% block title %}Wyszukiwanie w WolneLektury.pl{% endblock %} +{% block titleextra %}{% trans "Search" %}{% endblock %} {% block bodyid %}tagged-object-list{% endblock %} {% block body %} -

{% title_from_tags tags %}

- {% breadcrumbs tags %} - +

{% trans "Search" %}

+ + {% if did_you_mean %} + {% trans "Dod you mean" %} {{did_you_mean|lower}}? + {% endif %} +
+
    + {% for result in results %} +
  1. +

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

    +
      + {% for hit in result.hits %} +
    • + {% if hit.fragment %} + Idź do fragmentu +
      Tagi/Motywy: {% for tag in hit.themes %}{{tag.name}} {% endfor %}
      + {# snippets or short html? #} + {% if hit.snippets %} + {% for snip in hit.snippets %} + {{snip|safe}}
      + {% endfor %} + {% else %} + {{hit.fragment.short_text|safe}} + {% endif %} + + {% else %} + {# it's a section #} + {{hit.header_index}} + {% if hit.snippets %} + {% for snip in hit.snippets %} + {{snip|safe}}
      + {% endfor %} + {% else %} + [section matched but no snippets :-(] + {% endif %} + {% endif %} +
    • + {% endfor %} + +
    +
  2. + {% empty %} +

    No results.

    + {% endfor %} +
+
+ + +{% comment %}
-

Znaleziono więcej niż jeden wynik odpowiadający kryteriom wyszukiwania.

-
+{% endcomment %} -
-
Zamknij
-
-

* Ładowanie

-
-
-{% endblock %} \ No newline at end of file +{% endblock %}