{% if record.isStory() %} {{ 'Story_id' | trans }} : {{ record.recordId() }}
{% else %} {{ 'Record_id' | trans }} : {{ record.recordId() }}
{% endif %} {% if not record.isStory() %} {% block td_original_name %} {{ 'Nom Original' | trans }} : {{ record.getOriginalName() }} {% endblock %} {% block td_mime %} {{ record.getMimeType() }} {% endblock %} {% block td_weight %} {# @todo we should index document weight as well #} {% endblock %}
{% block td_size %} {% set width = record.exif.get(constant('media_subdef::TC_DATA_WIDTH')) %} {% set height = record.exif.get(constant('media_subdef::TC_DATA_HEIGHT')) %} {% if width is not none and height is not none %} {{ width ~ " x " ~ height }} {% endif %} {% endblock %}
{% block td_camera_model %} {% if record.exif.get(constant('media_subdef::TC_DATA_CAMERAMODEL')) is not none %} {{ 'Camera Model' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_CAMERAMODEL')) }}
{% endif %} {% endblock %} {% block td_color_space %} {% if record.exif.get(constant('media_subdef::TC_DATA_COLORSPACE')) is not none %} {{ 'Color space' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_COLORSPACE')) }}
{% endif %} {% endblock %} {% block td_channels %} {% if record.exif.get(constant('media_subdef::TC_DATA_CHANNELS')) is not none %} {{ 'Channels' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_CHANNELS')) }}
{% endif %} {% endblock %} {% block td_color_depth %} {% if record.exif.get(constant('media_subdef::TC_DATA_COLORDEPTH')) is not none %} {{ 'Color Depth' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_COLORDEPTH')) }} bits
{% endif %} {% endblock %} {% block td_iso_sensibility %} {% if record.exif.get(constant('media_subdef::TC_DATA_ISO')) is not none %} {{ 'ISO sensibility' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_ISO')) }}
{% endif %} {% endblock %} {% block td_flash %} {% if record.exif.get(constant('media_subdef::TC_DATA_FLASHFIRED')) is not none %} {{ 'Flash' | trans }} : {% if record.exif.get(constant('media_subdef::TC_DATA_FLASHFIRED')) %} {{ 'yes' | trans }} {% else %} {{ 'no' | trans }} {% endif %}
{% endif %} {% endblock %} {% block td_shutter_speed %} {% if record.exif.get(constant('media_subdef::TC_DATA_SHUTTERSPEED')) is not none %} {{ 'Shutter speed' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_SHUTTERSPEED')) }} s.
{% endif %} {% endblock %} {% block td_apeture %} {% if record.exif.get(constant('media_subdef::TC_DATA_APERTURE')) is not none %} {{ 'Aperture' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_APERTURE')) | round(2) }}
{% endif %} {% endblock %} {% block td_focal_length %} {% if record.exif.get(constant('media_subdef::TC_DATA_FOCALLENGTH')) is not none %} {{ 'Focal length' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_FOCALLENGTH')) }} mm
{% endif %} {% endblock %} {% block td_hyperfocal_distance %} {% if record.exif.get(constant('media_subdef::TC_DATA_HYPERFOCALDISTANCE')) is not none %} {{ 'Hyperfocal distance' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_HYPERFOCALDISTANCE')) | round(2) }} mm
{% endif %} {% endblock %} {% block td_light_value %} {% if record.exif.get(constant('media_subdef::TC_DATA_LIGHTVALUE')) is not none %} {{ 'Light Value' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_LIGHTVALUE')) | round(2) }}
{% endif %} {% endblock %} {% block td_duration %} {% if record.exif.get(constant('media_subdef::TC_DATA_DURATION')) is not none %} {{ 'Duree' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_DURATION')) }}
{% endif %} {% endblock %} {% block td_framerate %} {% if record.exif.get(constant('media_subdef::TC_DATA_FRAMERATE')) is not none %} {{ 'Images par secondes' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_FRAMERATE')) | round(2) }} ips
{% endif %} {% endblock %} {% block td_codec_audio %} {% if record.exif.get(constant('media_subdef::TC_DATA_AUDIOCODEC')) %} {{ 'Codec Audio' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_AUDIOCODEC')) }}
{% endif %} {% endblock %} {% block td_codec_video %} {% if record.exif.get(constant('media_subdef::TC_DATA_VIDEOCODEC')) %} {{ 'Codec Video' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_VIDEOCODEC')) }}
{% endif %} {% endblock %} {% block td_audio_rate %} {% if record.exif.get(constant('media_subdef::TC_DATA_AUDIOSAMPLERATE')) %} {{ 'Frequence d\'echantillonage' | trans }} : {{ record.exif.get(constant('media_subdef::TC_DATA_AUDIOSAMPLERATE')) | round(2) }} kHz
{% endif %} {% endblock %} {% endif %}