blob: 4afe479c4ce00a1c88ed5c8446feb6ca6af89e00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{% extends "_base.html" %}
{% block title %}
{% if term != "" %}
{{ term }}
{% else %}
Start a new Search
{% endif %}
{% endblock %}
{% block searchValue %}{{ term }}{% endblock %}
{% block content %}
{% if matches %}
{# Result rendering #}
Matched {{ matches.__len__() }} Book{% if matches.__len__() > 1 %}s{% endif %}
{% for docnum, matches in matches.items() %}
<div class="book">
book: {{ docnum }}
<img src="{{ url_for("do_download_image", docnum=docnum, page=0) }}"/>
{% for match in matches %}
<div class="match">
{{ match }}
</div>
{% endfor %}
</div>
match in {{ docnum }}
{% endfor %}
{% endif %}
{% endblock %}
|