{% extends "base.html" %} {% load typogrify display %} {% block title %}: {{ document }}{% endblock %} {% block css %} {% endblock %} {% block js %} {% endblock %} {% block content %}

{{ document.description|as_html|typogrify }}

{% if zotero_data %} {% include "zotero_item.html" %} {% else %}

This document has no connected Zotero data.

{% endif %}
{% if document.has_links %}

External link{% if document.links.count > 1 %}s{% endif %}

    {% for link in document.links.all %}
  • {{ link }}
    {{ link.description }}
  • {% endfor %}
{% endif %}
{% if request.user.is_authenticated %} Edit {% endif %}
{{ document|display_edit_history }}
{% if document.has_parts %}
    {% for part in document.parts.all %}
  • {{ part|as_link }}
  • {% endfor %}
{% if request.user.is_authenticated %} Edit {% endif %}
{% endif %} {% if scans %}

Loading scanned document...
{% endif %} {% if document.transcript %}
{{ document.transcript.content|as_html|typogrify }}
{% for note in document.transcript.get_footnotes %}
{{ note.content|as_html|typogrify }}
{% endfor %}
{% if user.is_authenticated %} Edit transcript {% endif %}
{{ document.transcript|display_edit_history }}
{% endif %}
{% if notes %} {% for note, topics in notes %} {% endfor %} {% else %} There are no notes or queries related to this document. {% endif %}
{% endblock %}