{% macro format_diapo(record, resizable) %} {% if resizable == false %} {% set cont_width = 130 %} {% set cont_height = 140 %} {% else %} {% set cont_width = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'editing_images_size') %} {% set cont_height = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'editing_images_size') %} {% endif %} {% set i = record.getNumber() %} {% set thumbnail = record.get_thumbnail().get_url() %} {% set ratio = 80 %} {% set width = record.get_thumbnail().get_width() %} {% set height = record.get_thumbnail().get_height() %} {% if width > height %} {% set top = 50 - ( (ratio / 2) * height / width ) %} {% set left = 50 - ( (ratio * height / (2 * width)) * width / height ) %} {% set width = ratio ~ "%" %} {% set height = "auto" %} {% else %} {% set top = (100 - ratio) / 2 %} {% set left = ((100 - (ratio * width / height)) / 2) %} {% set width = "auto" %} {% set height = ratio ~ "%" %} {% endif %} {% set class_status = 'nostatus' %} {% if app.getAclForUser(app.getAuthenticatedUser()).has_right_on_base(record.get_base_id(), constant('\\ACL::CHGSTATUS')) %} {% set class_status = '' %} {% endif %}
{{ record.get_original_name() }}
{% endmacro %} {% macro HTML_fieldlist(recordsRequest, fields) %}
{% trans %}prod::editing::fields: status{% endtrans %}
{% set cssfile = '000000' %} {% if app['settings'].getUserSetting(app.getAuthenticatedUser(), 'css') %} {% set cssfile = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'css') %} {% endif %} {% for field in fields %} {% set i = field.get_id() %} {% if field.is_readonly() is empty and field.get_gui_editable()== 1 %}
{##} {% if field.get_dces_element %} {{ 'Ce champ est decrit comme un element DublinCore' | trans }} {% endif %} {% if field.get_thumbtitle %} {% endif %} {{field.get_label(app['locale'])}} {% if field.is_required() %} * {% endif %} : ???
{% endif %} {% endfor %} {% endmacro %} {% macro HTML_Train(recordsRequest, is_reg) %} {% for record in recordsRequest %} {% if loop.index != 1 or is_reg != '1' %} {{_self.format_diapo(record, true)}} {% endif %} {% endfor %} {% endmacro %} {% set actionable = recordsRequest|length %} {% set not_actionable = recordsRequest.received|length - actionable %} {% set editing_top_box_height = app['settings'].getUserSetting(app.getAuthenticatedUser(), 'editing_top_box') %}
{% if recordsRequest.isSingleStory() %}
{{_self.format_diapo(recordsRequest.singleStory(), false)}}
{{_self.HTML_Train(recordsRequest, '1')}}
{% else %}
{{_self.HTML_Train(recordsRequest)}}
{% endif %}
{{_self.HTML_fieldlist(recordsRequest, fields)}}
{{ 'Aucun statut editable' | trans }}
{{ 'Les status de certains documents ne sont pas accessibles par manque de droits' | trans }}
{% for n, stat in status %} {% endfor %}
{% if stat['img_off'] %} {% endif %} {{ stat['label0'] }}
{% if stat['img_on'] %} {% endif %} {{ stat['label1'] }}
{% if thesaurus %}

+{{ databox.get_label(app['locale']) }}

{{ 'phraseanet::chargement' | trans }}
{% endif %}
{{ 'prod::editing::replace: remplacer dans le champ' | trans }}
{{ 'prod::editing:replace: chaine a rechercher' | trans }}
{{ 'prod::editing:remplace: chaine remplacante' | trans }}
{{ 'prod::editing:remplace: options de remplacement' | trans }} {{ 'prod::editing:remplace::option : utiliser une expression reguliere' | trans }} {% set help_link = 'https://secure.wikimedia.org/wikipedia/en/wiki/Regular_expression' %} {% if app['locale'] == 'de' %} {% set help_link = 'https://secure.wikimedia.org/wikipedia/de/wiki/Regul%C3%A4rer_Ausdruck' %} {% elseif app['locale'] == 'fr' %} {% set help_link = 'https://secure.wikimedia.org/wikipedia/fr/wiki/Expression_rationnelle' %} {% elseif app['locale'] == 'ar' %} {% set help_link = 'https://secure.wikimedia.org/wikipedia/ar/wiki/%D8%AA%D8%B9%D8%A7%D8%A8%D9%8A%D8%B1_%D9%86%D9%85%D8%B7%D9%8A%D8%A9' %} {% endif %}

{{ 'prod::editing:remplace::option la valeur du cahmp doit etre exacte' | trans }}
{{ 'prod::editing:remplace::option la valeur est comprise dans le champ' | trans }}
{{ 'prod::editing:remplace::option respecter la casse' | trans }}






    {{ 'prod::editing:indexation en cours' | trans }}

    /