diff --git a/templates/web/common/doctype_icons.html.twig b/templates/web/common/doctype_icons.html.twig
index 8136b910f1..dd5e9dc740 100644
--- a/templates/web/common/doctype_icons.html.twig
+++ b/templates/web/common/doctype_icons.html.twig
@@ -1,6 +1,6 @@
{% macro format(record)%}
- {% set doctype = record.get_type() %}
- {% if record.is_grouping() %}
+ {% set doctype = record.type %}
+ {% if record.story %}
{% elseif doctype == 'image' %}
diff --git a/templates/web/common/drop_down_options.html.twig b/templates/web/common/drop_down_options.html.twig
index 1b7fdec14a..7fb23045e5 100644
--- a/templates/web/common/drop_down_options.html.twig
+++ b/templates/web/common/drop_down_options.html.twig
@@ -1,40 +1,40 @@
{% macro prod(record, entry_id)%}
{% if not entry_id %}
▼
+ id="contextTrigger_{{record.baseId}}_{{record.recordId}}">▼
|
- {% if app['acl'].get(app['authentication'].getUser()).has_right_on_base(record.get_base_id, 'canputinalbum') and not record.is_grouping() %}
+ {% if app['acl'].get(app['authentication'].getUser()).has_right_on_base(record.baseId, 'canputinalbum') and not record.story %}
+ onclick="evt_add_in_chutier('{{record.databoxId}}','{{record.recordId}}',false,this);return(false);">
{{ 'action : ajouter au panier' | trans }}
+ onclick="evt_dwnl('{{record.databoxId}}_{{record.recordId}}',false,this);return(false);">
{{ 'action : exporter' | trans }}
+ onclick="evt_print('{{record.databoxId}}_{{record.recordId}}');return(false);">
{{ 'action : print' | trans }}
+ onclick="shareThis('{{record.baseId}}','{{record.recordId}}');">
{{ 'reponses:: partager' | trans }}
-
-
-
- {{ record.get_title() }}
-
-
- {{ record.get_status_icons|raw }}
-
+ {# @todo retrieve current position of record in result set #}
+ {% set number = 1 %}
+
+ {% if entry_id %}
+
+ {% elseif record.story %}
+
+ {% else %}
+
+ {% endif %}
+
+
{% endmacro %}
+
+
+ {{ record.title|default(record.originalName) }}
-
- {% set rollover_gif = record.get_rollover_thumbnail() %}
- {% set user_technical_display = app['settings'].getUserSetting(app['authentication'].getUser(), 'technical_display') %}
- {% set user_rollover_thumbnail =app['settings'].getUserSetting(app['authentication'].getUser(), 'rollover_thumbnail') %}
- {% set extraclass = '' %}
-
- {% if user_rollover_thumbnail == 'caption' and searchEngine is not null %}
- {% set extraclass = extraclass ~ ' captionTips' %}
- {% set tooltipsrc = path('prod_tooltip_caption', { 'sbas_id' : record.get_sbas_id(), 'record_id' : record.get_record_id(), 'context' : 'answer', 'number' : record.get_number() }) %}
- {% elseif user_rollover_thumbnail == 'caption' and searchEngine is null %}
- {% set extraclass = extraclass ~ ' captionTips' %}
- {% set tooltipsrc = path('prod_tooltip_caption', { 'sbas_id' : record.get_sbas_id(), 'record_id' : record.get_record_id(), 'context' : 'publi' }) %}
- {% elseif user_rollover_thumbnail == 'preview' %}
- {% set extraclass = extraclass ~ ' captionTips' %}
- {% set tooltipsrc = path('prod_tooltip_preview', { 'sbas_id' : record.get_sbas_id(), 'record_id' : record.get_record_id() }) %}
- {% endif %}
-
-
-
-
-
- {% if app['settings'].getUserSetting(app['authentication'].getUser(), 'doctype_display') == '1' %}
- {{ doctype_icons.format(record) }}
- {% endif %}
-
- {{ record.get_formated_duration() }}
-
-
-
- {% set extraclass = '' %}
- {% if rollover_gif %}
- {% set extraclass = 'rollover-gif-out' %}
- {% endif %}
- {{ thumbnail.format(record.get_thumbnail(), th_size, th_size, extraclass, true, lazyload) }}
- {% if rollover_gif %}
- {{ thumbnail.format(rollover_gif, th_size, th_size, 'rollover-gif-hover', true, lazyload) }}
- {% endif %}
-
-
-
+ {% set thumbnail = record.subdefs.containsKey('thumbnail') ? record.subdefs.get('thumbnail') : null %}
+ {% set preview = record.subdefs.containsKey('preview') ? record.subdefs.get('preview') : null %}
+ {% set rollover_thumbnail = record.subdefs.containsKey('thumbnailgif') ? record.subdefs.get('thumbnailgif') : null %}
+
+ {% set user_technical_display = app['settings'].getUserSetting(app['authentication'].getUser(), 'technical_display') %}
+ {% set user_rollover_thumbnail = app['settings'].getUserSetting(app['authentication'].getUser(), 'rollover_thumbnail') %}
+
+ {% set extraclass = '' %}
+ {% if user_rollover_thumbnail == 'caption' and searchEngine is not null %}
+ {% set extraclass = extraclass ~ ' captionTips' %}
+ {% set tooltipsrc = path('prod_tooltip_caption', { 'sbas_id' : record.databoxId, 'record_id' : record.recordId, 'context' : 'answer', 'number' : number }) %}
+ {% elseif user_rollover_thumbnail == 'caption' and searchEngine is null %}
+ {% set extraclass = extraclass ~ ' captionTips' %}
+ {% set tooltipsrc = path('prod_tooltip_caption', { 'sbas_id' : record.databoxId, 'record_id' : record.recordId, 'context' : 'publi' }) %}
+ {% elseif user_rollover_thumbnail == 'preview' %}
+ {% set extraclass = extraclass ~ ' captionTips' %}
+ {% set tooltipsrc = path('prod_tooltip_preview', { 'sbas_id' : record.databoxId, 'record_id' : record.recordId }) %}
+ {% endif %}
+
+ {# @todo find a proper way to map lifted flag to status icon img path #}
+ {#{{record.get_status_icons|raw}}#}
+
+
+ {% if app['settings'].getUserSetting(app['authentication'].getUser(), 'doctype_display') == '1' %}
+ {{doctype_icons.format(record)}}
+ {% endif %}
+
+ {% if record.type == 'video' and attribute(record.exif, constant('\\media_subdef::TC_DATA_DURATION')) is defined %}
+ {{ attribute(record.exif, constant('\\media_subdef::TC_DATA_DURATION')) }}
+ {% endif %}
+
+
+
+ {% set extraclass = '' %}
+ {% if rollover_thumbnail %}
+ {% set extraclass = 'rollover-gif-out' %}
+ {% endif %}
+ {# @todo thumbnail must be served using symbolic link, this feature is not yed merged #}
+ {#{% set thumb_path = thumbnail.path is defined ? thumbnail.path : "/path/to/subsitution" %}#}
+ {#{% set url = record|thumb_url(app, 'thumbnail', thumb_path) %}#}
+
+ {#{{thumbnail_macro.format(record, url, thumbnail.width, thumbnail.height, th_size, th_size, extraclass, true, true)}}#}
+
+ {% if rollover_thumbnail and rollover_thumbnail.path is defined %}
+ {#{% set url = record|thumb_url(app, 'thumbnailgif', thumb_path) %}#}
+ {#{{thumbnail_macro.format(record, url, rollover_thumbnail.width, rollover_thumbnail.height, th_size, th_size, 'rollover-gif-hover', true, true)}}#}
+ {#{% endif %}#}
+
+
+
|