1riot.tag2('riot-solr-current-search', '<ul> <li each="{this._if(clr && (typeof this.opts.remove_all === undefined || parseInt(this.opts.remove_all)))}"> <a href="#" onclick="{removeAllFacets}"> {parent.opts.txt.clear} <i><?xml version="1.0" encoding="utf-8"?> <svg version="1.1" class="close" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 27.5 27.5" style="enable-background:new 0 0 27.5 27.5;" xml:space="preserve" preserveaspectratio="xMinYMid"> <path d="M18.9,13.7l7.4-7.4c0.7-0.7,1.1-1.6,1.1-2.6c0-1-0.4-1.9-1.1-2.6C25.7,0.4,24.7,0,23.8,0c0,0,0,0,0,0c-1,0-1.9,0.4-2.6,1.1 l-7.4,7.4L6.3,1.1C5.6,0.4,4.7,0,3.7,0c0,0,0,0,0,0c-1,0-1.9,0.4-2.6,1.1C0.4,1.8,0,2.7,0,3.7s0.4,1.9,1.1,2.6l7.4,7.4l-7.4,7.4 C0.4,21.9,0,22.8,0,23.8c0,1,0.4,1.9,1.1,2.6c0.7,0.7,1.6,1.1,2.6,1.1s1.9-0.4,2.6-1.1l7.4-7.4l7.4,7.4c0.7,0.7,1.6,1.1,2.6,1.1 c1,0,1.9-0.4,2.6-1.1c0.7-0.7,1.1-1.6,1.1-2.6c0-1-0.4-1.9-1.1-2.6L18.9,13.7z"></path> </svg> </i> </a> </li> <li if="{(typeof parent.opts.links === undefined || parseInt(parent.opts.links))}" each="{links}"> <a onclick="{removeFacet}" data-facet="{facet}" href="#"> {label} <i><?xml version="1.0" encoding="utf-8"?> <svg version="1.1" class="close" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 27.5 27.5" style="enable-background:new 0 0 27.5 27.5;" xml:space="preserve" preserveaspectratio="xMinYMid"> <path d="M18.9,13.7l7.4-7.4c0.7-0.7,1.1-1.6,1.1-2.6c0-1-0.4-1.9-1.1-2.6C25.7,0.4,24.7,0,23.8,0c0,0,0,0,0,0c-1,0-1.9,0.4-2.6,1.1 l-7.4,7.4L6.3,1.1C5.6,0.4,4.7,0,3.7,0c0,0,0,0,0,0c-1,0-1.9,0.4-2.6,1.1C0.4,1.8,0,2.7,0,3.7s0.4,1.9,1.1,2.6l7.4,7.4l-7.4,7.4 C0.4,21.9,0,22.8,0,23.8c0,1,0.4,1.9,1.1,2.6c0.7,0.7,1.6,1.1,2.6,1.1s1.9-0.4,2.6-1.1l7.4-7.4l7.4,7.4c0.7,0.7,1.6,1.1,2.6,1.1 c1,0,1.9-0.4,2.6-1.1c0.7-0.7,1.1-1.6,1.1-2.6c0-1-0.4-1.9-1.1-2.6L18.9,13.7z"></path> </svg> </i> </a> </li> <li if="{all && (typeof this.opts.count === undefined || parseInt(this.opts.count))}"> {rows_text} {num_found} <span class="results-text">Results</span> </li> <li if="{!all && (typeof this.opts.count === undefined || parseInt(this.opts.count))}"> {rows_text} {num_found} <span class="results-text">Results</span> </li> </ul>', '@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } riot-solr-current-search,[data-is="riot-solr-current-search"]{ display: block; } riot-solr-current-search,[data-is="riot-solr-current-search"]{ padding: 10px; width: 100%; display: block; height: auto; position: relative; } riot-solr-current-search:after,[data-is="riot-solr-current-search"]:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } riot-solr-current-search ul,[data-is="riot-solr-current-search"] ul{ list-style: none; margin-left: 0; } riot-solr-current-search ul:after,[data-is="riot-solr-current-search"] ul:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } riot-solr-current-search li,[data-is="riot-solr-current-search"] li{ display: inline-block; width: auto; margin-right: 4px; margin-bottom: 4px; } riot-solr-current-search li:last-of-type,[data-is="riot-solr-current-search"] li:last-of-type,riot-solr-current-search li:last-child,[data-is="riot-solr-current-search"] li:last-child{ clear: both; font-weight: 700; } riot-solr-current-search li a,[data-is="riot-solr-current-search"] li a{ display: inline-block; width: auto; border-radius: 3px; padding: 2px 25px 2px 5px; border: solid 1px rgba(17, 17, 17, 0.5); background: #fff; font-size: 15px; position: relative; } riot-solr-current-search li a i,[data-is="riot-solr-current-search"] li a i{ display: block; width: 10px; height: 10px; top: 0px; right: 6px; bottom: 5px; margin: auto; line-height: 1.0; position: absolute; } riot-solr-current-search li a i,[data-is="riot-solr-current-search"] li a i,riot-solr-current-search li a i *,[data-is="riot-solr-current-search"] li a i *{ background-position: center; } @media only screen and (min-width: 31.3125em) { riot-solr-current-search:not(.has-filters) ul,[data-is="riot-solr-current-search"]:not(.has-filters) ul{ float: left; margin-left: 0px; margin-top: 10px; margin-bottom: 0; } } riot-solr-current-search.has-filters ul,[data-is="riot-solr-current-search"].has-filters ul{ clear: both; } riot-solr-current-search.has-filters li:last-of-type,[data-is="riot-solr-current-search"].has-filters li:last-of-type,riot-solr-current-search.has-filters li:last-child,[data-is="riot-solr-current-search"].has-filters li:last-child{ width: 100%; display: block; } @media only screen and (min-width: 48em) { .search-header riot-solr-current-search,.search-header [data-is="riot-solr-current-search"]{ max-height: 69px; overflow: hidden; } }', 'class="{\'has-filters\': clr}"', function(opts) { 2 this.mixin('RiotTagsChildren'); 3 this.mixin('RiotSolrConnection'); 4 5 (function($, tag) { 6 tag.instance = new AjaxSolr.RiotSolrCurrentSearch({ 7 id: 'RiotSolrCurrentSearch', 8 observable: tag 9 }); 10 11 tag.removeFacet = function(value) { 12 if(value.item.remove) { 13 value.item.remove() 14 } 15 else if (tag.opts.manager.store.removeByValue('fq', value.item.facet)) { 16 tag.instance.doRequest(); 17 } 18 return false;
19 }; 20 21 tag.removeAllFacets = function() { 22 tag.instance.removeAllFacets() 23 return false; 24 }; 25 26 tag.one('updated', function() { 27 if(tag.RiotSolrManager) { 28 tag.RiotSolrManager.observable.on('RiotSolrAddWidgets', function(manager) { 29 manager.addWidget(tag.instance); 30 }); 31 } 32 }); 33 34 tag.RiotSolrManager.observable.on('RiotSolrNoResultsBehavior', function() { 35 tag.num_found = 0; 36 tag.update(); 37 }); 38 39 tag.on('RiotSolrCurrentSearchUpdate', function(results) { 40 var fq = tag.opts.manager.store.values('fq'), all = true, clr = false, num = null, start = null, end = null; 41 tag.rows_text = ''; 42 if(typeof tag.opts.manager.response.response != 'undefined') { 43 tag.num_found = tag.opts.manager.response.response.numFound 44 if (typeof tag.opts.manager.store.params.rows != 'undefined') { 45 num = tag.opts.manager.response.response.docs.length; 46 47 if (typeof tag.opts.manager.store.params.start != 'undefined') { 48 start = parseInt(tag.opts.manager.store.params.start.value); 49 } 50 else { 51 start = 0; 52 } 53 54 end = start + num; 55 56 if (start >
56 0 || end != tag.opts.manager.response.response.numFound) { 57 tag.rows_text = start + 1; 58 if (num > 1) { 59 tag.rows_text += '-' + (start + num); 60 } 61 tag.rows_text += ' of '; 62 } 63 } 64 } else { 65 tag.num_found = 0 66 } 67 if(results.items.length) { 68 tag.links = results.items 69 tag.all = false 70 tag.clr = true 71 } else { 72 tag.all = true 73 tag.clr = false 74 tag.links = [] 75 } 76 tag.update() 77 }); 78 79 })(jQuery, this); 80});
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.