X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f109b7f6e35d54281f1edf4b684c49db621d36c5..b80f646690239d9a90d708d57780f328328b26d5:/wolnelektury/templates/newsearch/search.html?q=%7B%7Bdid_you_mean%7Curlencode%7D%7D diff --git a/wolnelektury/templates/newsearch/search.html b/wolnelektury/templates/newsearch/search.html index e018b2111..c494ca602 100644 --- a/wolnelektury/templates/newsearch/search.html +++ b/wolnelektury/templates/newsearch/search.html @@ -2,35 +2,50 @@ {% load i18n %} {% load catalogue_tags %} -{% block title %}Leśmianator w WolneLektury.pl{% endblock %} +{% block title %}Search{% endblock %} -{% block metadescription %}Stwórz własny wierszmiks z utworów znajdujących się na Wolnych Lekturach.{% endblock %} +{% block metadescription %}{% endblock %} -{% block bodyid %}lesmianator{% endblock %} +{% block bodyid %}newsearch{% endblock %} {% block body %}

Search

-
+

- + +
+ fuzzy.

+ {% if did_you_mean %} + Czy miałeś na mysli {{did_you_mean}}? + {% endif %} +
    - {% for score,book,parts in results %} + {% for result in results %}
  1. -

    {{book.author}} - {{book.title}} (id: {{book.id}}, score: {{score}})

    +

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

      - {% for score,part in parts %} + {% for hit in result.hits %} +
    • + {% for snip in hit.3.snippets %} + {{snip|safe}}
      + {% endfor %} +
    • + {% endfor %} + + {% for part in result.parts %} {% if part.header %}
    • W {{part.header}} nr {{part.position}}
    • {% else %} {% if part.fragment %}
    • -
      {% for tag in part.fragment.tags %}{{tag.name}} {% endfor %}
      - {{part.fragment.text|safe}}
    • +
      Tagi/Motywy: {% for tag in part.fragment.tags %}{{tag.name}} {% endfor %}
      + {{part.fragment.short_html|safe}} + {% endif %} {% endif %} {% endfor %}