{% load i18n static corpus_extras %} {% if edit_mode %} {{ annotation_config|json_script:"annotation-config" }} {% elif perms.corpus.change_document %} {% for ed in document.digital_editions.all %} Edit {% for auth in ed.source.authorship_set.all %}{% include "snippets/comma.html" %}{{ auth.creator.last_name }}{% empty %}[unknown]{% endfor %}'s edition {% endfor %} Add a new transcription {% endif %} {# only enable ITT panel if transcription or images are present, or we are in edit mode #} {% if document.has_transcription or document.iiif_urls or edit_mode %}
{# NOTE: inputs must be kept as SIBLINGS of panel-container for CSS selection/controls #} {# images displayed by default; disable if no images are available #} {# translators: label for checkbox toggle to show the images panel for a document #} {# transcription displayed by default; disable if no content is available #} {# translators: label for checkbox toggle to show the transcription panel for a document #} {# translation disabled for now since we don't handle them in the system yet #} {# translators: label for checkbox toggle to show the translation panel for a document #}
{# label row #}
{# unused (no image label, needed for column alignment) #}
{% if edit_mode %} {# show disabled details with source label in editor mode #} {% else %} {# dropdown is disabled by default; enable if javascript is active #} {% endif %}
{# loop based on canvases (for canvas with no image, image_info is a placeholder) #} {% for canvas_uri, image_info in images.items %} {# only images that are part of the current document are zoomable #}

{{ image_info.shelfmark }} {{ image_info.label }}

{% if not image_info.excluded %}
{% endif %}
{{ image_info.label }}
{% if image_info.excluded %} {# if this image isn't actually in this document, link to related documents #} {% spaceless %} {% endspaceless %} {% endif %}
{% if edit_mode %}
{% if forloop.first %} {# Note: editor label/instructions are content admin-only and thus not translated. #}

Transcribe

Hold shift and then click and drag over the image to select a rectangular region for the block of text you want to transcribe (this is an annotation zone).

When an annotation zone is active on the image, use the red square in the thumbnail to move around the image when zoomed in.

Drag blocks of text to reorder or move to a different image.

{% endif %}
{% else %} {% if forloop.first %}

{% translate 'Transcription' %}

{{ document.digital_editions.0.source.formatted_display|safe }} {% endif %} {% if not image_info.excluded %}
{# display transcription in chunks by index #} {% for edition in document.digital_editions.all %}
{% for html_section in edition.content_html|dict_item:canvas_uri %} {{ html_section|safe }} {% endfor %}
{% endfor %}
{% endif %} {% endif %}
{% endfor %} {% if document.has_image %} {% include "corpus/snippets/document_image_rights.html" %} {% endif %}
{% endif %}