From: olivier <> Date: Fri, 9 Jan 2009 18:51:06 +0000 (+0000) Subject: templates: add item and collection metadata inheritance blocks X-Git-Tag: 1.1~735 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b770ffe0de246594b9caa8d630c8a67055cd99f0;p=telemeta.git templates: add item and collection metadata inheritance blocks --- diff --git a/telemeta/templates/telemeta/collection_detail.html b/telemeta/templates/telemeta/collection_detail.html index fa9812a5..22c7f335 100644 --- a/telemeta/templates/telemeta/collection_detail.html +++ b/telemeta/templates/telemeta/collection_detail.html @@ -51,6 +51,7 @@ {% if object.items.count %}{{ object.items.count }} {% ifequal object.items.count 1 %}item{% else %}items{% endifequal %}{% else %}No item{% endif %}
+ {% block general_info %}
{% if object.creator %}
Auteur / Cédant
{{ object.creator }}
{% endif %} @@ -70,8 +71,10 @@ {% endif %}
+ {% endblock general_info %}
+ {% block geoethnic_data %}

Données ethnographiques

@@ -90,9 +93,11 @@
+ {% endblock geoethnic_data %}
{% if object.is_published %}
+ {% block publication_data %}

Détails du document édité

@@ -104,9 +109,11 @@
+ {% endblock publication_data %}
{% endif %}
+ {% block document_identification %}

Identification du document

@@ -116,8 +123,10 @@
+ {% endblock document_identification %}
+ {% block document_data %}

Informations documentaires

@@ -147,6 +156,7 @@
+ {% endblock document_data %}

Items

{% with object.ordered_items as items %} diff --git a/telemeta/templates/telemeta/mediaitem_detail.html b/telemeta/templates/telemeta/mediaitem_detail.html index 9325aab8..02372c07 100644 --- a/telemeta/templates/telemeta/mediaitem_detail.html +++ b/telemeta/templates/telemeta/mediaitem_detail.html @@ -125,6 +125,7 @@ load_player({{ item.get_duration }}); {% endif %}
+ {% block general_info %}
{% if item.auteur %}
Auteur
{{ item.auteur }}
{% endif %} {% if item.annee_enr %}
Année d'enregistrement
{{ item.annee_enr }}
{% endif %} @@ -137,8 +138,10 @@ load_player({{ item.get_duration }});
Ref
{{ item.Ref }}
{% endif %}
+ {% endblock general_info %}
+ {% block geoethnic_data %}

Informations géographiques et ethnographiques

@@ -154,8 +157,10 @@ load_player({{ item.get_duration }}); {% endif %}
+ {% endblock geoethnic_data %}
+ {% block musical_performances %}

Formation musicale

@@ -183,8 +188,10 @@ load_player({{ item.get_duration }});
+ {% endblock musical_performances %}
+ {% block document_identification %}

Identification du document

@@ -193,8 +200,10 @@ load_player({{ item.get_duration }}); {% if item.face_plage %}
N° de l'item
{{ item.face_plage }}
{% endif %}
+ {% endblock document_identification %}
+ {% block document_data %}

Informations documentaires

@@ -213,6 +222,7 @@ load_player({{ item.get_duration }}); {% if item.titre_support %}
Titre support
{{ item.titre_support }}
{% endif %}
+ {% endblock document_data %}