{% import 'image.html' as image %} {% extends "layout.html" %} {% block body %}
{% if entries|length < 1 %}

{{_('No Results Found')}}

{{_('Search Term:')}} {{adv_searchterm}}

{{_('Words smaller than 3 letters are not considered')}}

{% else %}

{{result_count}} {{_('Results for:')}} {{adv_searchterm}}

{% if current_user.is_authenticated %} {% if current_user.shelf.all() or g.shelves_access %} {% endif %} {% endif %} {% endif %}
{% for entry in entries %}
{% if entry.Books.has_cover is defined %} {{ image.book_cover(entry.Books) }} {% if entry[2] == True %}{% endif %} {% endif %}

{{entry.Books.title|shortentitle}}

{% for author in entry.Books.authors %} {% if loop.index > g.config_authors_max and g.config_authors_max != 0 %} {% if not loop.first %} & {% endif %} {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} (...) {% endif %} {% else %} {% if not loop.first %} & {% endif %} {{author.name.replace('|',',')|shortentitle(30)}} {% endif %} {% endfor %} {% for format in entry.Books.data %} {% if format.format|lower in g.constants.EXTENSIONS_AUDIO %} {% endif %} {% endfor %}

{% if entry.Books.series.__len__() > 0 %}

{{entry.Books.series[0].name}} ({{entry.Books.series_index|formatseriesindex}})

{% endif %} {% if entry.Books.ratings.__len__() > 0 %}
{% for number in range((entry.Books.ratings[0].rating/2)|int(2)) %} {% if loop.last and loop.index < 5 %} {% for numer in range(5 - loop.index) %} {% endfor %} {% endif %} {% endfor %}
{% endif %}
{% endfor %}
{% endblock %}