{% extends "ishtar/sheet.html" %} {% load i18n window_field window_tables %} {% block head_sheet %} {{block.super}}

{% trans "Context Record"%}

{% endblock %} {% block content %} {% if previous or next %}
{%if previous%} {%trans "Previous version"%} ({{previous}}) {% endif %} {% if previous and next %} - {% endif %} {%if next%} Rollback - {%trans "Next version"%} ({{next}}) {% endif %}
{% endif %}
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}
{% trans "Modify" %}
{% if item.operation.code_patriarche %}

{% else %}

{%endif%} {{item.full_label}}

{{ item.creation_date }}

{{ item.history_creator.ishtaruser.full_label }}

{%if item.unit %}

{{ item.unit }}

{%endif%}

{{ item.datings.all|join:", " }}

{% field "Comment on datings" item.datings_comment "
" "
" %}

{{ item.parcel.town }}

{{ item.parcel.short_label }}

{% if item.description or item.lenght or item.width or item.depth or item.thickness or item.comment %}

{% trans "Description"%}

{{ item.description }}

{% if item.comment %}

{{ item.comment }}

{% endif %} {% if item.lenght %}

{{ item.length }}

{%endif%} {% if item.width %}

{{ item.width }}

{%endif%} {% if item.depth %}

{{ item.depth }}

{%endif%} {% if item.width %}

{{ item.thickness }}

{%endif%} {% endif %} {% if item.activity or item.identification or item.interpretation %}

{% trans "Interpretation"%}

{% if item.activity %}

{{ item.activity }}

{%endif%} {% if item.identification %}

{{ item.identification }}

{%endif%} {% if item.interpretation %}

{{ item.interpretation }}

{%endif%} {% endif %} {% if item.taq or item.taq_estimated or item.tpq or item.tpq_estimated %}

{% trans "Datations"%}

{% if item.taq %}

{{ item.taq }}

{%endif%} {% if item.taq_estimated %}

{{ item.taq_estimated }}

{%endif%} {% if item.tpq %}

{{ item.tpq }}

{%endif%} {% if item.tpq_estimated %}

{{ item.tpq_estimated }}

{%endif%} {%endif%} {% if item.right_relations.count %}

{% trans "In relation with"%}

{% for relation in item.right_relations.all %} {# periods ?#} {% endfor %}
{% trans "Relation type" %} {% trans "ID" %} {% trans "Type" %} {% trans "Chronology" %} {% trans "Description" %} {% trans "Parcel" %}  
{{ relation.relation_type }} {{ relation.right_record.label }} {{relation.right_record.unit|default:""}} {{ relation.right_record.datings.all|join:", " }}{{ relation.right_record.description }} {{ relation.right_record.parcel.section }} - {{relation.right_record.parcel.parcel_number}}
{% endif %} {% if item.operation %}

{% trans "Operation summary"%}

{{ item.operation.year }}

{% field "Numerical reference" item.operation.operation_code %} {% if item.operation.code_patriarche %}

{{ item.operation.code_patriarche }}

{% else %}

{%endif%} {#

{{ item.operation.internal_reference }}

#} {% if item.operation.scientist %}

{{ item.operation.scientist.full_label }}

{%endif%}

{% if item.operation.is_active %} {%trans "Active file"%}

{% else %} {%trans "Closed operation"%}

{{ item.operation.closing.date }} {%trans "by" %} {{ item.operation.closing.user }}

{% endif %}

{{ item.operation.operation_type }}

{{ item.operation.remains.all|join:", " }}

{{ item.operation.periods.all|join:", " }}

{% field "Comment" item.operation.comment "
" "
" %}

{% trans "Localisation"%}

{{ item.operation.towns.all|join:", " }}

{{ item.operation }}

{# TODO: Displayed as Year/index/Commune/Common_name This should be a link to the file sheet of the related operation #} {% else %}

{% endif %} {% trans "Document from this context record" as cr_docs %} {% if item.source.count %} {% dynamic_table_document cr_docs 'context_records_docs' 'context_record' item.pk '' output %} {% endif %} {% trans "Finds" as finds %} {% if item.base_finds.count %} {% dynamic_table_document finds 'finds_for_ope' 'base_finds__context_record' item.pk 'TABLE_COLS_FOR_OPE' output %} {% endif %} {% trans "Documents from associated finds" as finds_docs %} {% if item.find_docs_q.count %} {% dynamic_table_document finds_docs 'finds_docs' 'find__base_finds__context_record' item.pk '' output %} {% endif %} {% endblock %}