src/widgets/AnnotationsList.js
branchnew-model
changeset 906 4b6e154ae8de
parent 903 d9da52e20f7f
child 908 f56199193fad
equal deleted inserted replaced
905:029a4efe9e24 906:4b6e154ae8de
    32 
    32 
    33 IriSP.Widgets.AnnotationsList.prototype.template =
    33 IriSP.Widgets.AnnotationsList.prototype.template =
    34     '<div class="Ldt-AnnotationsListWidget">'
    34     '<div class="Ldt-AnnotationsListWidget">'
    35     + '<ul class="Ldt-AnnotationsList-ul">'
    35     + '<ul class="Ldt-AnnotationsList-ul">'
    36     + '{{#annotations}}'
    36     + '{{#annotations}}'
    37     + '<li id="Ldt-Annotation-li-{{id}}" class="Ldt-AnnotationsList-li Ldt-TraceMe">'
    37     + '<li class="Ldt-AnnotationsList-li Ldt-TraceMe" trace-info="annotation-id:{{id}}">'
    38     + '<div class="Ldt-AnnotationsList-ThumbContainer">'
    38     + '<div class="Ldt-AnnotationsList-ThumbContainer">'
    39     + '<a href="{{url}}">'
    39     + '<a href="{{url}}">'
    40     + '<img class="Ldt-AnnotationsList-Thumbnail" src="{{thumbnail}}" />'
    40     + '<img class="Ldt-AnnotationsList-Thumbnail" src="{{thumbnail}}" />'
    41     + '</a>'
    41     + '</a>'
    42     + '</div>'
    42     + '</div>'
   175                             )
   175                             )
   176                             : '#id=' + _annotation.namespacedId.name
   176                             : '#id=' + _annotation.namespacedId.name
   177                             )
   177                             )
   178                     );
   178                     );
   179                     var _res = {
   179                     var _res = {
   180                         id : _annotation.id,
   180                         id : _annotation.namespacedId.name,
   181                         title : _annotation.title.replace(_annotation.description,''),
   181                         title : _annotation.title.replace(_annotation.description,''),
   182                         description : _annotation.description,
   182                         description : _annotation.description,
   183                         begin : _annotation.begin.toString(),
   183                         begin : _annotation.begin.toString(),
   184                         end : _annotation.end.toString(),
   184                         end : _annotation.end.toString(),
   185                         thumbnail : typeof _annotation.thumbnail !== "undefined" && _annotation.thumbnail ? _annotation.thumbnail : _this.default_thumbnail,
   185                         thumbnail : typeof _annotation.thumbnail !== "undefined" && _annotation.thumbnail ? _annotation.thumbnail : _this.default_thumbnail,