src/widgets/AnnotationsList.js
changeset 967 b4c6e64acb2d
parent 966 c1c762ad1697
child 969 353b0881a0b9
equal deleted inserted replaced
966:c1c762ad1697 967:b4c6e64acb2d
    15      * e.g. http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?
    15      * e.g. http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?
    16      */
    16      */
    17     ajax_url : false,
    17     ajax_url : false,
    18     /* number of milliseconds before/after the current timecode when calling the segment API
    18     /* number of milliseconds before/after the current timecode when calling the segment API
    19      */
    19      */
    20     ajax_granularity : 300000, 
    20     ajax_granularity : 600000, 
    21     default_thumbnail : "",
    21     default_thumbnail : "",
    22     /* URL when the annotation is not in the current project,
    22     /* URL when the annotation is not in the current project,
    23      * e.g. http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}
    23      * e.g. http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}
    24      */
    24      */
    25     foreign_url : "",
    25     foreign_url : "",
   218                 end : _annotation.end.toString(),
   218                 end : _annotation.end.toString(),
   219                 thumbnail : typeof _annotation.thumbnail !== "undefined" && _annotation.thumbnail ? _annotation.thumbnail : _this.default_thumbnail,
   219                 thumbnail : typeof _annotation.thumbnail !== "undefined" && _annotation.thumbnail ? _annotation.thumbnail : _this.default_thumbnail,
   220                 url : _url,
   220                 url : _url,
   221                 tags : _annotation.getTagTexts(),
   221                 tags : _annotation.getTagTexts(),
   222                 specific_style : (typeof _bgcolor !== "undefined" ? "background-color: " + _bgcolor : ""),
   222                 specific_style : (typeof _bgcolor !== "undefined" ? "background-color: " + _bgcolor : ""),
   223                 audio : (_this.show_audio && _annotation.audio ? _annotation.audio.href : undefined),
   223                 audio : (_this.show_audio && _annotation.audio && _annotation.audio.href && _annotation.audio.href != "null" ? _annotation.audio.href : undefined),
   224                 l10n: _this.l10n
   224                 l10n: _this.l10n
   225             };
   225             };
   226             var _html = Mustache.to_html(_this.annotationTemplate, _data);
   226             var _html = Mustache.to_html(_this.annotationTemplate, _data);
   227             var _el = IriSP.jQuery(_html);
   227             var _el = IriSP.jQuery(_html);
   228             _el.mouseover(function() {
   228             _el.mouseover(function() {