paralell indexing
[wolnelektury.git] / wolnelektury / templates / newsearch / search.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load catalogue_tags %}
4
5 {% block title %}Search{% endblock %}
6
7 {% block metadescription %}{% endblock %}
8
9 {% block bodyid %}newsearch{% endblock %}
10
11 {% block body %}
12     <h1>Search</h1>
13     <form action="{% url newsearch %}" method="get" accept-charset="utf-8" id="search-form-x">
14         <p>
15           <input type="text" name="q" style="width:250px; font-size: 1.2em;">
16           <input type="submit" value="{% trans "Search" %}" /> 
17         </p>
18     </form>
19
20     <div id="results">
21       <ol>
22       {% for result in results %}
23       <li>
24         <p>{{result.book.pretty_title}} (id: {{result.book.id}}, score: {{result.score}})</p>
25         <ul>
26           {% for part in result.parts %}
27           {% if part.header %}
28           <li>W {{part.header}} nr {{part.position}}</li>
29           {% else %} 
30           {% if part.fragment %}
31           <li>
32             <div style="font-weight: bold;">{% for tag in part.fragment.tags %}{{tag.name}} {% endfor %}</div>
33             {{part.fragment.text|safe}} </li>
34           {% endif %}
35           {% endif %}
36           {% endfor %}
37         </ul>
38       </li>
39       {% empty %}
40       <p>No results.</p>
41       {% endfor %}
42       </ol>
43     </div>
44
45 {% endblock %}