var byronDebug=!0,testHasRun=0,searchQueryURL=null,searchNavURL="",selectedPage=0,sortvalue="",savedSortQuery="",strQuery="",searchVar=null,strfq="",tempfq="",filter=0,selectedFacet="",totalPages="",dataLength="",requestFrom="pageOnLoad",suggestionArray=[],itemIndex=0,itemHidenCount=0,acTerm="",ihsDomain,solrApplicationURL,currentSearchTerm,recommendedResultCount,sortURL="",solrCoreAndWeighs=[],defaultShards="shards=localhost:9090/search/ihs,localhost:9090/search/BRE,localhost:9090/search/ChemWeek,localhost:9090/search/GlobalInsight,localhost:9090/search/OHSIS,localhost:9090/search/ecommerce,localhost:9090/search/GlobalStore,localhost:9090/search/Technology,localhost:9090/search/LandingPages,localhost:9090/search/IHSRSSFeeds,",landingPageShards="",defaultFQ='fq=fastihscomdatasourceid:("BRE" OR "ChemWeek" OR "ECommerce" OR "Global Insight" OR "GlobalStore" OR "IHS" OR "LandingPages" OR "OHSIS" OR "Technology" OR "Press Releases" OR "IHS Blogs" OR "ChemWeek Blog" OR "Janes Blog" OR "GlobalInsight blog" OR "IHSMjapan" )',landingPageFQ="",IHSDefaultWeight="60",BREDefaultWeight="5",ChemWeekDefaultWeight="3",OHSISefaultWeight="5",GlobalInsightDefaultWeight="3",EcommerceDefaultWeight="10",GlobalStoreDefaultWeight="10",TechnologyDefaultWeight="8",LandingPageDefaultWeight="15",IHSRSSFeedsPageDefaultWeight="8",params="",toURL="",searchPageURL=locale.replace(/\/$/,"")+"/search/results.html",currentRelativeURL="",pageHasCookies=!1,pageFilterCookies=[],cookiePageReloadInProgress=!1,pastClass="",futureClass="active disableEvent",featuredTopicsList=[],featuredTopicsListLen=0,landingnoresultsflag=!1,url="",urlParams,Showedflag=0,totalResultShowedflag=0,pinnedNewShowedflag=0,newShowedflag=0;window.console||(window.console={}),window.console.debug||(window.console.debug=function(){});var month_names=new Array;function saveSessionData(){if("sessionStorage"in window&&null!==window.sessionStorage&&(isSearchResultPage||isSearchPage)){var uniquieCookieID="",tabCookieID="";if(""!=currentRelativeURL&&(tabCookieID=uniquieCookieID=(uniquieCookieID=currentRelativeURL.replace(".","")).replace(/\//g,"__")),uniquieCookieID+="facetFilltersCookie",tabCookieID+="tabFillterCookie",isSearchResultPage)for(i=0;i-1&&sessionStorage.setItem(Key,"")}sessionStorage.setItem(uniquieCookieID,facetFilltersCookie),sessionStorage.setItem(tabCookieID,tabFillterCookie)}}function getRecomendedResults(data,searchTerm){searchTerm=searchTerm.toString().toLowerCase();var strVal="";if(data&&data.response&&data.response.docs){docs=data.response.docs,currentSearchTerm=searchTerm,(recommendedResultCount=docs.length)>2&&(recommendedResultCount=2);var resultTermTemplate="%s ";for(strVal="",j=0;j",strTempUrl="",doc&&doc.url&&(strTempUrl=doc.url),doc&&doc.title)strVal=strVal+" "+doc.title+"
";else{var articleTitle=data.highlighting[doc.id].title.toString();if(styledTerm=resultTermTemplate.replace("%s",data.highlighting[doc.id].title),lowerarticleTitle=articleTitle.toString().toLowerCase(),lowersesearchTerm=searchTerm.toString().toLowerCase(),index=lowerarticleTitle.indexOf(lowersesearchTerm),-1!=index){var slicedText=articleTitle.slice(index,index+searchTerm.length);styledTerm=resultTermTemplate.replace("%s",slicedText),articleTitle=articleTitle.replace(slicedText,styledTerm)}strVal=strVal+""+articleTitle+" "}if(null!=data.highlighting[doc.id].body){resultTermTemplate="%s ";var articleBody=htmlDecode(data.highlighting[doc.id].body.toString().replace("&","&"));if(index=articleBody.toLowerCase().indexOf(searchTerm.toLowerCase()),-1!=index){var slicedText=articleBody.slice(index,index+searchTerm.length);styledTerm=resultTermTemplate.replace("%s",slicedText),articleBody=articleBody.replace(slicedText,styledTerm)}strVal=strVal+""+articleBody+" "}strVal+=""}strVal+=" "}return strVal}month_names[1]="January",month_names[2]="February",month_names[3]="March",month_names[4]="April",month_names[5]="May",month_names[6]="June",month_names[7]="July",month_names[8]="August",month_names[9]="September",month_names[10]="October",month_names[11]="November",month_names[12]="December",jQuery((function(){$(document).ready((function(e){$("#search-grey").focusout((function(){$(".recommended-results.mobile-hidden").html("")})),$("#search-grey").keyup((function(){this.value||$(".recommended-results.mobile-hidden").html("")})),$(".mobile-hidden #searchflyout").keyup((function(){this.value||$(".recommended-results").html("")})),ihsDomain=window.location.host,isSearchResultPage=window.location.href.toLowerCase().indexOf("/search/results.html")>0,currentRelativeURL=(currentRelativeURL=(currentRelativeURL=window.location.href.toLowerCase().replace("https://","")).replace("http://","")).replace(ihsDomain,""),pageHasCookies=!1,solrApplicationURL=searchPath;var searchString="";if(searchString=null!=(searchString=getUrlParameter("search"))?(searchString=searchString.trim()).toLowerCase():decodeURIComponent(getUrlParameter("search")).trim(),landingnoresultsflag=getUrlParameter("landingnoresults"),$(".product-sort").length>0&&loadProductAndSolutionComponent(),$(".desktop-hidden .menu-search").focus((function(){$(".desktop-hidden .menu-search").val()==$("#searchPlaceHolderText").val()&&$(".desktop-hidden .menu-search").val("")})),getStandardArgs(),isSearchPage&&(solrCoreAndWeighs=solrCoreAndWeightage.split("#")),searchVar=searchString,$(".search-input").find("#searchflyout").each((function(ev){$(this).val()&&null!=$(this).val()&&""!=$(this).val()||$(this).attr("placeholder",$("#searchPlaceHolderText").val()),$(this).val($("#searchPlaceHolderText").val())})),$("#search-grey").val()||$("#search-grey").attr("placeholder",$("#searchPlaceHolderText").val()),$(".searchWithinResultsText").val()||$(".searchWithinResultsText").attr("placeholder",$("#searchWithinPlaceHolderText").val()),searchQueryURL=null,searchNavURL="",selectedPage=0,sortvalue="",newValue=null,$(window).bind("beforeunload",(function(){saveSessionData()})),isSearchResultPage||isSearchPage){var match,pl=/\+/g,search=/([^&=]+)=?([^&]*)/g,decode=function(s){return decodeURIComponent(s.replace(pl," "))},query=window.location.search.substring(1),taxonomyflag="",tabFilter="";for(urlParams={};match=search.exec(query);)urlParams[match[1]]=match[2];if(void 0!==urlParams.l||void 0!==urlParams.i||void 0!==urlParams.t||void 0!==urlParams.p||void 0!==urlParams.j||void 0!==urlParams.w||void 0!==urlParams.ip||void 0!==urlParams.rt||void 0!==urlParams.tabp||void 0!==urlParams.tabw||void 0!==urlParams.tabt||void 0!==urlParams.tabl||void 0!==urlParams.tabi||void 0!==urlParams.tabrc||void 0!==urlParams.tabrt||void 0!==urlParams.filterby||void 0!==urlParams.sp_enabled){if(urlParams.sp_enabled,void 0!==urlParams.filterby){var taxonomyFilter=urlParams.filterby.split("|");for(i=0;i=0?(byronDebug&&console.log("%cBuildTax A","color: #990000"),buildSearchPage(taxonomyflag)):(byronDebug&&console.log("%cBuildVar F","color: #990000"),buildSearchPage(searchVar)),pageHasCookies=!0}else if("sessionStorage"in window&&null!==window.sessionStorage){var uniquieCookieID="",tabCookieID="";if(""!=currentRelativeURL&&(tabCookieID=uniquieCookieID=(uniquieCookieID=currentRelativeURL.replace(".","")).replace(/\//g,"__")),uniquieCookieID+="facetFilltersCookie",tabCookieID+="tabFillterCookie","taxonomyFilter"in sessionStorage&&""!=sessionStorage.getItem("taxonomyFilter")){var cookiefilters=sessionStorage.getItem("taxonomyFilter");sessionStorage.setItem("taxonomyFilter",""),""!=cookiefilters.trim()?(onLoadCheck=!1,byronDebug&&console.log("%cBuildVar E","color: #990000"),buildSearchPage(searchVar),pageFilterCookies=cookiefilters.split(","),pageHasCookies=!0):(byronDebug&&console.log("%cBuildVar D","color: #990000"),buildSearchPage(searchVar))}else if(uniquieCookieID in sessionStorage||tabCookieID in sessionStorage){if(uniquieCookieID in sessionStorage)var cookiefilters=sessionStorage.getItem(uniquieCookieID);if(tabCookieID in sessionStorage)var tabfilters=sessionStorage.getItem(tabCookieID);if(""!=cookiefilters.trim()){if(uniquieCookieID in sessionStorage)var cookiefilters=sessionStorage.getItem(uniquieCookieID);var tabFilter="",cookieFilter=new Array,tabCookieFilter=new Array;if((cookieFilter=cookiefilters.split(",")).length>0)for(var i=0;i-1&&"TAB"==(tabCookieFilter=cookieFilter[i].split("###"))[2]&&(tabFilter=tabCookieFilter[1].replace("%2C",","));""!=tabFilter&&($("#filter-tabs-list").children("li").removeClass("active"),$("#filter-tabs-list").children("li").removeClass("after-active"),$("#filter-tabs-list").children("li").removeClass("before-active"),$("#filter-tabs-list li a").each((function(){var re=/javascript:refreshTabData\("([^"]*)",\s*"[^"]+"\)/,tempTabName=$(this).attr("onclick");null!=tempTabName.match(re)&&(tabName=tempTabName.match(re)[1],-1!=tabFilter.indexOf(tabName)&&($(this).parent().addClass("active"),$(this).parent().next().addClass("after-active"),$(this).parent().prev().addClass("before-active")))}))),onLoadCheck=!1,byronDebug&&console.log("%cBuildVar C","color: #990000"),pageFilterCookies=cookiefilters.split(","),pageHasCookies=!0,buildSearchPage(searchVar)}else byronDebug&&console.log("%cBuildVar B","color: #990000"),buildSearchPage(searchVar)}else byronDebug&&console.log("%cBuildVar A","color: #990000"),buildSearchPage(searchVar)}isEventLandingPage&&(checkEventUrl(),checkPastPresent())}$("#show-more-server").click((function(){if(document.getElementById("show-more-server").disabled=!0,document.getElementById("more-button").disabled=!0,$("#more-button").css("display","none"),$("#show-more-server").css("display","none"),$(".component-search-results .search-results>li").each((function(){(null==$(this).attr("class")||$(this).attr("class").indexOf("tabpinned")<0)&&$(this).css("display","block")})),$("#Landing-pagination").css("display","block"),setEmptyValue("resultsCount"),document.getElementById("result").value)var viewDetails="Viewing 1-"+document.getElementById("result").value+" of "+document.getElementById("numfound").value+" results
";else var viewDetails="No results available
";$("#resultsCount").append(viewDetails)}));var termTemplate="%s ";$.widget("custom.ihsautocomplete",$.ui.autocomplete,{_renderItem:function(ul,item){if(item.label.indexOf("header###")<0){var re=new RegExp("("+this.term+")","gi"),cls,template="$1 ",label=item.label.replace(re,template);$li=$(" ").appendTo(ul),$(" ").attr("href","#").html(label).appendTo($li)}else{var re=new RegExp("("+this.term+")","gi"),cls,template="$1 ",label=item.label.replace("header###","").replace(re,template);$li=$(" ").addClass("menu-gray mobile-hidden").html(item.label.replace("header###","")).appendTo(ul),item.label=this.term}return $li}}),$.widget("custom.ihsautocompletesearchwithin",$.ui.autocomplete,{_renderItem:function(ul,item){var re=new RegExp("("+this.term+")","gi"),cls,template="$1 ",label=item.label.replace(re,template),$li=$(" ").appendTo(ul);return $(" ").attr("href","#").html(label).appendTo($li),$li}}),$(".desktop-hidden .menu-search").ihsautocomplete({source:getAutoSuggessionSearchFlyoutMobile,appendTo:".desktop-hidden .common-search",highlightClass:"highlight",close:function(event,ui){},minLength:2,delay:25,focus:function(event,ui){if(ui.item.value.indexOf("header###")<0&&""!=ui.item.value)this.value=ui.item.label,event.preventDefault();else{ui.item.value="";var curr=$(event.currentTarget).find("li.menu-gray");curr&&(event.preventDefault(),38==event.which||38==event.keyCode?curr.siblings().last().children("a").mouseenter():curr.siblings().first().children("a").mouseenter())}},select:function(event,ui){if(ui.item.value){if(ui.item.value.indexOf("header###")>=0)return void(ui.item.value="");window.location=searchPageURL+"?search="+ui.item.label}}}),$(".mobile-hidden .menu-search").ihsautocomplete({source:getAutoSuggessionSearchFlyout,appendTo:".drop-down-menu .common-search",highlightClass:"highlight",close:function(event,ui){var delay=200;setTimeout((function(){displayRecommendedResults(".drop-down-menu .recommended-results","")}),200)},minLength:2,delay:75,focus:function(event,ui){if(ui.item.value.indexOf("header###")<0&&""!=ui.item.value)event.preventDefault();else{ui.item.value="";var curr=$(event.currentTarget).find("li.menu-gray");curr&&(event.preventDefault(),38==event.which||38==event.keyCode?curr.siblings().last().children("a").mouseenter():curr.siblings().first().children("a").mouseenter())}},select:function(event,ui){if(ui.item.value){if(ui.item.value.indexOf("header###")>=0)return void(ui.item.value="");window.location=searchPageURL+"?search="+ui.item.label}}}),$("#search-grey").ihsautocomplete({source:getAutoSuggessionForSearch,appendTo:".auto-complete .common-search",highlightClass:"highlight",close:function(event,ui){},minLength:2,delay:75,focus:function(event,ui){if(ui.item.value.indexOf("header###")<0&&""!=ui.item.value)event.preventDefault();else{var curr=$(event.currentTarget).find("li.menu-gray");curr&&(38!=event.which&&38!=event.keyCode||""!=ui.item.value?(event.preventDefault(),curr.siblings().first().children("a").mouseenter(),ui.item.value=""):(this.value=ui.item.label,event.preventDefault()))}},select:function(event,ui){ui.item.value.indexOf("header###")>=0&&(ui.item.value="")}}),$(".searchWithinResults").click((function(e){e.preventDefault();var isAlternateDesign=!1;if((isExpertLandingPage||isEventLandingPage)&&(isAlternateDesign=!0),isAlternateDesign)var value=$(".searchWithinResultsText").val().trim().toLowerCase();else var value=IHS.RWD.windowSize().w<929?$(".searchWithinResultsText:eq(1)").val().trim().toLowerCase():$(".searchWithinResultsText:eq(0)").val().trim().toLowerCase();var count=0,countFirstCharacter=0;value.match(/<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>/g)&&(count=value.match(/<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>/g).length),1==value.length&&value.substring(0,1).match(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/ ]/g)&&(countFirstCharacter=value.substring(0,1).match(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/ ]/g).length),""!=value&&0==count&&0==countFirstCharacter&&($("#searchWithinResults").attr("disabled","disabled"),$("#Landing-pagination").css("display","none"),$("#serverbutton").css("display","none"),isLandingPage=!0,searchWithinResults(encodeURIComponent(value)))})),$("#more-button").click((function(e){showMoreResults()})),Array.prototype.IHSinsert=function(index,item){this.splice(index,0,item)}}))}));var gotoURL="";function gotoLink(strTempUrl){gotoURL=strTempUrl,window.location.href=strTempUrl}function gotoRecommendedReult(event){if(1!=event.which)return!1;window.location.href=event.target.href}function getUrlParameter(sParam){for(var sPageURL,sURLVariables=window.location.search.substring(1).split("&"),i=0;i=0||search.indexOf("3E")>=0||search.indexOf("<")>=0||search.indexOf(">")>=0?search.replace(/[<>%0-9]/g,""):search}}}function getAutoSuggessionForSearchWithIn(request,response){var suggessionSearchTerm=$(".searchWithinResultsText").val();""!=(suggessionSearchTerm=suggessionSearchTerm.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/ ]/gi,"")).trim()&&isSearchResultPage&&getAutoSuggessionsearchWithin(request,response,suggessionSearchTerm=escape($(".searchWithinResultsText").val()))}var currentSearchBox="";function getAutoSuggessionForSearch(request,response){currentSearchBox="#search-grey";var suggessionSearchTerm=$("#search-grey").val();suggessionSearchTerm=(suggessionSearchTerm=suggessionSearchTerm.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"")).replace(/^\s\s*/,""),$("#searchPlaceHolderText").val()!=suggessionSearchTerm&&""!=suggessionSearchTerm.trim()&&getAutoSuggession(request,response,suggessionSearchTerm,".auto-complete .recommended-results")}function getAutoSuggessionSearchFlyout(request,response){currentSearchBox=".mobile-hidden .menu-search";var suggessionSearchTerm=$(".mobile-hidden .menu-search").val();suggessionSearchTerm=(suggessionSearchTerm=suggessionSearchTerm.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"")).replace(/^\s\s*/,""),$("#searchPlaceHolderText").val().replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"")!=suggessionSearchTerm&&""!=suggessionSearchTerm.trim()&&getAutoSuggession(request,response,suggessionSearchTerm,".drop-down-menu .recommended-results")}function getAutoSuggessionSearchFlyoutMobile(request,response){currentSearchBox=".desktop-hidden .menu-search";var suggessionSearchTerm=$(".desktop-hidden .menu-search").val();suggessionSearchTerm=(suggessionSearchTerm=suggessionSearchTerm.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"")).replace(/^\s\s*/,""),$("#searchPlaceHolderText").val()!=suggessionSearchTerm&&""!=suggessionSearchTerm.trim()&&getAutoSuggession(request,response,suggessionSearchTerm,"mobile")}function displayRecommendedResults(classID,results){var emptyList="",searchVal=$(currentSearchBox).val().toString().trim().toLowerCase();results==emptyList||""==results||-1==suggstTermCount||searchVal.length<2?($(".drop-down-menu .recommended-results").html(""),$(".auto-complete .recommended-results").html("")):($(classID).html('"),$(classID).append(results))}function getAutoSuggession(request,response,suggessionSearchTerm,classID){for(var suggessionSearchTermLength=(suggessionSearchTerm=suggessionSearchTerm.trim()).split(" ").length,fieldWeights="&qf=relvanceurl^"+urlweightage+" description^"+descriptionweightage+" body^"+bodyweightage+" title^"+titleweightage,firstterm=suggessionSearchTerm.split(" ")[0].toLowerCase(),core,coreName="",pageCore=GlobalCore.split("#"),filterQuery="&fq=fastihscomdatasourceid:(",i=0,suggessionData;i0&&suggessionSearchTerm==firstterm){for(var i=0;i0&&suggessionSearchTerm==firstterm?$(".submenu .grid-4.common-search").css("display","block"):$(".submenu .grid-4.common-search").css("display","none")}else $(".submenu .grid-4.common-search").css("display","none")}if(suggessionData=data,acSuggstTerm="",suggstTermCount=suggestionArray.length,acSuggstTerm=suggessionSearchTerm,"mobile"!=classID){var commonTerm="header###"+$("#commonSearchText").val();suggestionArray.length>0&&suggestionArray.IHSinsert(0,commonTerm),displayRecommendedResults(classID,getRecomendedResults(suggessionData,suggessionSearchTerm))}response(suggestionArray)}))}$(".mobile-hidden .menu-search").change((function(){var suggessionSearchTerm=$(".mobile-hidden .menu-search").val();suggessionSearchTerm.indexOf("header###")<0||$(".mobile-hidden .menu-search").val(""),""==suggessionSearchTerm&&($(".drop-down-menu .recommended-results").html(""),$(".auto-complete .recommended-results").html(""))})),$("#search-grey").change((function(){var suggessionSearchTerm=$("#search-grey").val();suggessionSearchTerm.indexOf("header###")<0||$("#search-grey").val(""),""==suggessionSearchTerm&&($(".drop-down-menu .recommended-results").html(""),$(".auto-complete .recommended-results").html(""))}));var suggstTermCount=-1,acSuggstTerm="";function getAutoSuggessionsearchWithin(request,response,suggessionSearchTerm){suggessionSearchTerm=unescape(suggessionSearchTerm.trim()),url=getSearchWithinResultsForAutoCompleteURL(suggessionSearchTerm),suggestionArray=[],$.getJSON(url,(function(data){var strVal="";if(data&&data.spellcheck&&data.spellcheck.collations){if(data&&data.spellcheck&&data.spellcheck.collations&&data.spellcheck.collations)var localSuggestionArray=data.spellcheck.collations;var start=2,m=0;"collation"==localSuggestionArray[0]&&(start=0);for(var k=start;k0)for(var i=0;i0){var regex=new RegExp('"Key":',"g");inputstr=inputstr.replace(regex,"");var regex=new RegExp('"Value":',"g");inputstr=inputstr.replace(regex,"");var regex=new RegExp("{","g");inputstr=inputstr.replace(regex,"");var regex=new RegExp("}","g");inputstr=jasanpart+(inputstr=(inputstr=inputstr.replace(regex,"")).substring(0,inputlen-1))+"}";var facetdatestr="",facetdatebeforestr=',"facet_ranges":{"eventEndTimeUTC":{"before":',facetdateafterstr=',"after":';facetbefore.length>0&&(facetdatebeforestr+=facetbefore,facetafter.length>0&&(inputstr+=facetdatestr=facetdatebeforestr+',"after":'+facetafter+"}}")),inputstr+="}}";var obj=jQuery.parseJSON(inputstr)}return obj}function getQuery(spellqry){var flParameters="&fl=*,score",fieldWeights="&qf=relvanceurl^"+urlweightage+" description^"+descriptionweightage+" body^"+bodyweightage+" title^"+titleweightage,fieldWeightsForSingleTerm="&qf=relvanceurl^"+urlweightage+" description^"+descriptionweightage+" body^"+bodyweightage+" title^"+titleweightage+" titleExact^"+titleexactweightage,spellqrylen=0,strQueryMultiWord="",spellquery="",pQuery1="&pf=title body relvanceurl description&ps=2",pQuery2="&pf2=title body relvanceurl description&ps2=2",pQuery3="&pf3=title body relvanceurl description&ps3=2",tieQ="&tie=1",minMatch="";if(boostQuery&&""!=boostQuery&&(flParameters=boostQuery),0==(strQuery=strQuery.replace("?","\\?")).length?strQuery="*":(spellqrylen=strQuery.split(" ").length,strQuery=spellqrylen>1?'"'+strQuery.toLowerCase()+'"':strQuery.toLowerCase()),null!=spellqry){spellqrylen=(spellqry=(spellqry=spellqry.trim()).replace("?","\\?")).split(" ").length,spellquery=spellqry.split(" ");var keyWord="";for(i=0;i1){var i;for(i=0;i=0)url=(url=(url=(url=(url=getQuery(null))+'&bq=relvanceurl:"'+encodeURIComponent(searchURL.split("###")[1])+'"^'+urlweightage)+'&bq=description:"'+encodeURIComponent(searchURL.split("###")[1])+'"^'+descriptionweightage)+'&bq=body:"'+encodeURIComponent(searchURL.split("###")[1])+'"^'+bodyweightage)+'&bq=title:"'+encodeURIComponent(searchURL.split("###")[1])+'"^'+titleweightage;else if(null!=searchURL&&0!=searchURL.length&&"undefined"!=searchURL)if(0==searchURL.indexOf("http"))url=searchURL;else{$("#search").val(decodeURIComponent(searchURL)),$("#search-grey").val(decodeURIComponent(searchURL)),isSearchPage&&$(".searchWithinResultsText").val(decodeURIComponent(searchURL));var querylen=searchURL.split(" ").length;url=querylen>1?getQuery(searchURL):decodeURIComponent(getQuery(searchURL)),landingnoresultsflag&&(url=url+"&fq="+encodeURIComponent('(fastprimarynavigator:("Products and Solutions"))'),console.debug("search URL for landingnoresultsflag :"+url))}else url=getQuery(null);if(onLoadCheck||($("#serverbutton").css("display","none"),$("#loaderImg").show("fast"),setEmptyValue("primaryFacet"),$("#loaderImg").html(' ')),searchQueryURL=url,$.ajaxSetup({crossDomain:!0,scriptCharset:"utf-8",contentType:"jsonp; charset=utf-8"}),url=searchQueryURL,onLoadCheck){byronDebug&&console.log("%cLoading data route","color: #6577AA");var inputstr,facetafter,facetbefore,output=jsonStrinParser(document.getElementById("jsonDefault").value,document.getElementById("facetdatesAfter").value,document.getElementById("facetdatesBefore").value),strQuery="To Test Results ";$("#solrQuery").append(strQuery),loadData(output)}else byronDebug&&console.log("%cAjax route","color: #6577AA"),$.ajax({url:url,type:"GET",dataType:"jsonp",jsonp:"callback",jsonpCallback:"loadData",success:function(json){},error:function(req,status,err){$("#loaderImg").hide("fast");var message="We're sorry, "+err+" ";$("#main-content").append("")}});clearAllSystem(),byronDebug&&console.log("%cbuildSearchPage: Complete","color: #00AB4E")}function loadData(data){byronDebug&&console.log("%c - loadData: loads the Data from Solr.","color: #800080"),isEventLandingPage&&!onLoadCheck&&(console.log("At loadData()"),forceSessionCheck()),notGlobalLandingPage()&&checkForBadPageRequest(data),$((function(){if(!$.support.placeholder){var active=document.activeElement;$("textarea").each((function(index,element){0==$(this).val().length&&$(this).html($(this).attr("id")).addClass("hasPlaceholder")}))}})),onLoadCheck?($("#resultsContent").css({display:"block"}),$(".tabpinned").css({display:"none"}),$("#loaderImg").css({display:"none"}),$("#serverbutton").css({display:"block"}),$("#more-button").css("display","block")):(cleanContent(),$("#searchResults").css({display:"block"})),$(".search-results-header").css({display:"block"}),isSearchResultPage&&(setEmptyValue("relatedSearch"),suggestionArray=[],$("#sortBy").html(""),$("#sortBy").append(""+SEARCH_SORT_BY+" "+SEARCH_SORT_RELEVANCE+" "+SEARCH_SORT_ASC+" "+SEARCH_SORT_DESC+" "),$("#sort-by").val(sortvalue)),onLoadCheck?$("#more-button").css("display","none"):$("#more-button").append(""+SEARCH_SHOW_MORE_RESULT+" ");var strVal="",strUrl="",strTempUrl="",docUrl="";if(null!=data)if($("#resultPage").show(),$("#noResults").hide(),$("#resultsContent").show(),totalPages=data.response.numFound,dataLength=data.response.docs.length,strfq="",data.responseHeader.params.fq&&(strfq=data.responseHeader.params.fq),strfq=strfq.toString(),(requestFrom&&"pageOnLoad"==requestFrom||"searchWithin"==requestFrom||"TAB"==requestFrom)&&(10*selectedPage+data.response.docs.length0?($("#aside-commonindustry").show("fast"),prepareFacets(data.facet_counts.facet_fields.commonindustry,"commonindustry","left_column",SEARCH_FACET_INDUSTRY)):$("#aside-commonindustry").hide("fast")),isChemicalPage&&(data.facet_counts.facet_fields.chemicalkeyword.length>0?($("#aside-chemicalkeyword").show("fast"),prepareFacetsChemical(data.facet_counts.facet_fields.chemicalkeyword,"chemicalkeyword","left_column","Chemical")):$("#aside-chemicalkeyword").hide("fast")),data.facet_counts.facet_fields.topicKeyword.length>0?($("#aside-topicKeyword").show("fast"),prepareFacets(data.facet_counts.facet_fields.topicKeyword,"topicKeyword","left_column",SEARCH_FACET_AREA_INTEREST)):$("#aside-topicKeyword").hide("fast"),isIndustryLandingPage&&(data.facet_counts.facet_fields.customerType.length>0?($("#aside-customerType").show("fast"),prepareFacets(data.facet_counts.facet_fields.customerType,"customerType","left_column","Customer Type")):$("#aside-customerType").hide("fast"),$(".bookable-filter").css({display:"none"})),isEventLandingPage||(data.facet_counts.facet_fields.commonproducttype.length>0?($("#aside-commonproducttype").show("fast"),prepareFacets(data.facet_counts.facet_fields.commonproducttype,"commonproducttype","left_column",SEARCH_FACET_PRODUCT_TYPE)):$("#aside-commonproducttype").hide("fast")),data.facet_counts.facet_fields.geoloc.length>0?($("#aside-geoloc").show("fast"),prepareFacetsRegion(data.facet_counts.facet_fields.geoloc,"geoloc","left_column",isEventLandingPage?SEARCH_FACET_LOCATION:SEARCH_FACET_LOCATION_REGION)):$("#aside-geoloc").hide("fast"),data.facet_counts.facet_fields.jobroleKeyword.length>0?($("#aside-jobroleKeyword").show("fast"),prepareFacets(data.facet_counts.facet_fields.jobroleKeyword,"jobroleKeyword","left_column",isEventLandingPage?SEARCH_FACET_JOB_FUNCTION:SEARCH_FACET_ROLE)):$("#aside-jobroleKeyword").hide("fast"),null!=typeof showCollections&&showCollections&&(data.facet_counts.facet_fields.fastihscomdatasourceid.length>0?($("#aside-fastihscomdatasourceid").show("fast"),prepareFacets(data.facet_counts.facet_fields.fastihscomdatasourceid,"fastihscomdatasourceid","left_column","Core")):$("#aside-chemicalfamilykeyword").hide("fast"));else{if(isSearchResultPage&&null!=data.facet_counts.facet_fields.sp_enabled&&"-1"!=data.facet_counts.facet_fields.sp_enabled.indexOf("1")?(prepareFacetsBookable("bookable-filter"),$(".bookable-filter").css({display:"block"})):$(".bookable-filter").css({display:"none"}),isSearchResultPage||isEventLandingPage||isExpertLandingPage||isCustomerLandingPage?(isExpertLandingPage,data.facet_counts.facet_fields.commonindustry.length>0?($("#aside-commonindustry").show("fast"),prepareFacets(data.facet_counts.facet_fields.commonindustry,"commonindustry","left_column",SEARCH_FACET_INDUSTRY)):$("#aside-commonindustry").hide("fast")):"True"==isRollUpPage&&isIndustryLandingPage?data.facet_counts.facet_fields.commonindustry.length>0?($("#aside-commonindustry").show("fast"),prepareFacets(data.facet_counts.facet_fields.commonindustry,"commonindustry","left_column",SEARCH_FACET_INDUSTRY)):$("#aside-commonindustry").hide("fast"):isProductTypePage&&"True"!=isRollUpPage?data.facet_counts.facet_fields.commonindustry.length>0?($("#aside-commonindustry").show("fast"),prepareFacets(data.facet_counts.facet_fields.commonindustry,"commonindustry","left_column",SEARCH_FACET_INDUSTRY)):$("#aside-commonindustry").hide("fast"):(isBlogLandingPage||isPodcastLandingPage)&&(data.facet_counts.facet_fields.commonindustry.length>2?($("#aside-commonindustry").show("fast"),prepareFacets(data.facet_counts.facet_fields.commonindustry,"commonindustry","left_column",SEARCH_FACET_INDUSTRY)):$("#aside-commonindustry").hide("fast"),data.facet_counts.facet_fields.workflowkeyword.length>2?($("#aside-workflowkeyword").show("fast"),prepareFacets(data.facet_counts.facet_fields.workflowkeyword,"workflowkeyword","left_column","Cross Industries")):$("#aside-workflowkeyword").hide("fast"),data.facet_counts.facet_fields.topicKeyword.length>0?($("#aside-topicKeyword").show("fast"),prepareFacets(data.facet_counts.facet_fields.topicKeyword,"topicKeyword","left_column",SEARCH_FACET_AREA_INTEREST)):$("#aside-topicKeyword").hide("fast"),data.facet_counts.facet_fields.geoloc.length>0?($("#aside-geoloc").show("fast"),prepareFacetsRegion(data.facet_counts.facet_fields.geoloc,"geoloc","left_column",isEventLandingPage?SEARCH_FACET_LOCATION:SEARCH_FACET_LOCATION_REGION)):$("#aside-geoloc").hide("fast"),data.facet_counts.facet_fields.RAType.length>0?($("#aside-RAType").show("fast"),prepareFacets(data.facet_counts.facet_fields.RAType,"RAType","left_column","Type")):$("#aside-RAType").hide("fast"),data.facet_counts.facet_fields.blogAuthor.length>0&&isBlogLandingPage?($("#aside-blogAuthor").show("fast"),prepareFacets(data.facet_counts.facet_fields.blogAuthor,"blogAuthor","left_column","Author")):$("#aside-blogAuthor").hide("fast")),isCustomerLandingPage||isBlogLandingPage||isPodcastLandingPage||(isChemicalPage&&(data.facet_counts.facet_fields.chemicalkeyword.length>0?($("#aside-chemicalkeyword").show("fast"),prepareFacetsChemical(data.facet_counts.facet_fields.chemicalkeyword,"chemicalkeyword","left_column","Chemical")):$("#aside-chemicalkeyword").hide("fast")),isExpertLandingPage&&(data.facet_counts.facet_fields.language.length>0?($("#aside-geoloc").show("fast"),prepareFacets(data.facet_counts.facet_fields.language,"language","left_column","Language")):$("#aside-geoloc").hide("fast")),data.facet_counts.facet_fields.geoloc.length>0?($("#aside-geoloc").show("fast"),prepareFacetsRegion(data.facet_counts.facet_fields.geoloc,"geoloc","left_column",isEventLandingPage?SEARCH_FACET_LOCATION:SEARCH_FACET_LOCATION_REGION)):$("#aside-geoloc").hide("fast"),isEventLandingPage||isExpertLandingPage||(data.facet_counts.facet_fields.commonproducttype.length>0?($("#aside-commonproducttype").show("fast"),prepareFacets(data.facet_counts.facet_fields.commonproducttype,"commonproducttype","left_column",SEARCH_FACET_PRODUCT_TYPE)):$("#aside-commonproducttype").hide("fast")),isEventLandingPage||isIndustryLandingPage||(data.facet_counts.facet_fields.expertKeyword.length>0?isExpertLandingPage||($("#aside-expertKeyword").show("fast"),prepareFacets(data.facet_counts.facet_fields.expertKeyword,"expertKeyword","left_column",SEARCH_FACET_EXPERT)):$("#aside-expertKeyword").hide("fast")),isExpertLandingPage||isEventLandingPage||(data.facet_counts.facet_fields.jobroleKeyword.length>0?($("#aside-jobroleKeyword").show("fast"),prepareFacets(data.facet_counts.facet_fields.jobroleKeyword,"jobroleKeyword","left_column",isEventLandingPage?SEARCH_FACET_JOB_FUNCTION:SEARCH_FACET_ROLE)):$("#aside-jobroleKeyword").hide("fast")),data.facet_counts.facet_fields.topicKeyword.length>0?($("#aside-topicKeyword").show("fast"),prepareFacets(data.facet_counts.facet_fields.topicKeyword,"topicKeyword","left_column",SEARCH_FACET_AREA_INTEREST)):$("#aside-topicKeyword").hide("fast"),data.facet_counts.facet_fields.eventtype.length>0?($("#aside-eventtype").show("fast"),prepareFacets(data.facet_counts.facet_fields.eventtype,"eventtype","left_column",SEARCH_FACET_TYPE)):$("#aside-eventtype").hide("fast")),isEventLandingPage&&displayEventTimeframes(data),isCustomerLandingPage&&("0"==data.facet_counts.facet_fields.videoflag[0]?(prepareFacetsVideo("video_column"),$("#video_column").css({display:"block"})):$("#video_column").css({display:"none"})),isExpertLandingPage||isEventLandingPage){null!=data.facet_counts.facet_fields.sp_enabled&&"-1"!=data.facet_counts.facet_fields.sp_enabled.indexOf("1")?(prepareFacetsBookable("bookable-filter"),$(".bookable-filter").css({display:"block"})):$(".bookable-filter").css({display:"none"});var isAlternateDesign=!1;if((isExpertLandingPage||isEventLandingPage)&&(isAlternateDesign=!0),isAlternateDesign){var i=0;if(void 0===window.dropSearch)$(".dropsearch").each((function(){var id="dropsearch"+i;if($(this).attr("id",id),void 0===$(this).dropSearch)return!1;var parid=$(this).parents(".filter-options").attr("id"),theTitle=$(this).parents(".filter-options").find("h5").text();$(this).dropSearch("selected-"+parid,"experts",theTitle),$("#fastihscomdatasourceid").length&&$(".bar_filters").length&&$(".bar_filters").addClass("with_ihs_core"),i++}));else for(var tot=window.dropSearch.items.length,b=0;b0?($("#aside-fastihscomdatasourceid").show("fast"),prepareFacets(data.facet_counts.facet_fields.fastihscomdatasourceid,"fastihscomdatasourceid","left_column","Core")):$("#aside-chemicalfamilykeyword").hide("fast"))}if($("more-button").load((function(event){event.preventDefault()})),null!=data&&data.response.docs.length>0&&!onLoadCheck){if(isEventLandingPage)writeEventLandingResults(data.response);else if(isExpertLandingPage){"showMore"!=requestFrom&&(totalResultShowedflag=0,Showedflag=0),$.each(data.response.docs,(function(i,doc){if(strVal="",strTempUrl="",docUrl="",doc&&doc.url&&(strTempUrl=doc.url),null!=doc.id&&null!=doc.expertKeyword&&null!=doc.expertKeyword[0].toString()){if(linkExpertToEC&&1==doc.sp_enabled){var u=doc.url.replace("/experts","");u=u.replace(".html",""),strTempUrl=ECsiteLink+EC_ExpertsPath+u}strVal=strVal+"
"+doc.expertKeyword[0].toString()+" ","1"==doc.sp_enabled&&"undefined"!=typeof SHOPIFY_CONTROL&&"True"==SHOPIFY_CONTROL&&(strVal=strVal+"
")}if(null!=doc.id&&null!=doc.expertTitle&&(strVal=strVal+''+htmlDecode(doc.expertTitle)+"
"),strVal+="",strVal+="
",null!=doc.id&&"ECommerce"==doc.fastihscomdatasourceid&&(strVal=strVal+'
IHS Online Store
"),null!=doc.id&&"GlobalStore"==doc.fastihscomdatasourceid&&(strVal=strVal+'
Standards Store
"),null!=doc.id&&null!=data.highlighting[doc.id].lead)strVal+=advancedContentText(data.highlighting[doc.id].lead.toString(),140);else if(null!=doc.lead)strVal+=advancedContentText(doc.lead,140);else if(null!=doc.displaybody){var docbody=doc.displaybody;strVal+=advancedContentText(docbody,140)}null!=typeof showCollections&&showCollections&&(strVal=(strVal=(strVal=(strVal=(strVal+="
")+" Rank : "+doc.rank)+" Score:"+doc.score)+" Core: "+doc.fastihscomdatasourceid+" ")+"edit expert ",strVal+="
"),strVal+="
",strVal+="
",strVal+='';var taxonomyFlag=0;"false"==hideTaxonomyButtons&&(isSearchResultPage||(taxonomyFlag<8&&void 0!==doc.topicKeyword&&doc.topicKeyword.length>0&&$.each(doc.topicKeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.industrykeyword&&doc.industrykeyword.length>0&&$.each(doc.industrykeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.workflowkeyword&&doc.workflowkeyword.length>0&&$.each(doc.workflowkeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})))),strVal+=" ",strVal+=" ",null!=doc.id&&null!=doc.expertImageSquare?strVal=(strVal=strVal+"")+" ":null!=typeof Default_Expert_Image&&""!=Default_Expert_Image&&(strVal=(strVal=strVal+"")+" "),strVal+="\t ",$("#resultsContent").append(strVal),totalResultShowedflag++})),totalResultShowedflag+Showedflag",strVal+="",strVal+="",null!=doc.id&&"ECommerce"==doc.fastihscomdatasourceid&&(strVal=strVal+'
IHS Online Store
"),null!=doc.id&&"GlobalStore"==doc.fastihscomdatasourceid&&(strVal=strVal+'
Standards Store
"),null!=doc.id&&null!=data.highlighting[doc.id].customerdisplaybody){var docbody=data.highlighting[doc.id].customerdisplaybody.toString();strVal+=advancedContentText(docbody,140)}else if(null!=doc.displaybody){var docbody;docbody=(docbody=doc.displaybody).replace(" Read this case study and learn more at IHS.",""),strVal+=advancedContentText(docbody,140)}else if(null!=doc.body){var docbody=doc.body;strVal+=advancedContentText(docbody,140)}null!=typeof showCollections&&showCollections&&(strVal=(strVal=(strVal=(strVal+="
")+"Rank : "+doc.rank)+" Score:"+doc.score)+" Core: "+doc.fastihscomdatasourceid+" ",strVal+="
"),strVal+="
",strVal+="",strVal+='';var taxonomyFlag=0;"false"==hideTaxonomyButtons&&(isSearchResultPage||(taxonomyFlag<8&&void 0!==doc.topicKeyword&&doc.topicKeyword.length>0&&$.each(doc.topicKeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.producttype&&doc.producttype.length>0&&$.each(doc.producttype,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.industrykeyword&&doc.industrykeyword.length>0&&$.each(doc.industrykeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.workflowkeyword&&doc.workflowkeyword.length>0&&$.each(doc.workflowkeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.jobroleKeyword&&doc.jobroleKeyword.length>0&&$.each(doc.jobroleKeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})))),strVal+=" ",strVal+=" ",null!=doc.id&&null!=doc.multimediaImageInternal?strVal=(strVal=strVal+"")+" ":null!=doc.id&&null!=doc.multimediaImageExternal&&(strVal=(strVal=strVal+"")+" "),strVal+="\t ",$("#resultsContent").append(strVal)}));else if(isBlogLandingPage||isPodcastLandingPage){var pinnedResults="",wrapper="",tabCount=0,clickVar=!1,flag=0;$("#searchResults").on("click","#show-more",(function(){$("#searchResults").attr("data-click",!0)}));var featuredLinkArrays=[];if(null!=document.getElementById("pinnedResultHTML")){pinnedResults=document.getElementById("pinnedResultHTML").value;var selectedTab=$($("#filter-tabs-list .active").html()).attr("facetvalue"),selectedTabType=$($("#filter-tabs-list .active").html()).attr("facetDetail");wrapper=$(pinnedResults),""!=selectedTabType&&null!=selectedTabType?$(wrapper).filter("li.pinnedResultLi").each((function(){var keyword=$(this).find(".facetNavigationTab").text();if(""==selectedTab)if(""!==keyword){var tabFacetValue=new Array;tabFacetValue=keyword.split(";");for(var i=0;i=0&&tabFacet[0].indexOf(selectedTabType)>=0&&flag++}0==flag?($(this).css("display","none"),tabCount++):featuredLinkArrays.push($($(this).find("a")[0]).attr("href")),flag=0}else $(this).css("display","none"),tabCount++;else if(""!==(keyword=$(this).find(".pinnedFacetNavigationTab").text())){var tabFacetValue=new Array;tabFacetValue=keyword.split(";");for(var i=0;i=0&&tabFacet[0].indexOf(selectedTabType)>=0&&flag++}0==flag?($(this).css("display","none"),tabCount++):featuredLinkArrays.push($($(this).find("a")[0]).attr("href")),flag=0}else $(this).css("display","none"),tabCount++})):$(wrapper).filter("li.pinnedResultLi").each((function(){$(this).attr("class").indexOf("tabpinned")<0?featuredLinkArrays.push($($(this).find("a")[0]).attr("href")):$(this).css("display","none")}))}var defaultDisplayFlag=0;0==$(".filter-options.filter-search .selected-filters").length&&0==data.response.start&&0==selectedPage&&($("#resultsContent").append(wrapper),(-1==searchQueryURL.indexOf("&start=")||searchQueryURL.indexOf("&start=0")>-1)&&(defaultDisplayFlag=featuredLinkArrays.length));var featuredLinkArrays=[];0!=$(".filter-options.filter-search .selected-filters").length&&(featuredLinkArrays=[]),"showMore"!=requestFrom&&(totalResultShowedflag=0,Showedflag=0),newShowedflag=0,pinnedNewShowedflag=0,$.each(data.response.docs,(function(i,doc){if(defaultDisplayFlag<10){var loadData=!0;if(0==$(".filter-options.filter-search .selected-filters").length&&featuredLinkArrays.indexOf(doc.pagepath)>-1&&(loadData=!1),loadData){strVal="",strTempUrl="",docUrl="";var blogDate="",displaydate="",displaytime="";if(null!=doc.blogDate&&void 0!==doc.blogDate){blogDate=doc.blogDate;var d=new Date(blogDate),curr_date=blogDate.split("T")[0].split("-")[2],curr_month=blogDate.split("T")[0].split("-")[1],curr_year=blogDate.split("T")[0].split("-")[0],time;displaydate=(displaydate=curr_date+" "+(displaydate=month_names[parseInt(curr_month)]))+" "+curr_year,displaytime=blogDate.split("T")[1].substring(0,5)}if(doc&&doc.url&&(strTempUrl=doc.url),null!=doc.id&&"Expert Bio"==doc.type&&null!=doc.expertKeyword?null!=doc.expertKeyword[0]&&(strVal=strVal+"
"+htmlDecode(doc.expertKeyword[0])+" "):null!=doc.id&&null!=doc.title&&(strVal=strVal+"
"+htmlDecode(doc.title)+' '+displaydate+' '+displaytime+" ",void 0!==doc.blogAuthor&&null!=doc.blogAuthor&&doc.blogAuthor.length>0&&$.each(doc.blogAuthor,(function(i,blogAuthor){strVal=strVal+' '+blogAuthor+" "})),strVal+="
"),strVal+="",null!=doc.id&&"ECommerce"==doc.fastihscomdatasourceid&&(strVal=strVal+'
IHS Online Store
"),null!=doc.id&&"GlobalStore"==doc.fastihscomdatasourceid&&(strVal=strVal+'
Standards Store
"),null!=doc.displaybody){var docbody=doc.displaybody;strVal+=advancedContentText(docbody,140)}else if(null!=doc.id&&null!=data.highlighting[doc.id].body){var docbody=data.highlighting[doc.id].body.toString();strVal+=advancedContentText(docbody,140)}else if(null!=doc.body){var docbody=doc.body;strVal+=advancedContentText(docbody,140)}null!=typeof showCollections&&showCollections&&(strVal=(strVal=(strVal=(strVal+="
")+"Rank : "+doc.rank)+" Score:"+doc.score)+" Core: "+doc.fastihscomdatasourceid+" ",null!=typeof editButtonLink&&"ihs"==doc.fastihscomdatasourceid.toLowerCase()&&1==isBlogLandingPage&&(strVal=strVal+' Edit Blog '),strVal+="
"),strVal+="
",strVal+="",strVal+='';var taxonomyFlag=0;"false"==hideTaxonomyButtons&&(taxonomyFlag<8&&void 0!==doc.topicKeyword&&doc.topicKeyword.length>0&&$.each(doc.topicKeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.producttype&&doc.producttype.length>0&&$.each(doc.producttype,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.industrykeyword&&doc.industrykeyword.length>0&&$.each(doc.industrykeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.workflowkeyword&&doc.workflowkeyword.length>0&&$.each(doc.workflowkeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.jobroleKeyword&&doc.jobroleKeyword.length>0&&$.each(doc.jobroleKeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++}))),strVal+=" ",strVal+=" ",null!=doc.id&&null!=typeof doc.blogBannerImage&&"Blog Post"==doc.type?strVal=(strVal=strVal+"")+" ":null!=doc.id&&null!=typeof doc.blogBannerImage&&"Podcast Page"==doc.type&&(strVal=(strVal=strVal+"")+" "),strVal+="\t ",$("#resultsContent").append(strVal),newShowedflag++,totalResultShowedflag++}else Showedflag++,defaultDisplayFlag--,pinnedNewShowedflag++;defaultDisplayFlag++}})),totalResultShowedflag+Showedflag=0&&tabFacet[0].indexOf(selectedTabType)>=0&&flag++}0==flag?($(this).css("display","none"),tabCount++):featuredLinkArrays.push($($(this).find("a")[0]).attr("href")),flag=0}else $(this).css("display","none"),tabCount++;else if(""!==(keyword=$(this).find(".pinnedFacetNavigationTab").text())){var tabFacetValue=new Array;tabFacetValue=keyword.split(";");for(var i=0;i=0&&tabFacet[0].indexOf(selectedTabType)>=0&&flag++}0==flag?($(this).css("display","none"),tabCount++):featuredLinkArrays.push($($(this).find("a")[0]).attr("href")),flag=0}else $(this).css("display","none"),tabCount++})):$(wrapper).filter("li.pinnedResultLi").each((function(){$(this).attr("class").indexOf("tabpinned")<0?featuredLinkArrays.push($($(this).find("a")[0]).attr("href")):$(this).css("display","none")}))}var defaultDisplayFlag=0;0==$(".filter-options.filter-search .selected-filters").length&&0==data.response.start&&0==selectedPage&&($("#resultsContent").append(wrapper),(-1==searchQueryURL.indexOf("&start=")||searchQueryURL.indexOf("&start=0")>-1)&&(defaultDisplayFlag=featuredLinkArrays.length)),0!=$(".filter-options.filter-search .selected-filters").length&&(featuredLinkArrays=[]),"showMore"!=requestFrom&&(totalResultShowedflag=0,Showedflag=0),newShowedflag=0,pinnedNewShowedflag=0,$.each(data.response.docs,(function(i,doc){if(defaultDisplayFlag<10){var loadData=!0;if(0==$(".filter-options.filter-search .selected-filters").length&&featuredLinkArrays.indexOf(doc.pagepath)>-1&&(loadData=!1),loadData){if(strVal="",strTempUrl="",docUrl="",doc&&doc.url&&(strTempUrl=doc.url),null!=doc.id&&"Expert Bio"==doc.type&&null!=doc.expertKeyword){if(null!=doc.expertKeyword[0]){if(linkExpertToEC&&1==doc.sp_enabled){var u=doc.url.replace("/experts","");u=u.replace(".html",""),strTempUrl=ECsiteLink+EC_ExpertsPath+u}strVal=strVal+"
"+htmlDecode(doc.expertKeyword[0])+" ","1"==doc.sp_enabled&&"undefined"!=typeof SHOPIFY_CONTROL&&"True"==SHOPIFY_CONTROL&&(strVal=strVal+"
"),strVal+=" "}}else if(null!=doc.id&&-1!=doc.type.indexOf("Event")){var ecs="",ece="";if(void 0!==doc.eventtype){var ecEventsArr=ecEvents.split(";"),eventType=doc.eventtype[0];if(-1!==ecEventsArr.indexOf(eventType)){var ecEventRedirectArr=eventToRedirect.split("|"),urlSplit=doc.url.split("/"),ecEventTempUrl=doc.url;linkEventToEC&&-1!==ecEventRedirectArr.indexOf(eventType)&&(strTempUrl=ECsiteLink+EC_EventsPath+urlSplit[2],ecs='',ece="
")}}strVal+=ecs+''+htmlDecode(doc.title)+" "+ece+""}else null!=doc.id&&null!=typeof CleanEnergyNewsLink&&""!=CleanEnergyNewsLink&&"CleanEnergyNews"==doc.fastihscomdatasourceid?strVal=strVal+""+htmlDecode(doc.title)+" ":null!=doc.id&&null!=doc.title&&(strVal=strVal+""+htmlDecode(doc.title)+" ");if(strVal+="",null!=doc.id&&"ECommerce"==doc.fastihscomdatasourceid&&(strVal=strVal+'
IHS Online Store
"),null!=doc.id&&"GlobalStore"==doc.fastihscomdatasourceid&&(strVal=strVal+'
Standards Store
"),null!=doc.id&&null!=data.highlighting[doc.id].body){var docbody=data.highlighting[doc.id].body.toString();strVal+=advancedContentText(docbody,140)}else if(null!=doc.body){var docbody=doc.body;strVal+=advancedContentText(docbody,140)}else if(null!=doc.displaybody){var docbody=doc.displaybody;strVal+=advancedContentText(docbody,140)}null!=typeof showCollections&&showCollections&&(strVal=(strVal=(strVal=(strVal+="
")+"Rank : "+doc.rank)+" Score:"+doc.score)+" Core: "+doc.fastihscomdatasourceid+" ",strVal+="
"),strVal+="
",strVal+="",strVal+='';var taxonomyFlag=0;"false"==hideTaxonomyButtons&&(taxonomyFlag<8&&void 0!==doc.topicKeyword&&doc.topicKeyword.length>0&&$.each(doc.topicKeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.producttype&&doc.producttype.length>0&&$.each(doc.producttype,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.industrykeyword&&doc.industrykeyword.length>0&&$.each(doc.industrykeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.workflowkeyword&&doc.workflowkeyword.length>0&&$.each(doc.workflowkeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++})),taxonomyFlag<8&&void 0!==doc.jobroleKeyword&&doc.jobroleKeyword.length>0&&$.each(doc.jobroleKeyword,(function(i,taxKeyword){taxonomyFlag<8&&(strVal=strVal+""+taxKeyword+" "),taxonomyFlag++}))),strVal+=" ",strVal+=" ",strVal+="",strVal+=" ",strVal+="\t ",$("#resultsContent").append(strVal),newShowedflag++,totalResultShowedflag++}else Showedflag++,defaultDisplayFlag--,pinnedNewShowedflag++;defaultDisplayFlag++}})),totalResultShowedflag+Showedflag'+decodeURIComponent(getUrlParameter("search"))+"");landingnoresultsflag=!1,loadpellData($check[0],!1),$("#noResults").hide()}else{"FindComponentsPage"==requestFrom&&($("#resultPage").show(),null!=$("#main-content").find("#noresultcontent")&&$("#main-content").find("#noresultcontent").html(""));var currentKeyword=searchVar;"searchWithin"==requestFrom&&null!=$(".searchWithinResultsText").val()&&(currentKeyword=$(".searchWithinResultsText").val().toLowerCase().trim()),null==currentKeyword&&(currentKeyword="");var noResultContetnString="";if(-1==currentKeyword.indexOf("http")){if(isSearchResultPage||void 0===urlParams.l&&void 0===urlParams.i||""!=currentKeyword)if(isSearchResultPage){null==currentKeyword&&(currentKeyword="");var decodedSearchvar=decodeURIComponent(currentKeyword),message=''+$SEARCH_ZERO_RESULTS.replace(/</gim,"<").replace(/>/gim,">").replace("####",""+decodedSearchvar+" ")+" ";if(""==currentKeyword&&(message="We're sorry, but the pre selected landing page category keyword has 0 results. "),$("#resultPage").hide(),noResultContetnString="",null!=typeof data.spellcheck&&null!=data.spellcheck.suggestions){for(var flag=0,spellSugessionCount=0,i=0;i0){for(var spellchkstr=""+$SEARCH_DID_YOU_MEAN+" ",spellSuggestion=[],i=0;i0){for(var i=0;i"+spellSuggestion[i]+"",i!=spellSugessionCount-1&&(spellchkstr+=",")}noResultContetnString=noResultContetnString+""}}}noResultContetnString=noResultContetnString+""}else{var decodedSearchvarRedirect=decodeURIComponent(currentKeyword),searchURLRedirect=searchPageURL+"?search=";"undefined"!=decodedSearchvarRedirect&&(searchURLRedirect=searchURLRedirect+encodeURIComponent(decodedSearchvarRedirect)+"&landingnoresults=true"),notGlobalLandingPage()?noResultContetnString=preSelectmessage="We're sorry, but there are no results that match that criteria. Choose different filter options for new results. ":window.location.href=searchURLRedirect}else{var preSelectmessage="";noResultContetnString=preSelectmessage="undefined"!=typeof PRE_SELECT_FACET_ERROR_MSG&&""!=PRE_SELECT_FACET_ERROR_MSG?""+PRE_SELECT_FACET_ERROR_MSG+" ":"We're sorry, but there are no results that match that criteria. You can see results by de-selecting filters on the left. "}"refreshPage"==requestFrom&&(byronDebug&&console.log("clearing the cookies via refresh"),clearCookies(),facetFilltersCookie=[]),"searchWithin"==requestFrom&&(byronDebug&&console.log("popping the cookies via searchwithin"),facetFilltersCookie.pop());var refreshedLandingPage=!isSearchResultPage&&"refreshPage"==requestFrom,searchedwithInLandingPage=!isSearchResultPage&&"searchWithin"==requestFrom;isSearchResultPage||"FindComponentsPage"==requestFrom||refreshedLandingPage||searchedwithInLandingPage?(isSearchResultPage||void 0===urlParams.l&&void 0===urlParams.i?"FindComponentsPage"!=requestFrom&&($("#resultPage").show(),notGlobalLandingPage()?($("#searchResults #noResults").html(''+noResultContetnString+"
").css("display","block"),$("#searchResults #loaderImg").css("display","none"),$("#more-button").css("display","none")):$("#resultsCount").html(noResultContetnString)):($("#loaderImg").hide(),$("#resultPage").html(noResultContetnString)),requestFrom=""):notGlobalLandingPage()&&($("#searchResults #noResults").html(''+noResultContetnString+"
").css("display","block"),$("#searchResults #loaderImg").css("display","none"),$("#more-button").css("display","none"))}}if("sort"==requestFrom&&dataLength>10&&(dataLength=10),"sort"==requestFrom)str1=""+SEARCH_VIEWING_RESULT.replace("####","1-"+data.response.docs.length).replace("#COUNT#",data.response.numFound)+"
",10*selectedPage+dataLength "+SEARCH_VIEWING_RESULT.replace("####","1-"+(parseInt(10*selectedPage)+parseInt(newShowedflag)+parseInt(pinnedResultFound))).replace("#COUNT#",data.response.numFound)+"
";else if("True"==isPinnedResult&&selectedPage>0)str1=" "+SEARCH_VIEWING_RESULT.replace("####","1-"+(parseInt(10*selectedPage)+parseInt(newShowedflag))).replace("#COUNT#",data.response.numFound)+"
";else{var isAlternateDesign=!1;if((isExpertLandingPage||isEventLandingPage)&&(isAlternateDesign=!0),isAlternateDesign){var currentTotal=$(".search-results article").length;currentTotal?isEventLandingPage?str1="Results: "+data.response.numFound+"
":str1=" "+SEARCH_VIEWING_RESULT.replace("####","1-"+currentTotal).replace("#COUNT#",data.response.numFound)+"
":str1="No results available
"}else str1=" "+SEARCH_VIEWING_RESULT.replace("####","1-"+(10*selectedPage+data.response.docs.length)).replace("#COUNT#",data.response.numFound)+"
"}if(onLoadCheck||(landingnoresultsflag&&data.response.numFound>0&&$("#resultsCount").append("Showing all Product & Solution results for :"+decodeURIComponent(getUrlParameter("search"))+" "),str1!=" "+SEARCH_VIEWING_RESULT.replace("####","1-0").replace("#COUNT#",0)+"
"?$("#resultsCount").append(str1):$("#loaderImg,#resultsContent").css("display","none")),onLoadCheck=!1,buildMobileViews(),pageHasCookies&&!cookiePageReloadInProgress){cookiePageReloadInProgress=!0;for(var lastFacet=pageFilterCookies.length-1,i=0;i=0){var strq=decodeURIComponent(currentFacetFilterCookie.split("###")[1]);strq.indexOf('"~')>0?searchWithinResults(decodeURIComponent(strq.substring(strq.indexOf('("')+2,strq.lastIndexOf('"~')))):searchWithinResults(currentFacetFilterCookie.split("###")[1])}else facetname.indexOf("bookable")>=0?($(".selected-bookable")[0].checked=!0,void 0!==$(".selected-bookable")[1]&&($(".selected-bookable")[1].checked=!0),refreshData(decodeURIComponent(currentFacetFilterCookie))):refreshData(decodeURIComponent(currentFacetFilterCookie))}else{var facetTab=currentFacetFilterCookie.split("###"),islast=i==lastFacet;refreshTabData(facetTab[1],facetTab[0],islast),$("#filter-tabs-list").children("li").removeClass("active"),$('[facetvalue="'+facetTab[1]+'"]').parent().addClass("active")}}pageHasCookies=!1,cookiePageReloadInProgress=!1}cookiePageReloadInProgress||pageHasCookies||(document.getElementById("selected-filters").style.pointerEvents="auto",null==document.getElementById("facets")&&null==document.getElementById("facets")||(document.getElementById("facets").style.pointerEvents="auto"),null==document.getElementById("filter-tabs-list")&&null==document.getElementById("filter-tabs-list")||(document.getElementById("filter-tabs-list").style.pointerEvents="auto")),"undefined"!=typeof _satellite&&_satellite.track("sitesearchfilter"),$("#searchWithinResults").removeAttr("disabled"),updateFiltersList(),checkAndUpdateTimeframes(),isEventLandingPage&&forceCookieCheck(),byronDebug&&console.log("%c - loadData: Complete","color: #00AB4E"),byronDebug&&console.log("%c =======================================================================","color: #00AB4E")}function forceCookieCheck(){var cookieID="";""!=currentRelativeURL&&(cookieID=(cookieID=currentRelativeURL.replace(".","")).replace(/\//g,"__")),cookieID+="facetFilltersCookie"}function clearCookies(){if("sessionStorage"in window&&null!==window.sessionStorage){var uniquieCookieID="";if(""!=currentRelativeURL&&(uniquieCookieID=(uniquieCookieID=currentRelativeURL.replace(".","")).replace(/\//g,"__")),(uniquieCookieID+="facetFilltersCookie")in sessionStorage){var cookiefilters=sessionStorage.getItem(uniquieCookieID);sessionStorage.setItem(uniquieCookieID,""),byronDebug&&console.log("sessionStorage cleared",cookiefilters,uniquieCookieID)}}}function getStandardArgs(){params=["wt=json","indent=on","json.wrf=loadData","facet.limit=-1","facet.mincount=1","facet.field=sp_enabled","facet.field=language","facet.field=videoflag","facet.field=fastprimarynavigator","facet.field=fastihscomdatasourceid","facet.field=commonproducttype","facet.field=jobroleKeyword","facet.field=expertKeyword","facet.field=topicKeyword","facet.field=commonindustry","facet.field=geoloc","facet.field=publication","facet.field=eventtype","facet.field=chemicalfamilykeyword","facet.field=chemicalkeyword","facet.field=commonindustry","facet.field=blogAuthor","facet.field=RAType","facet.field=workflowkeyword","facet.field=customerType"],paramsLength=params.length,isBlogLandingPage&&(params.push("f.topicKeyword.facet.sort=count"),params.push("f.blogAuthor.facet.sort=count"),params.push("f.RAType.facet.sort=count"),params.push("f.commonindustry.facet.sort=count"),params.push("f.geoloc.facet.sort=count"),params.push("f.workflowkeyword.facet.sort=count"),params.push("sort=blogDate desc"),paramsLength=params.length),landingPageShards="shards=",landingPageFQ="fq=fastihscomdatasourceid:(";for(var i=0;i "+SEARCH_FACET_WITH_VIDEO+"";var filterHTML=$("#"+targetId).html();void 0!==filterHTML&&filterHTML.indexOf("")<0&&$("#"+targetId).append(strFacets)}function checkMobileEC(){var on=!0;if($(".mobile-search-filter.open").length){var mobileFilter=$(".filter-results-form"),mobileMenu=$(".mobile-search-menu");$(".filter-link",mobileMenu).removeClass("open"),mobileFilter.removeClass("open"),mobileMenu.removeClass("active-always").insertAfter(".component-search-results"),$("#main-content, footer, .topnav").show(),mobileMenu.removeClass("active"),$(".sort-link").removeClass("open"),$(".sort-results-form").removeClass("open"),$(".slick-initialized").each((function(){$(this).slick("refresh")}))}}function prepareFacetsBookable(targetId){var strFacets="";isExpertLandingPage||(strFacets+="IHS Markit | Experts "),strFacets+=" "+SEARCH_FACET_WITH_BOOKABLE+" ";var filterHTML=$("."+targetId).html();void 0!==filterHTML&&filterHTML.indexOf("")<0&&$("."+targetId).append(strFacets)}function prepareFacets(data,fProp,targetId,facetName){var isAlternateDesign=!1;(isExpertLandingPage||isEventLandingPage)&&(isAlternateDesign=!0);var strFacets="";strFacets="