{% load static humanize %}
  • {% if item.work_type == "full-work" %} {# unapi metadata only available for full works #} {% endif %}
    {% if page_obj %}

    {{ page_obj.start_index|add:forloop.counter0 }}

    {% endif %} {% if item.work_type != "full-work" %}
    {% endif %}

    {% spaceless %} {{ item.title }} {% if item.work_type != "full-work" and item.book_journal %} {{ item.book_journal }} {% else %} {{ item.subtitle}} {% endif %} {% endspaceless %}

    {% if page_groups and page_highlights %} {% with results=page_groups|dict_item:item.id %} {% if results.numFound > 2 %} {{ results.numFound|intcomma }} matching page{{ results.numFound|pluralize }} {% endif %}
    {% if page_highlights %}
    {% for page in results.docs %} {% with highlights=page_highlights|dict_item:page.id %} {% include 'archive/snippets/page_preview.html' with item_id=item.source_id source=item.source.0 image_id=page.image_id source_url=item.source_url %} {% endwith %} {% endfor %}
    {% endif %}
    {% endwith %} {% endif %}