1 {% extends "base.html" %}
3 {% load catalogue_tags %}
5 {% block title %}Search{% endblock %}
7 {% block metadescription %}{% endblock %}
9 {% block bodyid %}newsearch{% endblock %}
13 <form action="{% url newsearch %}" method="get" accept-charset="utf-8" id="search-form-x">
15 <input type="text" name="q" style="width:250px; font-size: 1.2em;">
16 <input type="submit" value="{% trans "Search" %}" />
22 {% for result in results %}
24 <p>{{result.book.pretty_title}} (id: {{result.book.id}}, score: {{result.score}})</p>
26 {% for part in result.parts %}
28 <li>W {{part.header}} nr {{part.position}}</li>
30 {% if part.fragment %}
32 <div style="font-weight: bold;">{% for tag in part.fragment.tags %}{{tag.name}} {% endfor %}</div>
33 {{part.fragment.text|safe}} </li>