{% extends 'base.html' %} {% load static i18n render_bundle_csp corpus_extras fullurl %} {% block meta_title %}{{ page_title }}{% endblock meta_title %} {% block meta_description %}{{ page_description }}{% endblock meta_description %} {% block extrameta %} {# use English page as canonical for search engine crawlers (no redirects) #} {% language "en" %} {% endlanguage %} {% spaceless %} {% for lang_code in PUBLIC_SITE_LANGUAGES %} {% language lang_code %} {% endlanguage %} {% endfor %} {% endspaceless %} {# digital editions metadata for twitter, slack #} {% if document.digital_editions %} {% endif %} {# preview card images for twitter and open graph #} {% if meta_image %} {% with meta_image|iiif_image:"size:width=1080" as image %} {% endwith %} {% endif %} {% endblock extrameta %} {% block main %}

{{ page_title }}

{% include "corpus/snippets/document_header.html" %} {# tabs #} {% include "corpus/snippets/document_tabs.html" %}

{# Translators: label for document metadata section (editor, date, input date) #} {% translate 'Metadata' %}

{# metadata #}
{% if document.has_image or document.digital_editions.count or document.digital_translations.count %} {% with n_transcriptions=document.digital_editions.count n_translations=document.digital_translations.count %}
{# Translators: label for document content stats (number of translations, transcriptions, images) #}

{% translate "What's in the PGP" %}

{% endwith %} {% endif %}
{# Translators: label for document description #}

{% translate 'Description' %}

{{ document.description|pgp_urlize }}

{# related people #} {% if related_people.exists %} {% endif %} {# related places #} {% if related_places.exists %} {% endif %} {% if document.tags.exists %}
{# Translators: label for tags on a document #}

{% translate 'Tags' %}

{% endif %}
{# secondary metadata #}

{# Translators: label for secondary/historiographical metadata #} {% translate 'Additional metadata' %}

{% if document.fragments_by_provenance %} {% regroup document.fragments_by_provenance by provenance_display as provenance_list %} {# Translators: label for the provenance of document fragments #}
{% translate "Provenance" %}
{% if provenance_list|length > 1 %}
{% for provenance in provenance_list %}
{{ provenance.grouper }}
{% for frag in provenance.list %} {{ frag }}
{% endfor %} {% endfor %}
{% else %} {{ provenance_list.0.grouper }} {% endif %} {% endif %} {% if document.fragments_by_material_support %} {% regroup document.fragments_by_material_support by material_support as ms_list %} {# Translators: label for the material support of document fragments #}
{% translate "Material support" %}
{% if ms_list|length > 1 %}
{% for ms in ms_list %}
{{ ms.grouper }}
{% for frag in ms.list %} {{ frag }}
{% endfor %} {% endfor %} {% else %} {{ ms_list.0.grouper }} {% endif %} {% endif %}
{# Translators: Document fragment collection(s) label #} {% blocktranslate count counter=document.collections|length trimmed %} Collection {% plural %} Collections {% endblocktranslate %}
{% for collection in document.collections %} {% if collection.url %} {{ collection.full_name }}{% if not forloop.last %}; {% endif %} {% else %} {{ collection.full_name }}{% if not forloop.last %}; {% endif %} {% endif %} {% endfor %}
{% if document.fragment_historical_shelfmarks %} {# Translators: label for historical/old shelfmarks on document fragments #}
{% translate 'Historical shelfmarks' %}
{{ document.fragment_historical_shelfmarks }}
{% endif %} {# Translators: Label for date document was first added to the PGP #}
{% translate 'Input date' %}
{# Translators: Date document was first added to the PGP #} {% blocktranslate with date=document.log_entries.last.action_time.year %} In PGP since {{ date }} {% endblocktranslate %}
{# viewer #} {% include "corpus/snippets/document_transcription.html" %} {# tertiary metadata #}
{# Translators: accessibility label for a citation for a document #} {{ document.formatted_citation }}
{% endblock main %}