From a605a24088665cb517f2a572c0e8cb628d5c96c6 Mon Sep 17 00:00:00 2001 From: julia <> Date: Fri, 7 Mar 2008 14:10:24 +0000 Subject: [PATCH] affichage item v1 + bug largeur liste definition list --- telemeta/htdocs/css/telemeta.css | 4 +- telemeta/htdocs/js/application.js | 1 + telemeta/templates/collection_detail.html | 4 +- telemeta/templates/mediaitem_detail.html | 100 +++++++++++++++++----- 4 files changed, 85 insertions(+), 24 deletions(-) diff --git a/telemeta/htdocs/css/telemeta.css b/telemeta/htdocs/css/telemeta.css index f9a1566a..dfcf8c4f 100644 --- a/telemeta/htdocs/css/telemeta.css +++ b/telemeta/htdocs/css/telemeta.css @@ -369,7 +369,7 @@ dl.listing dt { color: #444; } dl.listing dd { - + width: 70%; font-weight: bold; } .extraInfos h4 { @@ -396,7 +396,7 @@ dl.listing dd { color: #EFEFEF; } .extraInfos h4.on a { - color: #EFEFEF; + color: #FFF; background-position: 0 -17px; } .extraInfos h4.on a:hover { diff --git a/telemeta/htdocs/js/application.js b/telemeta/htdocs/js/application.js index c3620d80..255494fa 100755 --- a/telemeta/htdocs/js/application.js +++ b/telemeta/htdocs/js/application.js @@ -11,6 +11,7 @@ function ployBlocks() { extraInfos[i].onclick = function() { this.parentNode.getElementsByTagName("div")[0].toggle(); this.toggleClassName('on'); + return false; } } } \ No newline at end of file diff --git a/telemeta/templates/collection_detail.html b/telemeta/templates/collection_detail.html index fc933ba1..63c7ee4c 100644 --- a/telemeta/templates/collection_detail.html +++ b/telemeta/templates/collection_detail.html @@ -68,8 +68,8 @@

Données ethnographiques

-
État / Nation
{% for item in object.items.all %}{{item.etat}}{% if not forloop.last %},{% endif %}{% endfor %}
-
Ethnie / Groupe social
{% for item in object.items.all %}{{item.ethnie_grsocial}}{% if not forloop.last %},{% endif %}{% endfor %}
+
État / Nation
{% for item in object.items.all %}{% if item.etat %}{{item.etat}}{% if not forloop.last %}, {% endif %}{% endif %}{% endfor %}
+
Ethnie / Groupe social
{% for item in object.items.all %}{% if item.ethnie_grsocial %}{{item.ethnie_grsocial}}{% if not forloop.last %}, {% endif %}{% endif %}{% endfor %}
Contexte de l’enregistrement
{{ object.terrain_ou_autre }}
diff --git a/telemeta/templates/mediaitem_detail.html b/telemeta/templates/mediaitem_detail.html index 45a7fa00..17d89d86 100644 --- a/telemeta/templates/mediaitem_detail.html +++ b/telemeta/templates/mediaitem_detail.html @@ -2,6 +2,8 @@ {% load telemeta_utils %} {% block extra_javascript %} + + {% endblock %} @@ -53,27 +55,85 @@ {% endif %} -
-
-
- - {% for field in item.to_list %} - {% ifnotequal field.name "title" %} - {% ifnotequal field.name "file" %} -
{{ field.name }}
- {% ifequal field.name "collection" %} -
{{ field.value }}
- {% else %} -
{{ field.value }}
- {% endifequal %} - {% endifnotequal %} - {% endifnotequal %} - {% endfor %} -
-
+
+
+
+
Auteur
{{ item.auteur }}
+
Année d'enregistrement
{{ item.annee_enr }}
+
Date d'enregistrement
{{ item.dates_enregistr }}
+
Titre
{{ item.title }}
+
Traduction du titre
{{ item.transcrip_trad }}
+
Collection
{{ item.collection.title }}
+
Durée
{{ item.duree }}
+ {% if item.collection.ispublished %} +
Ref
{{ item.Ref }}
+ {% endif %} +
+
+
+
+

Informations géographiques et ethnographiques

+
+
+
Continent
{{ item.continent }}
+
État / Nation
{{ item.etat }}
+
Région / Village
{{ item.region_village }}
+
Ethnie/ Groupe social
{{ item.ethnie_grsocial }}
+
Aire culturelle
{{ item.aire_geo_cult }}
+
Contexte ethnographique
?
+
Mots clés
{{ item.fonction_usage }}
+
Commentaires
{{ item.comm_fonctusage }}
+
+
+
+
+
+

Formation musicale

+
+
+
Forme / genre vernaculaire
{{ item.form_genr_style }}
+
Forme / genre générique
{{ item.formstyl_generi }}
+
+ + bloc 4 col +
+
+
+
+

Identification du document

+
+
+
Format
{{ item.format }}
+
Cote item
{{ item.id }}
+
N° de l'item
{{ item.face_plage }}
+
+
+
+
+
+

Informations documentaires

+
+
+
choixcollecteur
{{ item.choixcollecteur }}
+
comm fonctusage
{{ item.comm_fonctusage }}
+
Copie de
{{ item.copie_de }}
+
Enregistré par
{{ item.enregistre_par }}
+
File
{{ item.file }}
+
get duration
{{ item.get_duration }}
+
moda execut
{{ item.moda_execut }}
+
nroband nropiec
{{ item.nroband_nropiec }}
+
Remarques
{{ item.remarques }}
+
Repère bande
{{ item.repere_bande }}
+
Struct modale
{{ item.struct_modale }}
+
Struct rythm
{{ item.struct_rythm }}
+
Titre support
{{ item.titre_support }}
+
+
+
+
-
+ {% endblock %} {% else %}

No such item

-- 2.39.5