{% extends 'page_base.html' %} {% load tei %} {% load static %} {% block page-subtitle %} : {{ document.title }}{% endblock %} {% block head-extras %} {% if document.ark %} {% endif %} {# NOTE: not strictly an alternate (may contain multiple groupsheets), but close... #} {# styles specific to the poetry #} {% endblock %} {% block body-attrs %}data-spy="scroll" data-target=".local-sidenav" data-offset-top="200"{% endblock %} {% block page-content %}
{# use toc item titles for RDF title list #} {% for toc in document.toc_list %} {% for item in toc.items %} {% endfor %} {% endfor %} {# NOTE: there is a table of contents item list, but it does not include ids #} {# generating toc from the actual poems instead #}
{# end sidenav #}

{{ document.title }}

Time period: {{ document.date }}

{# NOTE: using byline from the first poem rather than document.author in order to generate RDF person info #}

Poet{{ document.authors|pluralize }}: {% for author in document.authors %}{{ author|format_tei}}{% if not forloop.last %}; {% endif %}{% endfor %}

{% if document.ark %}

Permanent URL: {{ document.ark }}

{% endif %}

Source{{ sources|pluralize }}: {% for src in sources %} {{ src.name }}{% if not forloop.last %}; {% endif %} {% endfor %}

{% for poem in document.poems %} {# NOTE: using ARK URL plus the poem id for poem URI #}

{% if poem.title %} Back to top

{{ poem.title_node|format_tei }}

{% endif %} {{ poem.body|format_tei }} {% if poem.byline %} {% endif %}
{% endfor %} Back to top

TEI XML

{# end right column #}
{# end row #} {% endblock %}