Added audio support in annotations new-model
authorveltr
Wed, 06 Jun 2012 19:36:55 +0200
branchnew-model
changeset 913 3862c260d116
parent 912 522a20306a55
child 914 3238d1625df9
Added audio support in annotations
src/js/serializers/ldt.js
--- a/src/js/serializers/ldt.js	Wed Jun 06 15:30:18 2012 +0200
+++ b/src/js/serializers/ldt.js	Wed Jun 06 19:36:55 2012 +0200
@@ -99,6 +99,9 @@
                 if (typeof _data.meta["dc:source"] !== "undefined" && typeof _data.meta["dc:source"].content !== "undefined") {
                     _res.source = JSON.parse(_data.meta["dc:source"].content);
                 }
+                if (typeof _data.audio !== "undefined" && _data.audio.href) {
+                    _res.audio = _data.audio;
+                }
                 return _res;
             },
             serializer : function(_data, _source) {
@@ -121,7 +124,8 @@
                        return {
                            "id-ref" : _source.unNamespace(_id)
                        } 
-                    })
+                    }),
+                    audio : _data.audio
                 }
             }
         },