{% extends is_xhr|yesno("fragment.html", "layout.html") %} {% block body %}
{{ entry.title }}

{{entry.title|shortentitle(40)}}

{% for author in entry.authors %} {{author.name.replace('|',',')}} {% if not loop.last %} & {% endif %} {% endfor %}

{% if entry.ratings.__len__() > 0 %}

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

{% endif %} {% if entry.series|length > 0 %}

{{_('Book')}} {{entry.series_index}} {{_('of')}} {{entry.series[0].name}}

{% endif %} {% if entry.languages.__len__() > 0 %}

{{_('Language')}}: {% for language in entry.languages %}{{language.language_name}}{% if not loop.last %}, {% endif %}{% endfor %}

{% endif %} {% if entry.identifiers|length > 0 %}

{% for identifier in entry.identifiers %} {{identifier.formatType()}} {%endfor%}

{% endif %} {% if entry.tags|length > 0 %}

{% for tag in entry.tags %} {{tag.name}} {%endfor%}

{% endif %} {% if entry.publishers|length > 0 %}

{{_('Publisher')}}: {{entry.publishers[0].name}}

{% endif %} {% if entry.pubdate[:10] != '0101-01-01' %}

{{_('Published')}}: {{entry.pubdate|formatdate}}

{% endif %} {% if cc|length > 0 %} {% for c in cc %}
{% if entry['custom_column_' ~ c.id]|length > 0 %} {{ c.name }}: {% for column in entry['custom_column_' ~ c.id] %} {% if c.datatype == 'rating' %} {{ '%d' % (column.value / 2) }}{% if ((column.value /2) % 1) != 0 %}{{ '.%d' % (((column.value /2) % 1)*10) }} {% endif %} {% else %} {% if c.datatype == 'bool' %} {% if column.value == true %} {% else %} {% endif %} {% else %} {% if c.datatype == 'float' %} {{ '%d' % (column.value) }}{% if (column.value % 1) != 0 %}{{ '.%d' % ((column.value % 1)*100) }} {% endif %} {% else %} {{ column.value }} {% endif %} {% endif %} {% endif %} {% endfor %} {% endif %}
{% endfor %} {% endif %} {% if not g.user.is_anonymous %}

{% if g.user.check_visibility(32768) %}

{% endif %}
{% endif %} {% if entry.comments|length > 0 and entry.comments[0].text|length > 0%}

{{_('Description:')}}

{{entry.comments[0].text|safe}}
{% endif %}
{% if g.user.is_authenticated %} {% if g.user.shelf.all() or g.shelves_access %} {% endif %} {% endif %} {% if g.user.role_edit() %} {% endif %}
{% endblock %} {% block js %} {% endblock %}