equal
deleted
inserted
replaced
114 content : { |
114 content : { |
115 data : _data.description |
115 data : _data.description |
116 }, |
116 }, |
117 begin : _data.begin.milliseconds, |
117 begin : _data.begin.milliseconds, |
118 end : _data.begin.milliseconds, |
118 end : _data.begin.milliseconds, |
119 media : _source.unNamespace(_data.media.contents), |
119 media : _source.unNamespace(_data.media.id), |
120 type : _source.unNamespace(_data.annotationType.contents), |
120 type : _source.unNamespace(_data.annotationType.id), |
121 meta : { |
121 meta : { |
122 created : IriSP.Model.dateToIso(_data.created), |
122 created : IriSP.Model.dateToIso(_data.created), |
123 creator : _data.creator, |
123 creator : _data.creator, |
124 creator_name : _data.title |
124 creator_name : _data.title |
125 }, |
125 }, |
126 tags : _data.getTags().map(function(_el) { |
126 tags : _data.tag.id.map(function(_id) { |
127 return _source.unNamespace(_el.id) |
127 return _source.unNamespace(_id) |
128 }) |
128 }) |
129 } |
129 } |
130 } |
130 } |
131 } |
131 } |
132 }, |
132 }, |
152 }); |
152 }); |
153 } |
153 } |
154 }); |
154 }); |
155 return _res; |
155 return _res; |
156 }, |
156 }, |
|
157 loadData : function(_url, _callback) { |
|
158 IriSP.jQuery.getJSON(_url, _callback) |
|
159 }, |
157 deSerialize : function(_data, _source) { |
160 deSerialize : function(_data, _source) { |
|
161 if (typeof _data !== "object" && _data === null) { |
|
162 return; |
|
163 } |
158 if (typeof _data.imports !== "undefined") { |
164 if (typeof _data.imports !== "undefined") { |
159 IriSP._(_data.imports).forEach(function(_import) { |
165 IriSP._(_data.imports).forEach(function(_import) { |
160 _source.directory.namespaces[_import.id] = _import.url; |
166 _source.directory.namespaces[_import.id] = _import.url; |
161 }) |
167 }) |
162 } |
168 } |