diff options
author | yvesf <yvesf-git@xapek.org> | 2010-11-22 00:52:52 +0100 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2010-11-22 00:52:52 +0100 |
commit | 1f408d58a0853653d9297bd048512c3e4e279512 (patch) | |
tree | 204e2e85fc2cb73d2dc8328d61a6739dacc3d95f /templates | |
parent | 5b7f0bdf98e4fffca943e408a60f2fe2e289fef6 (diff) | |
download | booksearch-1f408d58a0853653d9297bd048512c3e4e279512.tar.gz booksearch-1f408d58a0853653d9297bd048512c3e4e279512.zip |
index/seaerch/convert works; ugly template
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 %} |