{% extends "ishtar/sheet.html" %} {% load i18n window_field from_dict link_to_window window_tables window_header humanize %} {% block head_title %}{% trans "Find" %}{% if item.denomination %} - {{item.denomination|default:""}}{% endif %} - {{item.label|default:""}}{% endblock %} {% block toolbar %} {% window_nav item window_id 'show-find' 'find_modify' 'show-historized-find' 'revert-find' previous next 1 %} {% endblock %} {% block content %}
{% include "ishtar/blocks/window_image.html" %}

{{ item.denomination|default:"" }}

{{ item.label|default:"" }}

{% for base_find in item.base_finds.all %}{% if forloop.counter0 %} – {% endif %}{{base_find.complete_id}}{% endfor %}

{% for base_find in item.base_finds.all %}{% if forloop.counter0 %} – {% endif %}{{base_find.short_id}}{% endfor %}

{{ item.administrative_index|default:"" }}

{% include "ishtar/blocks/sheet_external_id.html" %}

{% if item.downstream_treatment %} {% endif %}

{% trans "Associated base finds"%}

{% for base_find in item.base_finds.all %}

{{base_find.complete_id }}

{{base_find.short_id }}

{% if base_find.external_id %}

{{base_find.external_id|default:''}}

{% endif %}
{% with item.history_creation_date|date:"SHORT_DATETIME_FORMAT" as creation_date %} {% with item.history_creator.ishtaruser.full_label|add:"
"|add:creation_date|add:"" as creator %} {% field_flex "Created by" creator|safe %} {% endwith %}{% endwith %} {% if item.history_creation_date != item.last_edition_date %} {% with item.last_edition_date|date:"SHORT_DATETIME_FORMAT" as edition_date %} {% with item.history_modifier.ishtaruser.full_label|add:"
"|add:edition_date|add:"" as modifier %} {% trans "Last modified by" as lastmodifiedby_label %} {% field_flex lastmodifiedby_label modifier|safe %} {% endwith %}{% endwith %} {% endif %} {% field_flex "Excavation ID" base_find.excavation_id %} {% field_flex "Batch/object" base_find.batch %} {% if base_find.history_object and base_find.history_object.IS_ISOLATED_DICT %} {% field_flex "Batch/object" base_find.batch|from_dict:base_find.history_object.IS_ISOLATED_DICT %} {% endif %} {# START discovery dates #} {% if not base_find.discovery_date_taq %} {% trans "Discovery date" as discovery_date_label %} {% field_flex discovery_date_label base_find.discovery_date %} {% elif base_find.discovery_date.year == base_find.discovery_date_taq.year and base_find.discovery_date_taq|date:"d-m" == "31-12" and base_find.discovery_date|date:"d-m" == "01-01" %} {% trans "Discovery year" as discovery_year_label %} {% field_flex discovery_year_label base_find.discovery_date.year %} {% else %} {% trans "Discovery date (TPQ)" as discovery_tpq_label %} {% field_flex discovery_tpq_label base_find.discovery_date %} {% trans "Discovery date (TAQ)" as discovery_taq_label %} {% field_flex discovery_taq_label base_find.discovery_date_taq %} {% endif %} {# END discovery dates #} {% field_flex "Special interest" base_find.special_interest %} {% field_flex_detail "Context record" base_find.context_record %} {% field_flex "Town" base_find.context_record.town.label_with_areas %} {% field_flex "Parcel" base_find.context_record.parcel %} {% field_flex_detail "Operation" base_find.context_record.operation %} {% field_flex_detail "Archaeological site" base_find.context_record.archaeological_site %} {% field_flex_full "Description" base_find.description "
" "
" %} {% field_flex_full "Comment" base_find.comment "
" "
" %}
{% if base_find.x or base_find.y or base_find.topographic_localisation %}

{% trans "Coordinates"%}

{% field_flex "Point of topographic reference" base_find.topographic_localisation %}
{% trans "Coordinates" %}
{% trans "X:"%} {{base_find.x|default_if_none:"-"}} {% if base_find.estimated_error_x %} ({% trans "error:" %} {{base_find.estimated_error_x}}){% endif %}, {% trans "Y:"%} {{base_find.y|default_if_none:"-"}}, {% if base_find.estimated_error_y %} ({% trans "error:" %} {{base_find.estimated_error_y}}){% endif %}, {% trans "Z:"%} {{base_find.z|default_if_none:"-"}} {% if base_find.estimated_error_z %} ({% trans "error:" %} {{base_find.estimated_error_z}}){% endif %} {% if base_find.spatial_reference_system %} – {{base_find.spatial_reference_system.label}}{% if base_find.spatial_reference_system.srid %} - {% trans "SRID"%} {{base_find.spatial_reference_system.srid}}{% endif %} {% endif %}
{% endif %}
{% if forloop.counter0 %}
{% endif %} {% endfor %}

{% trans "Identification" %}

{% field_flex "Denomination" item.denomination %} {% field_flex "Free ID" item.label %} {% field_flex "Previous ID" item.previous_id %} {% field_flex "Excavation ID" item.excavation_ids %} {% field_flex "Museum ID" item.museum_id %} {% field_flex "Seal number" item.seal_number %} {% trans "Administrative index" as admin_index_label %} {% field_flex admin_index_label item.administrative_index %} {% include "ishtar/blocks/sheet_creation_section.html" %} {% field_flex_full "Mark" item.mark "
" "
" %}

{% trans "Description" %}

{% field_flex_full "Description" item.description "
" "
" %} {% field_flex "Is complete?" item.is_complete %} {% field_flex_multiple "Material types" item.material_types %} {% field_flex "Material type quality" item.material_type_quality %} {% field_flex_multiple "Object types" item.object_types %} {% field_flex "Object type quality" item.object_type_quality %} {% field_flex "Find number" item.find_number %} {% field_flex "Minimum number of individuals (MNI)" item.min_number_of_individuals %} {% field_flex_full "Decoration" item.decoration "
" "
" %} {% field_flex_full "Inscription" item.inscription "
" "
" %} {% field_flex "Manufacturing place" item.manufacturing_place %} {% field_flex_multiple "Communicability" item.communicabilities %} {% field_flex_full "Comment" item.comment "
" "
" %}
{% if item.length or item.width or item.height or item.diameter or item.thickness or item.volume or item.weight_string or item.dimensions_comment or item.clutter_long_side or item.clutter_short_side or item.clutter_height %}

{% trans "Dimensions" %}

{% field_flex "Length (cm)" item.length %} {% field_flex "Width (cm)" item.width %} {% field_flex "Height (cm)" item.height %} {% field_flex "Diameter (cm)" item.diameter %} {% field_flex "Thickness (cm)" item.thickness %} {% field_flex "Volume (l)" item.volume %} {% trans "Weight (g)" as weight_label %} {% field_flex weight_label item.weight_string %} {% field_flex "Clutter long side (cm)" item.clutter_long_side %} {% field_flex "Clutter short side (cm)" item.clutter_short_side %} {% field_flex "Clutter height (cm)" item.clutter_height %} {% field_flex_full "Dimensions comment" item.dimensions_comment "
" "
" %}
{% endif %}

{% trans "Sheet" %}

{% trans "Checked" as checked_label %} {% if item.CHECK_DICT %} {% field_flex checked_label item.checked|from_dict:item.CHECK_DICT %} {% endif%} {% if item.history_object and item.history_object.CHECK_DICT %} {% field_flex checked_label item.checked|from_dict:item.history_object.CHECK_DICT %} {% endif%} {% field_flex "Check date" item.check_date %}
{% if item.integrities.count or item.remarkabilities.count or item.conservatory_state or item.conservatory_comment or item.alterations.count or item.alteration_causes.count or item.preservation_to_considers.count or item.appraisal_date or item.treatment_emergency or item.insurance_value or item.estimated_value %}

{% trans "Preservation" %}

{% field_flex_multiple "Integrity / interest" item.integrities %} {% field_flex_multiple "Remarkability" item.remarkabilities %} {% field_flex "Conservatory state" item.conservatory_state %} {% field_flex_multiple "Alteration" item.alterations %} {% field_flex_multiple "Alteration cause" item.alteration_causes %} {% field_flex_multiple "Recommended treatments" item.preservation_to_considers %} {% field_flex "Treatment emergency" item.treatment_emergency %} {% field_flex "Estimated value" item.estimated_value|default_if_none:''|intcomma '' ' '|add:CURRENCY %} {% field_flex "Insurance value" item.insurance_value|default_if_none:''|intcomma '' ' '|add:CURRENCY %} {% field_flex "Appraisal date" item.appraisal_date %} {% field_flex_full "Conservatory comment" item.conservatory_comment "
" "
" %}
{% endif %} {% if item.dating or item.dating_comment %}

{% trans "Dating" %}

{% field_flex "Dating" item.dating %} {% field_flex_full "Comment on dating" item.dating_comment "
" "
" %} {% endif %} {% include "ishtar/blocks/sheet_json.html" %} {% if item.container %}

{% trans "Warehouse"%}

{% field_flex_detail "Container" item.container %} {% field_flex "Container ID" item.container.cached_location %} {% field_flex_detail "Responsible warehouse" item.container.responsible %} {% field_flex_detail "Location (warehouse)" item.container.location %} {% field_flex "Precise localisation" item.container.cached_division %}
{% endif %} {% if item.upstream_treatment or item.downstream_treatment %}

{% trans "Treatments"%}

{% if item.upstream_treatment %}

{% trans "Upstream treatment" %}

{% for items, treatment in item.limited_upstream_treatments %} {% endfor %}
  {% trans "Year - index" %} {% trans "Label" %} {% trans "Type" %} {% trans "State" %} {% trans "Related finds (max. 15 displayed)" %} {% trans "Doer" %} {% trans "Container" %} {% trans "Start date" %} {% trans "End date" %}
{{ treatment.year }} - {{treatment.index}} {{ treatment.label|default_if_none:"-" }} {{ treatment.treatment_types_lbl }} {{ treatment.treatment_state|default_if_none:"-" }} {% for item in items %}{{item}} {{ item|link_to_window}}{% endfor %} {{ treatment.person|default_if_none:"-" }} {{ treatment.container|default_if_none:"-" }} {{ treatment.start_date|default_if_none:"-" }} {{ treatment.end_date|default_if_none:"-" }}

{% trans "CSV" %} ({{ENCODING}})

{% endif %} {% if item.downstream_treatment %}

{% trans "Downstream treatment" %}

{% for items, treatment in item.limited_downstream_treatments %} {% endfor %}
  {% trans "Year - index" %} {% trans "Label" %} {% trans "Type" %} {% trans "State" %} {% trans "Related finds (max. 15 displayed)" %} {% trans "Doer" %} {% trans "Container" %} {% trans "Start date" %} {% trans "End date" %}
{{ treatment.year }} - {{treatment.index}} {{ treatment.label|default_if_none:"-" }} {{ treatment.treatment_types_lbl }} {{ treatment.treatment_state|default_if_none:"-" }} {% for item in items %}{{item}} {{ item|link_to_window}}{% endfor %} {{ treatment.person|default_if_none:"" }} {{ treatment.container|default_if_none:"-" }} {{ treatment.start_date|default_if_none:"" }} {{ treatment.end_date|default_if_none:"" }}

{% trans "CSV" %} ({{ENCODING}})

{% endif %} {% endif %} {% trans "Associated documents" as finds_docs %} {% if item.documents.count %} {% dynamic_table_document finds_docs 'documents' 'finds' item.pk '' output %} {% endif %} {% endblock %}