equal
deleted
inserted
replaced
17 var title = annotation.content.title; |
17 var title = annotation.content.title; |
18 var description = annotation.content.description; |
18 var description = annotation.content.description; |
19 var keywords = ""; |
19 var keywords = ""; |
20 var begin = +annotation.begin / 1000; |
20 var begin = +annotation.begin / 1000; |
21 var end = +annotation.end / 1000; |
21 var end = +annotation.end / 1000; |
22 var duration = +this._serializer.currentMedia().meta["dc:duration"]; |
22 var duration = this._serializer.getDuration(); |
23 var tags = ""; |
23 var tags = ""; |
24 |
24 |
25 var title_templ = "{{title}} - ( {{begin}} - {{end}} )"; |
25 var title_templ = "{{title}} - ( {{begin}} - {{end}} )"; |
26 var endstr = Mustache.to_html(title_templ, {title: title, begin: IriSP.secondsToTime(begin), end: IriSP.secondsToTime(end)}); |
26 var endstr = Mustache.to_html(title_templ, {title: title, begin: IriSP.secondsToTime(begin), end: IriSP.secondsToTime(end)}); |
27 |
27 |
32 if (!IriSP.null_or_undefined(annotation.tags) && !IriSP.null_or_undefined(this._serializer._data.tags)) { |
32 if (!IriSP.null_or_undefined(annotation.tags) && !IriSP.null_or_undefined(this._serializer._data.tags)) { |
33 /* save the tag id and keywords in a unique structure */ |
33 /* save the tag id and keywords in a unique structure */ |
34 var tag_list = {}; |
34 var tag_list = {}; |
35 for (var i = 0; i < this._serializer._data.tags.length; i++) { |
35 for (var i = 0; i < this._serializer._data.tags.length; i++) { |
36 var id = this._serializer._data.tags[i]["id"]; |
36 var id = this._serializer._data.tags[i]["id"]; |
37 var keyword = this._serializer._data.tags[i]["meta"]["dc:title"]; |
37 var keyword = IriSP.get_aliased(this._serializer._data.tags[i]["meta"], ["dc:title", "title"]); |
38 |
38 |
39 tag_list[id] = keyword; |
39 tag_list[id] = keyword; |
40 } |
40 } |
41 |
41 |
42 /* then browse the list of defined tags for the current annotation */ |
42 /* then browse the list of defined tags for the current annotation */ |