PageSourceSearch

https://www.jhrl.com/sites/all/modules/bluetent/riot_solr/js/ajax-…/widgets//RiotSolrCurrentSearch.js?tlse4v

js jhrl.com collected 2026-10-06 13:19:26 UTC 1,344 bytes, 51 lines download raw bytes

1(function($) {
2  AjaxSolr.RiotSolrCurrentSearch = AjaxSolr.RiotSolrWidgetAbstract.extend({
3    start: 0,
4
5    currentFq: null,
6
7    afterRequest: function () {
8      var links = [],
9        w,
10        widget, widgetLinks;
11
12      this.currentFq = this.manager.store.get('fq');
13
14      for (w in this.manager.widgets) {
15        widget = this.manager.widgets[w]
16
17        if (typeof widget.getTag !== 'function'
18          || typeof widget.formatCurrentSearchLabel !== 'function') {
19          continue;
20        }
21
22        widgetLinks = widget.formatCurrentSearchLabel();
23
24        if(widgetLinks) {
25          links = links.concat(widgetLinks.filter(function (item) {
26            return links.length > 0 ? links.indexOf(item) < 0 && links[0].label !== item.label : links.indexOf(item) < 0;
27          }));
28        }
29        widget = null;
30      }
31
32      var eventParams = {
33        observable: this.observable,
34        instance: this,
35        field: this.field,
36        widget: 'RiotSolrCurrentSearch',
37        items: links
38      };
39      
40      this.observable.trigger('RiotSolrCurrentSearchUpdate', eventParams);
41    },
42
43    removeAllFacets: function() {
44      this.manager.store.remove('fq');
45      RiotTagsDispatch.trigger('RiotSolrCurrentSearchRemoveAll', this.observable, this)
46      this.doRequest();
47      return false;
48    }
49
50  });
51})(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.