diff --git a/templates/web/common/databox_field.twig b/templates/web/common/databox_field.twig index 2b1204ce44..d30948f912 100644 --- a/templates/web/common/databox_field.twig +++ b/templates/web/common/databox_field.twig @@ -11,7 +11,7 @@
- {% trans 'Source' %} : {{ field.get_metadata_namespace() }} / {{ field.get_metadata_tagname() }} + {% trans 'Source' %} : {{ field.get_tag().getGroupName() }} / {{ field.get_tag().getName() }}
{% if field.is_indexable() is empty %} diff --git a/templates/web/common/databox_field_restrictions.twig b/templates/web/common/databox_field_restrictions.twig index 82a9bd4468..6f25298f14 100644 --- a/templates/web/common/databox_field_restrictions.twig +++ b/templates/web/common/databox_field_restrictions.twig @@ -2,7 +2,7 @@

{% trans 'Les indications donnees ci dessous sont a titre informatif.' %}
{% trans 'Si vous ne les respectez pas, les documents seront correctement indexes, mais les metadonnees inscrites risquent d\'etre erronnees' %}
- {% set norm_name = '' ~ field.get_metadata_namespace() ~ '' %} + {% set norm_name = '' ~ field.get_tag().getGroupName() ~ '' %} {% trans %} Ces informations sont directement fournies par la norme de metadonnees de ce champ : {{ norm_name }} {% endtrans %} @@ -11,14 +11,14 @@


-{% if field.get_source().minLength() > 0 %} - {% set minLength = field.get_source().minLength() %} +{% if field.get_tag().getMinLength() > 0 %} + {% set minLength = field.get_tag().getMinLength() %} {% trans %} Le champ doit contenir {{ minLength }} caracteres minimum. {% endtrans %}
{% endif %} -{% if field.get_source().maxLength() > 0 %} - {% set maxLength = field.get_source().maxLength() %} +{% if field.get_tag().getMaxLength() > 0 %} + {% set maxLength = field.get_tag().getMaxLength() %} {% trans %} Le champ ne peut contenir plus de {{ maxLength }} caracteres. {% endtrans %}