1(function($) { 2 AjaxSolr.RCRiotAvailFilter = AjaxSolr.AbstractWidget.extend({ 3 afterRequest: function () { 4 this.observable.trigger('RCRiotAvailFilterAfterRequest') 5 }, 6 7 getTag: function() { 8 return '{!tag=RiotSolrWidget,' + this.id + '}'; 9 }, 10 11 formatCurrentSearchLabel: function() { 12 var self = this, 13 rcav = this.manager.store.get('rcav'), 14 links = []; 15 if(rcav.value) { 16 links.push({ 17 label: rcav.value_label, 18 remove: function() { 19 self.observable.resetSearch(); 20 self.manager.store.removeByValue('fq', new RegExp('{!tag=.*RCRiotPrices.*}item_id:*')); 21 self.doRequest(); 22 } 23 }); 24 } 25 return links; 26 } 27 28 }); 29})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.