{# snippet to display a single rdf groupsheet #} {% load groupsheet_tags %}{% load humanize %}
{% if not profile or doc.author_list|length != 1 %} {# suppress single author on profile page list #} {% for author in doc.author_list %} {{ author.lastname }}, {{ author.firstname }}{% if not forloop.last %}; {% else %}.{% endif %} {# NOTE: on profile page, should we list all authors or only other authors than profile? #} {% empty %} Anonymous. {% endfor %} {% endif %} {% for t in doc.title_list %} {# list of titles if multiple #} “{{ t }},” {% empty %} {# single title if we have one, or untitled + genre if available #} {% if doc.title %}“{{ doc.title }},”{% else %}Untitled{{ ' '|add:doc.genre|default:'' }}{% endif %} {% endfor %} {% if doc.date %}{{ doc.date|natural_date }}{% else %}no date{% endif %}{% if doc.num_pages %}, {% else %}.{% endif %} {# perhaps simply omit the no date since the majority are undated? #} {% if doc.num_pages %}{{ doc.num_pages|apnumber }} page{{ doc.num_pages|pluralize }}.{% endif %} {% if doc.description %}({{ doc.description }}){% endif %}
{% if doc.tei_id %} {% endif %} {% if doc.sources %}Source: {# source archives with a copy of this group sheet #} {% for s in doc.sources %} {% if s.access_url %}{{ s.name }}{% else %}{{ s.name }}{% endif %}{% if forloop.last %}. {% else %}; {% endif %} {% endfor %}
{% endif %} {% comment %} TESTING: display inferred owner based on collection {% if doc.owners %}owners: {% for o in doc.owners %}{{ o.name }}{% if not forloop.last %}; {% endif %}{% endfor %}
{% endif %} {% endcomment %}