{% set selectionLength = records|length %} {% set nbHdSubstitute = 0 %} {% set nbThumbSubstitute = 0 %} {% for record in records %} {% set subdefs = record.get_subdefs() %} {% if subdefs|length > 0 %} {% for key, subdef in subdefs if subdef.is_substituted() %} {% if key == 'document' %} {% set nbHdSubstitute = nbHdSubstitute + 1 %} {% endif%} {% if key == 'thumbnail' %} {% set nbThumbSubstitute = nbThumbSubstitute + 1 %} {% endif%} {% endfor %} {% endif %} {% endfor %}
{# jquery Tabs #}
{# jquery menu #}
{# subdef section #}
 {% trans "Reconstruire les sous definitions" %}  {% if nbThumbSubstitute > 0 %}
{% trans "Attention, certain documents ont des sous-definitions substituees"%}

{% else %} {% endif %}
{% if selectionLength == 1 %} {% for record in records %} {% if record.get_type() == 'video' %}
{% trans "screenshot video" %}

{% set previewHtml5 = record.getSubdfefByDeviceAndMime(constant('\\databox_subdef::DEVICE_SCREEN'), ['video/ogg', 'video/mp4', 'video/webm']) %} {% set dataW = constant('media_subdef::TC_DATA_WIDTH') %} {% set dataH = constant('media_subdef::TC_DATA_HEIGHT') %} {% set width = record.get_technical_infos(dataW) %} {% set height = record.get_technical_infos(dataH) %} {% if width and height %} {% set ratio = (width / height)|number_format(2, '.') %} {% else %} {% set ratio = '' %} {% endif %}
{% trans 'take a screenshot' %}

{% trans 'To take a screenshot click on camera' %}

{% trans 'take a screenshot' %}
{% endif %} {% endfor %} {% endif %}
{% trans %}Changes for rotation will be applied only on the sub-definitions of "image" type.{% endtrans %}
 {% trans "image rotation" %} 
{# hd sub section #} {% if selectionLength == 1 and (app['phraseanet.registry'].get('GV_seeOngChgDoc') or app['phraseanet.registry'].get('GV_seeNewThumb')) %} {% for record in records %}
{% if "unknown" == record.get_type() %} {% trans "Substitution is not possible for this kind of record" %} {% else %} {% if app['phraseanet.registry'].get('GV_seeOngChgDoc') %}
 {% trans "substitution HD" %} 

{% endif %} {% if app['phraseanet.registry'].get('GV_seeNewThumb') %}
 {% trans "substitution SD" %} 
{% endif %} {% endif %}
{% endfor %} {% endif %} {# exiftool section #} {% if metadatas %} {% for record in records %}
{% set thumbnail = record.get_thumbnail() %}

Metadatas


{% for metadata in metadatas %} {% endfor %}
{{ metadata.getTag().getTagname() }} {{ metadata.getValue().asString() }}
{% endfor %} {% endif %}
{# hidden iframe to handle upload #}