diff -r 3238d1625df9 -r ba7aab923d08 src/js/serializers/ldt_annotate.js --- a/src/js/serializers/ldt_annotate.js Thu Jun 07 18:52:46 2012 +0200 +++ b/src/js/serializers/ldt_annotate.js Fri Jun 08 19:03:03 2012 +0200 @@ -13,13 +13,14 @@ begin: _data.begin.milliseconds, end: _data.end.milliseconds, content: { - data: _data.description + data: _data.description, + audio: _data.audio }, tags: _data.getTagTexts(), media: _source.unNamespace(_data.getMedia().id), title: _data.title, type_title: _data.getAnnotationType().title, - type: _source.unNamespace(_data.getAnnotationType().id) + type: ( typeof _data.getAnnotationType().dont_send_id !== "undefined" && _data.getAnnotationType().dont_send_id ? "" : _source.unNamespace(_data.getAnnotationType().id) ) } } } @@ -79,6 +80,9 @@ _ann.setBegin(_anndata.begin); _ann.setEnd(_anndata.end); _ann.creator = _data.meta.creator; + if (typeof _anndata.content.audio !== "undefined" && _anndata.content.audio.href) { + _ann.audio = _anndata.content.audio; + } _source.getAnnotations().push(_ann); } }