--- a/src/iconolab_mcc/templates/iconolab/metadatas/detail_item_metadatas.html Thu Jul 05 12:22:29 2018 +0200
+++ b/src/iconolab_mcc/templates/iconolab/metadatas/detail_item_metadatas.html Thu Jul 05 12:43:26 2018 +0200
@@ -11,5 +11,11 @@
{% if item.metadatas.metadata_obj.discovery_context %}<h5>Contexte de découverte : <small>{{item.metadatas.metadata_obj.discovery_context}}</small></h5>{% endif %}
{% if item.metadatas.metadata_obj.photo_credits %}<h5>Crédits photographiques : <small>{{item.metadatas.metadata_obj.photo_credits}}</small></h5>{% endif %}
{% if item.metadatas.metadata_obj.inventory_number %}<h5>Numéro d'inventaire : <small>{{item.metadatas.metadata_obj.inventory_number}}</small></h5>{% endif %}
-{% if item.metadatas.metadata_obj.joconde_ref %}<h5><a href="{% joconde_link item.metadatas %}" target="_blank">Cet objet dans Joconde, catalogue collectif des collections des musées de France</a></h5>{% endif %}
+{% if item.metadatas.metadata_obj.joconde_ref %}
+{% with item_link_url=item.get_item_link_url item_link_text=item.get_item_link_text %}
+{% if item_link_url and item_link_text %}
+<h5><a href="{{item_link_url}}" target="_blank">{{item_link_text}}</a></h5>
+{% endif %}
+{% endwith %}
+{% endif %}
<br>