src/js/serializers/ldt.js
branchnew-model
changeset 913 3862c260d116
parent 910 b9f1bd52df9a
child 914 3238d1625df9
--- 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
                 }
             }
         },