{% set selectionLength = records|length %} {% set nbHdSubstitute = 0 %} {% set nbSubdefSubstitute = 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 %} {% else %} {% set nbSubdefSubstitute = nbSubdefSubstitute + 1 %} {% endif%} {% endfor %} {% endif %} {% endfor %}
{# jquery Tabs #}
{# jquery menu #}
{# subdef section #}
 {{ "Reconstruire les sous definitions" | trans }}  {% if nbSubdefSubstitute > 0 %}
{{ "Attention, certain documents ont des sous-definitions substituees" | trans }}

{% else %} {% endif %}

{{ 'Are you sure you want to rebuild the sub-definitions of selected records?' | trans }}

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

{% set outputFormats = record.getSubdfefByDeviceAndMime(null, ['image/jpeg', 'image/png']) %} {% 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 technical_info = record.get_technical_infos %} {% set width = technical_info[dataW].value %} {% set height = technical_info[dataH].value %} {% if width and height %} {% set ratio = (width / height)|number_format(2, '.') %} {% else %} {% set ratio = '' %} {% endif %}
{{ 'take a screenshot' | trans }}

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

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

{% endif %} {% if app['conf'].get(['registry', 'modules', 'thumb-substitution']) %}
 {{ "substitution SD" | trans }} 
{% 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 %} {% if selectionLength == 1 and recordSubdefs is not empty %}
{% for subdef in recordSubdefs %}
{{ subdef.label }}

{% endfor %}
{% endif %}
{# hidden iframe to handle upload #}