diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/search.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/templates/search.html b/templates/search.html index 4afe479..81a1007 100644 --- a/templates/search.html +++ b/templates/search.html @@ -13,15 +13,20 @@ 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) }}"/> + <a href="{{ url_for("do_book_file", docnum=docnum) }}">book: {{ docnum }}</a> + <img src="{{ url_for("do_book_frontpage", docnum=docnum) }}"/> + <br /> {% for match in matches %} <div class="match"> - {{ match }} + Match at page {{ match[2] }} ( + <a href="{{ url_for("do_page_image", docnum=match[0]) }}">image</a>, + <a href="{{ url_for("do_page_file", docnum=match[0]) }}">pdf</a>) + score={{ match[0] }} + <a href="{{ url_for("json_excerpt", docnum=match[0], term=term) }}">excerpt</a> </div> {% endfor %} </div> - match in {{ docnum }} + <hr /> {% endfor %} {% endif %} {% endblock %} |