# HG changeset patch # User Alexandre Segura # Date 1488378561 -3600 # Node ID 74e0a5ea614aac4243d404396b91456bc69a819b # Parent 733be8cac793641b0a8cf14854dbad12016f347a Display item metadata below image. diff -r 733be8cac793 -r 74e0a5ea614a src/iconolab/templates/iconolab/detail_image.html --- a/src/iconolab/templates/iconolab/detail_image.html Wed Mar 01 15:04:31 2017 +0100 +++ b/src/iconolab/templates/iconolab/detail_image.html Wed Mar 01 15:29:21 2017 +0100 @@ -44,6 +44,27 @@ thumbnail="{% thumbnail image.media '100x100' crop=False as thumb %}{{ thumb.url }}{% endthumbnail %}" v-bind:is-authenticated="isAuthenticated"> +
+
+ {% if item.metadatas.designation %}
Désignation
{{item.metadatas.designation}}
{% endif %} + {% if item.metadatas.authors %}
Auteur(s)
{{item.metadatas.designation}}
{% endif %} + {% if item.metadatas.field %}
Domaine
{{item.metadatas.field}}
{% endif %} + {% if item.metadatas.conservation_location %}
Conservé à
{{item.metadatas.conservation_location}}
{% endif %} + {% if item.metadatas.datation %}
Datation
{{item.metadatas.datation}}
{% endif %} + {% if item.metadatas.technics %}
Techniques
{{item.metadatas.technics}}
{% endif %} + {% if item.metadatas.measurements %}
Mesures : {{item.metadatas.measurements}}{% endif %} + {% if item.metadatas.create_or_usage_location %}
Lieu de création/utilisation
{{item.metadatas.create_or_usage_location}}
{% endif %} + {% if item.metadatas.discovery_context %}
Contexte de découverte
{{item.metadatas.discovery_context}}
{% endif %} + {% if item.metadatas.photo_credits %}
Crédits photographiques
{{item.metadatas.photo_credits}}
{% endif %} + {% if item.metadatas.inventory_number %}
Numéro d'inventaire
{{item.metadatas.inventory_number}}
{% endif %} +
+ {% if item.metadatas.joconde_ref %} + + Cet objet dans Joconde, catalogue collectif des collections des musées de France + + {% endif %} +
+
{% csrf_token %} @@ -71,8 +92,8 @@ + - {% endblock %} {% block footer_js %} diff -r 733be8cac793 -r 74e0a5ea614a src/iconolab/views/objects.py --- a/src/iconolab/views/objects.py Wed Mar 01 15:04:31 2017 +0100 +++ b/src/iconolab/views/objects.py Wed Mar 01 15:29:21 2017 +0100 @@ -389,6 +389,7 @@ context['image_guid'] = self.kwargs.get('image_guid', '') context['collection'] = collection context['image'] = image + context['item'] = image.item context['form'] = AnnotationRevisionForm() return render(request, 'iconolab/detail_image.html', context) diff -r 733be8cac793 -r 74e0a5ea614a src_js/iconolab-bundle/src/components/editor/Canvas.vue --- a/src_js/iconolab-bundle/src/components/editor/Canvas.vue Wed Mar 01 15:04:31 2017 +0100 +++ b/src_js/iconolab-bundle/src/components/editor/Canvas.vue Wed Mar 01 15:29:21 2017 +0100 @@ -1,5 +1,5 @@