# HG changeset patch # User Alexandre Segura # Date 1488390640 -3600 # Node ID 49a7538085052cbe60c4ff5873d6656f48dd3739 # Parent 9c5f2d97863ac2d0935d822812b321aecd5aaeee Display call for contributions on top of collection page, fix item metadata display. diff -r 9c5f2d97863a -r 49a753808505 src/iconolab/templates/iconolab/collection_home.html --- a/src/iconolab/templates/iconolab/collection_home.html Wed Mar 01 18:49:21 2017 +0100 +++ b/src/iconolab/templates/iconolab/collection_home.html Wed Mar 01 18:50:40 2017 +0100 @@ -7,7 +7,7 @@ {% load iconolab_tags %} {% block content %} -
+
{% thumbnail collection.image "300x300" crop=False as im %} @@ -17,16 +17,51 @@ {{ collection.description | safe }}

-
+

{{ collection.verbose_name }} Fonds Iconolab

+ {% if contributions_pagination_data.list %} +

Appels à contribution

+ {% for annotation in contributions_pagination_data.list %} +
+
+
+ {% thumbnail annotation.image.media "250x250" crop=False as im %} + + + + + + + + + {% endthumbnail %} +
+
+
+

{{ annotation.current_revision.title }}

+

+ {% for contributor in annotation.stats.contributors %} + {{ contributor }} + {% endfor %} +

+

{{ annotation.current_revision.description }}

+ {% for tagging_info in annotation.current_revision.tagginginfo_set.all %} +

+  {{ tagging_info.tag.label }} + {{ tagging_info.accuracy }} + {{ tagging_info.relevancy }} +

+ {% endfor %} +
+
+ {% endfor %} + {% endif %} +
-
- {% include "partials/image_annotations_list.html" with annotation_list=contributions_pagination_data.list %} - {% if contributions_list %} - {% include "partials/collection_home_pagination_links.html" with pagination_data=contributions_pagination_data list_identifier="contributions" %} - {% endif %} -
{% for item in items_pagination_data.list %} diff -r 9c5f2d97863a -r 49a753808505 src/iconolab/templates/iconolab/detail_image.html --- a/src/iconolab/templates/iconolab/detail_image.html Wed Mar 01 18:49:21 2017 +0100 +++ b/src/iconolab/templates/iconolab/detail_image.html Wed Mar 01 18:50:40 2017 +0100 @@ -37,34 +37,11 @@
- - -
-
- {% 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 %} @@ -93,6 +70,28 @@
+ {% endblock %} diff -r 9c5f2d97863a -r 49a753808505 src_js/iconolab-bundle/src/components/editor/Canvas.vue --- a/src_js/iconolab-bundle/src/components/editor/Canvas.vue Wed Mar 01 18:49:21 2017 +0100 +++ b/src_js/iconolab-bundle/src/components/editor/Canvas.vue Wed Mar 01 18:50:40 2017 +0100 @@ -523,7 +523,6 @@