{% load account_tags %}
    {% for work in works %}
  1. {# counter for search results #} {# indicator for SRs if work details are uncertain (icon) #} {% if work.is_uncertain %} {{ uncertainty_message }} {% endif %} {# book details #}
    {# title #}
    Title
    {{ work.title.0 }} {# authors (first three) #} {% if work.sort_authors %}
    Author
    {% for author in work.sort_authors %} {% if forloop.counter <= 3 %}
    {{ author }}
    {% endif %} {% endfor %} {% if work.sort_authors|length > 3 %} {% with extra_authors=work.sort_authors|length|add:"-3" %}
    ...{{ extra_authors }} more author{{ extra_authors|pluralize }}
    {% endwith %} {% endif %} {% endif %} {# publication date #} {% if work.pub_date %}
    Publication Date
    {{ work.pub_date }}
    {% endif %} {# format #} {% if work.format %}
    Format
    {{ work.format }}
    {% endif %}
    Circulation
    {{ work.event_count }} event{{ work.event_count|pluralize }}
    {{ work.event_years|as_ranges|default:'-' }}
    {# search result relevance (if user is logged in) #} {% if user.is_authenticated and work.score %}
    Relevance
    {{ work.score|floatformat }} {{ work.score }}
    {% endif %}
    {# link to view detail page #} See more details
  2. {% endfor %}
{% if not works %} {% include 'common/empty_results.html' %} {% endif %}