181 } |
181 } |
182 ) |
182 ) |
183 : document.location.href.replace(/#.*$/,'') + '#id=' + _annotation.id |
183 : document.location.href.replace(/#.*$/,'') + '#id=' + _annotation.id |
184 ) |
184 ) |
185 ); |
185 ); |
186 var _title = (_annotation.title || "").replace(_annotation.description,''), |
186 var _title = "", |
187 _description = _annotation.description, |
187 _description = _annotation.description, |
188 _thumbnail = (typeof _annotation.thumbnail !== "undefined" && _annotation.thumbnail ? _annotation.thumbnail : _this.default_thumbnail); |
188 _thumbnail = (typeof _annotation.thumbnail !== "undefined" && _annotation.thumbnail ? _annotation.thumbnail : _this.default_thumbnail); |
189 if (!_annotation.title) { |
189 // Update : display creator |
190 _title = _annotation.creator; |
190 if (_annotation.creator) { |
191 } |
191 _title = _annotation.creator; |
192 if (!_annotation.description && _annotation.creator) { |
192 } |
193 _description = _annotation.title; |
193 if (_annotation.title) { |
194 _title = _annotation.creator; |
194 var tempTitle = _annotation.title; |
|
195 if( tempTitle.substr(0, _title.length + 1) == (_title + ":") ){ |
|
196 _title = ""; |
|
197 } |
|
198 _title = _title + ( (_title=="") ? "" : ": ") + _annotation.title; |
195 } |
199 } |
196 var _bgcolor; |
200 var _bgcolor; |
197 IriSP._(_this.polemics).each(function(_polemic) { |
201 IriSP._(_this.polemics).each(function(_polemic) { |
198 var _rgxp = IriSP.Model.regexpFromTextOrArray(_polemic.keyword, true); |
202 var _rgxp = IriSP.Model.regexpFromTextOrArray(_polemic.keyword, true); |
199 if (_rgxp.test(_title + " " + _description)) { |
203 if (_rgxp.test(_title + " " + _description)) { |