diff -r ba7aab923d08 -r ec6849bbbdcc src/widgets/AnnotationsList.js --- a/src/widgets/AnnotationsList.js Fri Jun 08 19:03:03 2012 +0200 +++ b/src/widgets/AnnotationsList.js Tue Jun 12 19:44:20 2012 +0200 @@ -84,7 +84,7 @@ this.lastAjaxQuery = _currentTime; _currentTime = Math.floor(1000 * _currentTime); var _url = Mustache.to_html(this.ajax_url, { - media : this.source.currentMedia.namespacedId.name, + media : this.source.currentMedia.id, begin : Math.max(0, _currentTime - this.ajax_granularity), end : Math.min(_duration.milliseconds, _currentTime + this.ajax_granularity) }); @@ -99,11 +99,11 @@ _currentTime = 0; } var _currentAnnotation = this.source.currentMedia.getAnnotationAtTime(_currentTime * 1000); - if (typeof _currentAnnotation !== "undefined" && _currentAnnotation.namespacedId.name !== this.lastMashupAnnotation) { - this.lastMashupAnnotation = _currentAnnotation.namespacedId.name; + if (typeof _currentAnnotation !== "undefined" && _currentAnnotation.id !== this.lastMashupAnnotation) { + this.lastMashupAnnotation = _currentAnnotation.id; var _currentMedia = _currentAnnotation.getMedia(), _url = Mustache.to_html(this.ajax_url, { - media : _currentMedia.namespacedId.name, + media : _currentMedia.id, begin : Math.max(0, _currentAnnotation.annotation.begin.milliseconds - this.ajax_granularity), end : Math.min(_currentMedia.duration.milliseconds, _currentAnnotation.annotation.end.milliseconds + this.ajax_granularity) }); @@ -129,9 +129,9 @@ var _currentAnnotation = this.source.currentMedia.getAnnotationAtTime(_currentTime * 1000); if (typeof _currentAnnotation !== "undefined") { _currentTime = _currentTime - _currentAnnotation.begin.getSeconds() + _currentAnnotation.annotation.begin.getSeconds(); - var _mediaId = _currentAnnotation.getMedia().namespacedId.name; + var _mediaId = _currentAnnotation.getMedia().id; _list = _list.filter(function(_annotation) { - return _annotation.getMedia().namespacedId.name === _mediaId; + return _annotation.getMedia().id === _mediaId; }); } } @@ -169,15 +169,15 @@ { project : _annotation.project, media : _annotation.media.id.replace(/^.*:/,''), - annotation : _annotation.namespacedId.name, + annotation : _annotation.id, annotationType : _annotation.annotationType.id.replace(/^.*:/,'') } ) - : '#id=' + _annotation.namespacedId.name + : '#id=' + _annotation.id ) ); var _res = { - id : _annotation.namespacedId.name, + id : _annotation.id, title : _annotation.title.replace(_annotation.description,''), description : _annotation.description, begin : _annotation.begin.toString(),