From ca92ada04a5440c7bcfb9ec6f1bae3fc9f3902ab Mon Sep 17 00:00:00 2001
From: Étienne Loks {{ item.operation.complete_label }} {{ item.operation.temporary_label }}
-{%endif%}
- {{ item.unit_type }} {{ item.period.all|join:", " }} {{ item.place }} {{ item.section_and_parcel }} {{ item.description }} {{ item.length }} {{ item.width }} {{ item.depth }} {{ item.activity }} {{ item.identification }} {{ item.interpretation }} {{ item.TAQ }} {{ item.TAQ_estimated }} {{ item.TPQ }} {{ item.TPQ_estimated }} {{ item.operation.year }} {{ item.operation.numeric_reference }} {{ item.operation.patriarche_code }} {{ item.operation.internal_reference }} {{ item.operation.head_scientist.full_label }} {% if item.operation.is_active %}{%trans "Active file"%} {{ item.operation.closing.date }} {%trans "by" %} {{ item.operation.closing.user }} {{ item.operation.operation_type }} {{ item.operation.remains.all|join:", " }} {{ item.operation.periods.all|join:", " }} {{ item.operation.comment }} {{ item.operation.towns.all|join:", " }}
+{% else %}
+
+{%endif%}
+{{item.full_label}} {{ item.unit }} {{ item.datings.all|join:", " }} {{ item.parcel.town }} {{ item.parcel.short_label }} {{ item.description }} {{ item.length }} {{ item.width }} {{ item.depth }} {{ item.activity }} {{ item.identification }} {{ item.interpretation }} {{ item.taq }} {{ item.taq_estimated }} {{ item.tpq }} {{ item.tpq_estimated }} {{ item.parcel.operation.year }} {{ item.parcel.operation.numeric_reference }}
+{{ item.parcel.operation.code_patriarche }}
+{{ item.parcel.operation.internal_reference }}
+{{ item.parcel.operation.in_charge.full_label }}
+{% if item.parcel.operation.is_active %}
+{%trans "Active file"%}{% trans "Context Unit"%}
-
-{% if item.operation.patriarche_code %}{% trans "Description"%}
-
-{% trans "Interpretation"%}
-
-{% if item.activity %}{% trans "Datations"%}
-{% if item.TAQ %}{% trans "Operation resume"%}
-{% trans "Localisation"%}
-{% trans "Documentation"%}
-
-
-
-
-
- {% for doc in item.operation.doc.all %}
- {% trans "Title" %}
- {% trans "Type" %}
- {% trans "Authors" %}
- {% trans "Localisation" %}
-
-
- {% empty %}
- {{ doc.title }}
- {{doc.type}}
- {{ doc.author.all|join:", " }}
- {{ doc.localisation }}
-
- {% endfor %}
-{% trans "No document associated to this context unit" %} {% trans "Finds"%}
-
-
-
-{% endblock %}
diff --git a/ishtar/templates/sheet_contextrecord.html b/ishtar/templates/sheet_contextrecord.html
new file mode 100644
index 000000000..0f7259f3a
--- /dev/null
+++ b/ishtar/templates/sheet_contextrecord.html
@@ -0,0 +1,136 @@
+{% extends "sheet.html" %}
+{% load i18n %}
+{% block content %}
+
-
- {% for find in item.find.all %}
- {% trans "Find_complete_Label" %}
- {% trans "Find_complete_material_type_Label" %}
- {% trans "Context_record" %}
- {% trans "Periods" %}
- {% trans "Description" %}
- {% trans "Weight" %}
- {% trans "Numbers" %}
- {% trans "Parcel" %}
-
-
- {% if item.operation.patriarche_code %}
- {% empty %}
- {% trans "item.find.complete_label" %} {%endif%}
- {% if item.operation.patriarche_code_not_recorded %}{% trans "item.find.not_patriarche_complete_label" %} {%endif%}
- {% if item.operation.patriarche_code %}{% trans "item.find.material_type_complete_label" %} {%endif%}
- {% if item.operation.patriarche_code_not_recorded %}{% trans "item.find.material_type_not_patriarche_complete_label" %} {%endif%}
-
- {{item.find.context_record}}
- {{ item.find.period.all|join:", " }}
- {{ item.find.description }}
- {{ item.find.weight }}
- {{ item.find.numbers }}
- {{ item.find.record_unit.section_and_parcel }}
- {% trans "Details" %}
-
- {% endfor %}
-{% trans "No find associated to this operation" %} {% trans "Context Record"%}
+
+{% if item.parcel.operation.code_patriarche %}
+{% trans "Description"%}
+
+{% trans "Interpretation"%}
+
+{% if item.activity %}{% trans "Datations"%}
+{% if item.taq %}{% trans "Operation resume"%}
+
{{ item.parcel.operation.closing.date }} +{%trans "by" %} {{ item.parcel.operation.closing.user }}
+{% endif %} +{{ item.parcel.operation.operation_type }}
+{{ item.parcel.operation.remains.all|join:", " }}
+{{ item.parcel.operation.periods.all|join:", " }}
+{% if item.parcel.operation.comment %}{{ item.parcel.operation.comment }}
{%endif%} +{{ item.parcel.operation.towns.all|join:", " }}
+ +{# TODO: Displayed as Year/index/Commune/Common_name This should be a link to the file sheet of the related operation #} +{% else %} +{% endif %} + +| {% trans "Title" %} | +{% trans "Type" %} | +{% trans "Authors" %} | +{% trans "Localisation" %} | +
|---|---|---|---|
| {{ doc.title }} | +{{doc.type}} | +{{ doc.author.all|join:", " }} | +{{ doc.localisation }} | +
| {% trans "No document associated to this context record" %} | |||
| {% trans "Find" %} | +{% trans "Material type" %} | +{% trans "Context record" %} | +{% trans "Periods" %} | +{% trans "Description" %} | +{% trans "Weight" %} | +{% trans "Numbers" %} | +{% trans "Parcel" %} | ++ |
|---|---|---|---|---|---|---|---|---|
| {{ find.full_label }} | +{# Displayed as (Patriarche operation code)-(Record unit label)-(Finds label). #} +{# or displayed as (Year)-(index)-(Record unit label)-(Finds label). #} +{{ find.get_last_item.material_type_label }} | +{# Displayed as (Patriarche operation code)-(Record unit label)-(material code)-(Finds label indexed by material type). #} +{# or displayed as (Year)-(index)-(Record unit label)-(material code)-(Finds label indexed by material type) #} + +{{find.context_record.short_label}} | +{{ find.get_last_item.dating}} | {# TODO .all|join:", " ? #} +{{ find.get_last_item.description }} | +{{ find.get_last_item.weight }} | +{{ find.get_last_item.item_number }} | +{{ item.context_record.parcel.short_label }} | +{% trans "Details" %} | + {#{%trans "Details"%}#} +
| {% trans "No find associated to this operation" %} | ||||||||