X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5c959cbb46c29a03cb6c8bc0e8b5aae5765bf150..f230a3850ec568f2281f085a076a6185d8c82b5c:/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..0d3e70064 100644 --- a/wolnelektury/templates/catalogue/search_multiple_hits.html +++ b/wolnelektury/templates/catalogue/search_multiple_hits.html @@ -2,14 +2,12 @@ {% load i18n %} {% load catalogue_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" %}

-
+

{% trans "Search" %}

    @@ -17,14 +15,30 @@
  1. {{result.book.pretty_title}} (id: {{result.book_id}}, score: {{result.score}})

      - {% for hit in result.process_hits %} + {% 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 #} + {% if hit.snippets %} + {% for snip in hit.snippets %} + {{snip|safe}}
      + {% endfor %} + {% else %} + [section matched but no snippets :-(] + {% endif %} {% endif %} - {% for snip in hit.snippets %} - {{snip|safe}}
      - {% endfor %}
    • {% endfor %} @@ -54,10 +68,4 @@
{% endcomment %} -
-
{% trans "Close" %}
-
-

* {% trans "Loading" %}

-
-
{% endblock %}