##local.define(FrameHandled)0 ##local.define(Frame) ##if request.Frame ##local.define(Frame)##request.Frame ##endif /* code for the main frame */ ##local.define(MainFrameScripts) var hideBtns = 0; function DoSnap (SSUrl) { if(snapshotClosed){ snapshotClosed = false; var SnapBox = Popup( 500, SSUrl ) } } function DoIsacLink (SSUrl) { if(snapshotClosed){ snapshotClosed = false; var SnapBox = Popup( 500, SSUrl ); } } function LinkClicked(e) { alert(e); alert(e.HREF); //parent.fnLaunchBrowse(unescape('##value.urlencode(Data.URL)'),'Zones', 0) } function UpdateClusters(myEvt){ if(myEvt=="click"){ try{if(globRunning==0){RefreshButton.style.visibility='hidden'}}catch(er){} } var strategy = document.getElementById("strategies"); var s = strategy.value; s = "" + s; var url = "##this&Frame=clustersframe&Method=UpdateClusters&strategies=" + s + "&CStem="+ encodeURI("##searchcontext.query.expression") ; var clustersframe = document.getElementById("clustersframe"); // consider doing the manual unload of dm if there is one ? clustersframe.src = url; } var currentfilterID = ""; function UpdateClustorOrOrder() { var h = GetIFrameSetHandle(); if (h == null) return ; var strLoc; strLoc = "APS_GLOBAL_SEARCH?##this.styleset&Method=search&query.set=##startpoint.ServerSetName&Frame=Results"; ##if searchcontext.Parent strLoc +="&Parent=##searchcontext.Parent"; ##endif ##if searchcontext.QueryObject strLoc +="&QueryObject=##searchcontext.QueryObject"; ##endif var order = document.getElementById("Criteria").value; strLoc +="&query.order=" + order; strLoc +="&query.filterid=" + currentfilterID; strLoc +="&query.origSetHandle=" + h; // problem //alert(strLoc); var AggResult = document.getElementById("AggResult"); AggResult.src=strLoc; } function GetIFrameSetHandle() { var AggResult = document.getElementById("AggResult"); var origSetHandle = AggResult.contentWindow.origSetHandle; var n; if ((origSetHandle == n) || (origSetHandle==null)) { return null; } return origSetHandle; } function FetchMoreForTarget(code) { var h = GetIFrameSetHandle(); if (h == null) return ; var strLoc; strLoc = "APS_GLOBAL_SEARCH?##this.styleset&Method=search&query.set=##startpoint.ServerSetName&Frame=Results"; ##if searchcontext.Parent strLoc +="&Parent=##searchcontext.Parent"; ##endif ##if searchcontext.QueryObject strLoc +="&QueryObject=##searchcontext.QueryObject"; ##endif strLoc +="&query.moreFrom=" + code; strLoc +="&query.origSetHandle=" + h; //alert(strLoc); var AggResult = document.getElementById("AggResult"); AggResult.src=strLoc; currentfilterID = ""; var criteria = document.getElementById("Criteria"); criteria.value = ""; } function AggChangeLocation(myVal){ UpdateClustorOrOrder(); } function filterOn(filterID) { currentfilterID = filterID; UpdateClustorOrOrder(); } function showAllResults() { filterOn(""); } function Stop() { //var stop1 = document.getElementById("stop1"); //stop1.style.visibility='hidden'; var stopframe = document.getElementById("stopframe"); stopframe.src = "##this&Method=Stop"; } ##if startpoint.ServerSetName var bUseScriptFetcher = true; ##if sessioncfg.ZONES.UseHTTPFetcherControl bUseScriptFetcher = false; ##endif var statusWindow = null; function ShowStatusWindow (){ if(statusClosed && !statusOpened){ statusClosed = false; statusOpened = true; statusURL = "APS_GLOBAL_SEARCH?setname=##startpoint.ServerSetName&Method=ShowStatus&##this.StyleSet"; var statusBox = Popup( 500, statusURL ); } } function StatusWindowClosing() { statusClosed = true; statusOpened = false; } var statusURL = ""; var SetName = "##startpoint.ServerSetName"; var numInc = 0; var oldHits; var statusClosed = true; var statusOpened = false; var snapshotClosed = true; var bFinished=false; function GBar(hits){ var bar = ""; var bar_len = (hits*10)/100; if(bar_len > 10 ){ bar_len = 10; } for(var i=0 ;i< bar_len;i++){ bar += "ll"; } return bar; } function setProgress( running, hits ) { var bar = document.getElementById("bar"); var RefreshButton = document.getElementById("RefreshButton"); var stop1 = document.getElementById("stop1"); var Panel1HeadingPopulating = document.getElementById( "Panel1HeadingPopulating"); var Criteria = document.getElementById("Criteria"); var sFinished = running ? "0" : "1"; if (running) { bar.innerHTML=" "+GBar(hits)+"" + hits + " "; bFinished = (running == 0); var Panel1HeadingPopulating = document.getElementById("Panel1HeadingPopulating"); var Panel1HeadingReady = document.getElementById("Panel1HeadingReady"); var strategies = document.getElementById("strategies"); var stop1 = document.getElementById("stop1"); var RefreshButton = document.getElementById("RefreshButton"); } else { bar.innerHTML=" " + GBar(0) + "##leg.CORPZONES.Completed    "+hits+" ##leg.CORPZONES.Hits ."; //stop1.style.display = "none"; //Panel1HeadingPopulating.style.display="none"; //strategies.style.display=""; //Panel1HeadingReady.style.display=""; bFinished=true; Criteria.disabled=false; } globRunning = running; } function fnLinkClicked( strURL ) { var t = strURL.toLowerCase(); if (t.indexOf("http://zones")==0) { var r = "##local.Data(HTTP_URLPrefix)" var u = strURL.substr(13); document.location.href = r+u+"&Parent=##this.obj"; return ; } ##if sessioncfg.ZONES.ShowIsearchResultInPopup var strTitle = ""; var url = "APS_UI_BROWSER?##this.StyleSet&URL="; var loc = escape (strURL); url += loc; fnLaunchBrowse ( url, strTitle, "1", 900 ); if (event) { if (event.returnValue) { event.returnValue = false; } } //window.location ="APS_EMBEDDED_BROWSER?##this.styleset&url=" + strURL; ##else window.open(strURL); return; ##endif } function fnLaunchBrowse ( strURL, strTitle, strInWindow ) { //alert("hello"); if ( strInWindow == "0" ){ window.open ( unescape ( strURL ) ); } else if (strInWindow =="2") { window.navigate(strURL); } else { var strFrameURL = "APS_UI_BROWSER?##this.StyleSet&URL=" + strURL + "&Title=" + strTitle; var obFrame = documentManager.topManager ().create ( "floatingFrame" ); obFrame.setRectangle ( 50, 50, 400, 0 ); obFrame.start (); obFrame.load ( strFrameURL ); } event.returnValue = false; } ##endif ##local.Define(MainFrameHTML) ##local.define(AdviceRowTabs) ##if searchcontext.IsDefined(QueryObject) ##local.ModifySearchTabs ##endif ##local.SaveSearchTab ##local.define(Advice) ##leg.CORPZONES.GlobalSearch.Advice ##helpcontext.addHelp(GlobalSearchResults) ##helpcontext.addHelp(ZonesProSearchResults) ##helpcontext.addHelp(Toolbar) ##local.SaveSearchSupport ##local.define(Panel1Title)
/*##leg.CORPZONES.Clusters.Populating*/
##local.define(Content) ##local.Define(SearchObject)APS_GLOBAL_SEARCH ##local.DefineByRender(expression) ##local.DefineByRender(domain) ##if searchcontext.query.expression ##local.DefineByRender(expression)##searchcontext.query.expression ##local.DefineByRender(domain) ##endif ##local.define(Title)##leg.CORPZONES.GlobalSearch.Title ##local.define(ContentPaneTitle) ##if startpoint.ServerSetName /* Content cluster*/ ##if searchcontext.Parent ##endif ##if searchcontext.QueryObject ##endif ##this.stylesetforform /**/ ##endif ##local.define(Panel1Content)
##leg.CORPZONES.AllResults
l
##if startpoint.ServerSetName ##else ##leg.CORPZONES.NoResults
##local.Define(SupressIframe)1 ##local.Define(Panel1Title) ##endif ##include(BrowseListLayout) ##if local.NoHits
##leg.ZONESOPAC.AdvancedSearch.Error.NoHits.Heading
##else ##if error.Level
##leg.ZONESOPAC.AdvancedSearch.Error.NoHits.Heading
##else ##if local.SupressIframe ##else ##endif ##endif ##endif
##include(Body)
##if request.IsEqual(Method,"Select") ##local.define(FrameHandled)1 /* we are rendering this page because an error occured while doing a select */ /* this would normally show the snapshot page */ ##include(AggSnapShot) ##else ##if local.IsEqual(Frame,"") ##local.MainFrameHTML ##local.Define(FrameHandled)1 ##endif ##endif ##if local.IsEqual(FrameHandled,0) ##Header ##Scripts ##local.Frame not handled ##startpoint.Dump() ##endif