{% load i18n window_field from_dict link_to_window window_tables window_header humanize %}

{{ base_find.complete_id }}

{% if base_find.complete_id != base_find.short_id %}

{{ base_find.short_id }}

{% endif %} {% if base_find.external_id %}

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

{% endif %}
{% field_flex_detail "Operation" base_find.context_record.operation first %} {% field_flex_detail "Archaeological site" base_find.context_record.archaeological_site first %} {% field_flex_detail "Context record" base_find.context_record.short_label first %} {% field_flex "Town" base_find.context_record.town_label_with_areas '' '' first %} {% field_flex "Parcel" base_find.context_record.parcel '' '' first %} {# 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 '' '' first %} {% 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 '' '' first %} {% else %} {% trans "Discovery date (TPQ)" as discovery_tpq_label %} {% field_flex discovery_tpq_label base_find.discovery_date '' '' first %} {% trans "Discovery date (TAQ)" as discovery_taq_label %} {% field_flex discovery_taq_label base_find.discovery_date_taq '' '' first %} {% endif %} {# END discovery dates #} {% field_flex "Excavation ID" base_find.excavation_id '' '' first %} {% field_flex "Batch/object" base_find.batch '' '' first %} {% 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 '' '' first %} {% endif %} {% field_flex "Special interest" base_find.special_interest '' '' first %} {% field_flex_full "Description" base_find.description "
" "
" first %} {% field_flex_full "Comment" base_find.comment "
" "
" first %}
{% with item=base_find %} {% include "ishtar/blocks/sheet_json.html" %} {% endwith %} {% if not is_external %}

{% trans "Sheet"%}

{% 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 '' '' first %} {% 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 '' '' first %} {% endwith %}{% endwith %} {% endif %}
{% endif %} {% if base_find.point_2d or base_find.x or base_find.y or base_find.topographic_localisation %} {% if base_find.point_2d %}
{% endif %}

{% trans "Localisation"%}

{% with geo_item=base_find %} {% include "ishtar/blocks/sheet_map.html"%}
{% include "ishtar/blocks/sheet_coordinates.html"%} {% field_flex_full "Point of topographic reference" base_find.topographic_localisation %}
{% endwith %}
{% endif %}