<%! from lonote.im3 import Book %> <%def name="result_item(hit)"> <% book = bs[hit['bid']] parent_name = None try: parent_name = book.paper(bs[hit['bid']].pid_parent(hit['pid'])).name except: pass %> ${hit['pname'] | h} ${hit['sid'] | h}   ${parent_name}  ${hit['bid'].rstrip(Book.filename_ext)}

${hit.highlights('text')}

${_('Search Results of [ {} ]:').format(key)} ${results.scored_length()} / ${len(results)} / ${doc_count}