$def with (q, results, search_time, page=1, results_per_page=20) $var title: $_('Search Open Library for %s', q)

$_("Search Inside")

$:macros.SearchNavigation()
$:render_template("search/searchbox", q=q)
$ num_found = 0 $if q: $if results and 'error' not in results and results['hits']: $ hits = results['hits'].get('hits', []) $ num_found = results['hits'].get('total', 0) $if 'error' in results:
$results['error']
$if not num_found: $def escaped_query(): $q
$:_('No Search Inside text matched your search')

$else:

$ungettext('About %(count)s result found', 'About %(count)s results found', num_found, count=commify(num_found)) $ungettext('in %(seconds)s second', 'in %(seconds)s seconds', search_time, seconds="%.2f" % search_time)

$:macros.FulltextResults(q, results, page=page)