1 {% extends "base.html" %}
3 {% load catalogue_tags pagination_tags %}
5 {% block title %}{% trans "Searching in" %} WolneLektury.pl{% endblock %}
7 {% block bodyid %}tagged-object-list{% endblock %}
10 <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
11 <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to main page" %}</a></p>
16 {% for result in results %}
18 <p><a href="{{result.book.get_absolute_url}}">{{result.book.pretty_title}}</a> (id: {{result.book_id}}, score: {{result.score}})</p>
20 {% for hit in result.hits %}
22 {% for snip in hit.3.snippets %}
28 {% for part in result.parts %}
30 <li>W {{part.header}} nr {{part.position}}</li>
32 {% if part.fragment %}
34 <div style="">Tagi/Motywy: {% for tag in part.fragment.tags %}{{tag.name}} {% endfor %}</div>
35 {{part.fragment.short_html|safe}}
51 <p>{% trans "More than one result matching the criteria found." %}</p>
53 {% for match, link, type in results %}
54 <li>{% trans type %}: <a href='{{ link }}'>
55 {% ifequal type "book" %}
56 {% book_title match %}
67 <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
69 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>