{% extends "base.html" %} {% load static i18n %} {% get_current_language as LANGUAGE_CODE %} {% block main %}
{% if not object.public_review_approved %}
{% translate "This text is not yet approved, meaning it's not visible to public users." %} {% translate "Only authenticated users (admins and contributors) can see texts before they're approved." %}
{% endif %}
{{ object.title }} {% if user.is_admin %} {% endif %}
{% translate 'Details' %}
{% include 'corpus/snippets/downloaddata.html' with downloaddata_text_ids=object.id data_description='the current text' %}
{% for data_item in data_items %} {% if data_item.section_header %} {% if forloop.counter > 1 %}
{% endif %}
{% if LANGUAGE_CODE == 'en' %}

{{ data_item.section_header }}

{% elif LANGUAGE_CODE == 'fa' %}

{{ data_item.section_header_fa }}

{% endif %} {% elif data_item.html %}
{{ data_item.html | safe }}
{% elif data_item.value %}
{{ data_item.value | safe }}
{% endif %} {% if forloop.last %}
{% endif %} {% endfor %} {% if object.is_codex %}
{% translate 'Codex' %}
{% if codex_pagination_options %}
{% endif %}
{% for image in codex_images %}
{{ codex_pagination_pagecountstart|add:forloop.counter }}
Manuscript page
{% endfor %}
{% endif %}
{% translate 'Folios' %}
{% for text_folio in text_folios %}
{{ forloop.counter }}. {{ text_folio.name_short }}
{% endfor %}
{% if object.has_textfoliotag %}
{% translate 'Tags' %}
{% include "corpus/snippets/folio-select.html" %}
{% if user.is_admin %}
{% endif %} {% for text_folio in text_folios %}
{% for text_folio_tag in text_folio.text_folio_tags.all %} {% ifchanged text_folio_tag.tag.category %}

{{ text_folio_tag.tag.category.name }}

{% endifchanged %} {% empty %} {% endfor %}
{% endfor %}
{% endif %} {% if object.has_transliteration %}
{% translate 'Transliteration' %}
{% include "corpus/snippets/foliotext-options.html" with current_tab='transliteration' %} {% for text_folio in text_folios %} {% if text_folio.transliteration_text_lines %}
{% include "corpus/snippets/foliotext-lines.html" with trans_text_lines=text_folio.transliteration_text_lines %}
{% endif %} {% endfor %}
{% endif %} {% if object.has_transcription %}
{% translate 'Transcription' %}
{% include "corpus/snippets/foliotext-options.html" with current_tab='transcription' %} {% for text_folio in text_folios %} {% if text_folio.transcription_text_lines %}
{% include "corpus/snippets/foliotext-lines.html" with trans_text_lines=text_folio.transcription_text_lines %}
{% endif %} {% endfor %}
{% endif %} {% if object.has_translation %}
{% translate 'Translation' %}
{% include "corpus/snippets/foliotext-options.html" with current_tab='translation' %} {% for text_folio in text_folios %} {% if text_folio.translation_text_lines %}
{% include "corpus/snippets/foliotext-lines.html" with trans_text_lines=text_folio.translation_text_lines %}
{% endif %} {% endfor %}
{% endif %} {% if object.has_palaeography %}
{% translate 'Palaeography' %}
{% for text_folio in text_folios %} {% if text_folio.palaeography %}
{{ text_folio.palaeography | safe }}
{% endif %} {% endfor %}
{% endif %} {% if object.has_toponym_coordinates %}
{% translate 'Map' %}

{% translate 'This map displays the place names identified by the Invisible East Team related to this corpus text. If you click on a pin, you can see all the texts in our corpus which mention this toponym. Please bear in mind that the exact geographical location of origin is not always possible to establish. It is, therefore, only an approximation.' %}

{% translate 'You can also view' %} {% translate 'a full map of all toponyms within the Invisible East Digital Corpus' %}{% translate 'afterlink-detailtotoponyms' %}

{% include "corpus/snippets/leaflet.html" with map_id='corpus-text-detail-content-map-iedctoponyms' %}
{% endif %} {% if object.seals.all %}
Seals
{% for seal in object.seals.all %}
{% translate 'Seal' %} {{ forloop.counter }}
{% if seal.image %} Photograph of this seal {% endif %} {% if object.primary_language.name != 'Bactrian' %} {% if seal.type %}
{{ seal.type }}
{% endif %} {% if seal.details %}
{{ seal.details | safe | linebreaks }}
{% endif %} {% if seal.inscription %}
{{ seal.inscription | safe | linebreaks }}
{% endif %} {% if seal.measurements %}
{{ seal.measurements | safe | linebreaks }}
{% endif %} {% if seal.descriptions_html_list %}
{{ seal.descriptions_html_list | safe }}
{% endif %} {% if seal.colours_html_list %}
{{ seal.colours_html_list | safe }}
{% endif %} {% if seal.imprints_html_list %}
{{ seal.imprints_html_list | safe }}
{% endif %} {% endif %}
{% endfor %}
{% endif %} {% if object.has_image or object.is_codex %}
{% if object.is_codex %}
{% elif object.has_image %}
{% endif %}
{% if object.has_image %}
{% endif %}
{% if object.is_codex %}
Codex image
{% else %} {% for text_folio in text_folios %} {% if text_folio.image %}
{% if text_folio.image_hide %}

We are currently unable to share this image publicly.

Please contact us if you require access to this image and we can advise further.

{% else %}
{{ text_folio }}
{% for tag in text_folio.text_folio_tags.all %} {% if tag.image_part_left and tag.image_part_top and tag.image_part_width and tag.image_part_height %}
{% endif %} {% endfor %}
{% endif %}
{% endif %} {% endfor %} {% endif %}
{% if object.image_credit %}
{% translate 'Images courtesy of' %} {{ object.image_credit }}
{% endif %}
{% endif %} {% if user.is_admin %}
{% translate 'Tag Manager' %}
{% csrf_token %}
{% translate 'Tag Manager' %}
{% if object.has_image %}
{% endif %}
{% endif %} {% endblock %}