{% 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.grouper.formatted_display|safe }}
{# Translators: label for included document relations for a single footnote #}
{% translate "includes" as includes_text %}
{% if source.list|length > 1 or source.list.0.location or source.list.0.url %}
{# Translators: label for document relations in list of footnotes #}
{% blocktranslate with relation=source.list.0.doc_relation|lower trimmed %}
for {{ relation }} see
{% endblocktranslate%}
{% else %}
{# Translators: label for document relations for one footnote with no location or URL #}
{% blocktranslate with relation=source.list.0.doc_relation|lower trimmed %}
includes {{ relation }}
{% endblocktranslate%}
{% endif %}
{% if source.list|length > 1 or source.list.0.location or source.list.0.url %}
{% for fn in source.list %}
{% include "corpus/snippets/footnote_location.html" %}