{% include "corpus/snippets/document_header.html" %}
{% include "corpus/snippets/document_tabs.html" %}
{% regroup document.footnotes.all by source as source_list %}
{% for source in source_list %}
{% spaceless %}
{# Translators: accessibility label for a footnote source citation in scholarship records view #}
{% translate 'Bibliographic citation' %}
{{ source|process_citation }}
{% if not source|is_index_cards and source.list|has_location_or_url %}
{# Translators: accessibility label for the specific location of a citation in a source record #}
{% translate "Location in source" %}
{% for fn in source.list %}
{% ifchanged %}{# omit duplicate footnote locations #}
{% include "corpus/snippets/footnote_location.html" %}
{% endifchanged %}
{% endfor %}
{% endif %}
{# Translators: accessibility label for the relationship(s) of a source to a document #}
{% translate "Relation to document" %}
{% for relation in source.list|all_doc_relations %}
{{ relation }}
{% endfor %}
{% endspaceless %}
{% endfor %}
{# viewer #}
{% include "corpus/snippets/document_transcription.html" %}
{% endblock main %}