diff --git a/apis_core/apis_tei/templates/apis_tei/birth_death.xml b/apis_core/apis_tei/templates/apis_tei/birth_death.xml index 11cc8fd..a4cb399 100644 --- a/apis_core/apis_tei/templates/apis_tei/birth_death.xml +++ b/apis_core/apis_tei/templates/apis_tei/birth_death.xml @@ -10,7 +10,7 @@ {% if object.start_end_date %} notAfter-iso="{{ object.start_end_date|date:'Y-m-d' }}" {% endif %} - >{{ object.start_date_written }} + >{{ object.clean_start_date_written }} {% for x in birth_rel %} {% if FULL %} @@ -48,7 +48,7 @@ {% if object.end_end_date %} notAfter-iso="{{ object.end_end_date|date:'Y-m-d' }}" {% endif %} - >{{ object.end_date_written }} + >{{ object.clean_end_date_written }} {% for x in death_rel %} {% if FULL %} diff --git a/apis_core/apis_tei/templates/apis_tei/date.xml b/apis_core/apis_tei/templates/apis_tei/date.xml index a654f41..4920a38 100644 --- a/apis_core/apis_tei/templates/apis_tei/date.xml +++ b/apis_core/apis_tei/templates/apis_tei/date.xml @@ -1,5 +1,5 @@ {% if object.start_date_written == object.end_date_written %} -{{ object.start_date_written }} +{{ object.clean_start_date_written }} {% elif object.start_date_written and object.end_date_written %} {{ object.start_date_written }} – {{ object.end_date_written }} + >{{ object.clean_start_date_written }} – {{ object.clean_end_date_written }} {% elif object.start_date_written %} {{ object.start_date_written }} + >{{ object.clean_start_date_written }} {% elif object.end_date_written %} {{ object.end_date_written }} + >{{ object.clean_end_date_written }} {% else %} {% endif %} \ No newline at end of file