equal
deleted
inserted
replaced
129 while (_c.length < 6) { |
129 while (_c.length < 6) { |
130 _c = '0' + _c; |
130 _c = '0' + _c; |
131 } |
131 } |
132 _res.color = '#' + _c; |
132 _res.color = '#' + _c; |
133 } |
133 } |
|
134 _res.content = _data.content; |
134 _res.setMedia(_data.media); |
135 _res.setMedia(_data.media); |
135 _res.setAnnotationType(_data.meta["id-ref"]); |
136 _res.setAnnotationType(_data.meta["id-ref"]); |
136 _res.setTags(IriSP._(_data.tags).pluck("id-ref")); |
137 _res.setTags(IriSP._(_data.tags).pluck("id-ref")); |
137 _res.keywords = _res.getTagTexts(); |
138 _res.keywords = _res.getTagTexts(); |
138 _res.setBegin(_data.begin); |
139 _res.setBegin(_data.begin); |
151 var _color = parseInt(_data.color.replace(/^#/,''),16).toString(); |
152 var _color = parseInt(_data.color.replace(/^#/,''),16).toString(); |
152 var _res = { |
153 var _res = { |
153 id : _data.id, |
154 id : _data.id, |
154 begin : _data.begin.milliseconds, |
155 begin : _data.begin.milliseconds, |
155 end : _data.end.milliseconds, |
156 end : _data.end.milliseconds, |
156 content : { |
157 content : IriSP._.defaults( |
157 title : _data.title || "", |
158 {}, |
158 description : _data.description || "", |
159 { |
159 audio : _data.audio, |
160 title : _data.title, |
160 img: { |
161 description : _data.description, |
161 src: _data.thumbnail |
162 audio : _data.audio, |
|
163 img: { |
|
164 src: _data.thumbnail |
|
165 } |
|
166 }, |
|
167 _data.content, |
|
168 { |
|
169 title: "", |
|
170 description: "" |
162 } |
171 } |
163 }, |
172 ), |
164 color: _color, |
173 color: _color, |
165 media : _data.media.id, |
174 media : _data.media.id, |
166 meta : { |
175 meta : { |
167 "id-ref" : _data.getAnnotationType().id, |
176 "id-ref" : _data.getAnnotationType().id, |
168 "dc:created" : IriSP.Model.dateToIso(_data.created || _source.created), |
177 "dc:created" : IriSP.Model.dateToIso(_data.created || _source.created), |
175 return { |
184 return { |
176 "id-ref" : _id |
185 "id-ref" : _id |
177 } |
186 } |
178 }) |
187 }) |
179 } |
188 } |
|
189 _res.content.title = _data.title || _res.content.title || ""; |
180 _dest.annotations.push(_res); |
190 _dest.annotations.push(_res); |
181 } |
191 } |
182 }, |
192 }, |
183 mashup : { |
193 mashup : { |
184 serialized_name : "lists", |
194 serialized_name : "lists", |