1function DateRangeFacetController(){var _this=this;this.init=function(){dateSelector=jQuery('.dateselector');searchParams=new URLSearchParams(window.location.search);for(const p of searchParams){if(p[1].startsWith("date:")){dateParam=p[1].slice(5);dateValues=dateParam.split('-');startDate=jQuery('#start_date_created');endDate=jQuery('#end_date_created');startDate.val(_this.convertBack(dateValues[0]));endDate.val(_this.convertBack(dateValues[1]));break}} 2dateSelector.change(function(){_this.solrRequest('created')})};this.solrRequest=function(facetName){startDate=jQuery('#start_date_'+facetName);endDate=jQuery('#end_date_'+facetName);if(startDate.val()!==''&&endDate.val()!==''){url=jQuery('#'+facetName+'_url').val();start_date=_this.convertToDate(startDate.val());end_date=_this.convertToDate(endDate.val());url=url.replace(encodeURI('___FROM___'),start_date+'0000');url=url.replace(encodeURI('___TO___'),end_date+'0000');window.location.href=url}};this.convertToDate=function(date){return date.replaceAll('-','')};this.convertBack=function(date){return `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`}} 3jQuery(document).ready(function(){var dateRangeFacetController=new DateRangeFacetController();dateRangeFacetController.init();jQuery("body").on('tx_solr_updated',function(){dateRangeFacetController.init()})})
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.