--- a/src/js/serializers/PlatformSerializer.js Tue May 15 15:50:19 2012 +0200
+++ b/src/js/serializers/PlatformSerializer.js Fri May 18 18:23:51 2012 +0200
@@ -8,7 +8,6 @@
types : {
media : {
serialized_name : "medias",
- model_name : "media",
deserializer : function(_data, _source) {
var _res = new IriSP.Model.Media(_data.id, _source);
_res.video = (
@@ -105,6 +104,8 @@
serializer : function(_data, _source) {
return {
id : _source.unNamespace(_data.id),
+ begin : _data.begin.milliseconds,
+ end : _data.end.milliseconds,
content : {
title : _data.title,
description : _data.description
@@ -116,7 +117,7 @@
"dc:creator" : _data.creator,
project : _source.projectId
},
- tags : IriSP._(_data.tag.id).map(function(_d) {
+ tags : IriSP._(_data.tag.id).map(function(_id) {
return {
"id-ref" : _source.unNamespace(_id)
}
@@ -126,7 +127,6 @@
},
mashup : {
serialized_name : "mashups",
- model_name : "mashup",
deserializer : function(_data, _source) {
var _res = new IriSP.Model.Mashup(_data.id, _source);
_res.title = _data.meta["dc:title"];
@@ -157,7 +157,7 @@
});
}
});
- return _res;
+ return JSON.stringify(_res);
},
loadData : function(_url, _callback) {
IriSP.jQuery.getJSON(_url, _callback)