position technical data to positive negative value

This commit is contained in:
aina-esokia
2018-04-12 09:48:09 +04:00
parent ab42397196
commit e8f9e9a883
2 changed files with 41 additions and 0 deletions

View File

@@ -435,6 +435,12 @@
{
id: {{ record.get_record_id }},
type: "{{ record.get_type() }}",
{% set position = record.getPositionFromTechnicalInfos %}
technicalInfo: {
isCoordComplete: {{ position.isCoordComplete }},
latitude: {{ position.latitude }},
longitude: {{ position.longitude }}
},
{% if record.get_type() == 'video' %}
{% set outputFormats = record.getSubdfefByDeviceAndMime(null, ['image/jpeg', 'image/png']) %}
{% set previewHtml5 = record.getSubdfefByDeviceAndMime(constant('\\databox_subdef::DEVICE_SCREEN'), ['video/ogg', 'video/mp4', 'video/webm']) %}