##formatter.TextRender() ##include(Defaults) ##local.defineByRender(SkinDir)/IMG/skins/##sessioncfg.ZONES.Skin ##local.defineByRender(Skin)##sessioncfg.ZONES.Skin ##local.defineByRender(SubSkin)##sessioncfg.ZONES.SubSkin ##local.SetDefaultLoc ##local.define(TOOLBAR_URL_MYZONE) ##if sessioncfg.ZONES.DeactivateMyZone ##local.Define(FEATURE_ENABLE_MYZONE)0 ##else ##local.Define(FEATURE_ENABLE_MYZONE)1 ##endif ##local.Define(FEATURE_ENABLE_SEARCHZONE)1 ##if sessioncfg.ZONES.KidsZoneON ##local.Define(FEATURE_ENABLE_KIDSZONE)1 ##else ##local.Define(FEATURE_ENABLE_KIDSZONE)0 ##endif ##if sessioncfg.ZONES.ConstellationON ##local.Define(FEATURE_ENABLE_CONSTELLATION)1 ##else ##local.Define(FEATURE_ENABLE_CONSTELLATION)0 ##endif ##if sessioncfg.ZONES.MetaSearchLibraryEdition ##local.Define(FEATURE_ENABLE_METASEARCH_LIBRARIES)1 ##else ##local.Define(FEATURE_ENABLE_METASEARCH_LIBRARIES)0 ##endif ##if sessioncfg.ZONES.CorpZones ##helpcontext.addHelp(ZonesPro) ##local.Define(FEATURE_ENABLE_SEARCHZONE)0 ##local.Define(FEATURE_ENABLE_CONSTELLATION)0 ##local.Define(FEATURE_ENABLE_KIDSZONE)0 ##local.Define(FEATURE_ENABLE_GLOBALSEARCH)1 ##local.Define(FEATURE_ENABLE_CORPSEARCH)1 ##else ##if sessioncfg.ZONES.ZonesFedSearch ##helpcontext.addHelp(ZonesFed) ##local.Define(FEATURE_ENABLE_GLOBALSEARCH)1 ##local.Define(FEATURE_ENABLE_CORPSEARCH)1 ##else ##local.Define(FEATURE_ENABLE_CORPSEARCH)0 ##local.Define(FEATURE_ENABLE_GLOBALSEARCH)0 ##endif ##endif ##if sessioncfg.ZONES.DeactivateSearchZone ##local.Define(FEATURE_ENABLE_SEARCHZONE)0 ##endif ##if request.Finished ##local.defineByRender(REQUESTED_BACK_URL)##request.Finished&BrowseAsHloc=##local.thisLoc ##else ##if searchcontext.Parent ##if searchcontext.BrowseList ##if searchcontext.IsEqual( BrowseList, ##searchcontext.Parent) ##local.defineByRender(REQUESTED_BACK_URL)##searchcontext.BrowseList?##this.StyleSet&Method=CloneList&Item=##searchcontext.BrowseListItem&BrowseAsHloc=##local.thisLoc ##else ##local.defineByRender(REQUESTED_BACK_URL)##searchcontext.Parent?##this.StyleSet&BrowseAsHloc=##local.thisLoc ##endif ##else ##local.defineByRender(REQUESTED_BACK_URL)##searchcontext.Parent?##this.StyleSet&BrowseAsHloc=##local.thisLoc ##endif ##else ##if request.Parent ##local.defineByRender(REQUESTED_BACK_URL)##request.Parent?##this.StyleSet&BrowseAsHloc=##local.thisLoc ##else ##if this.StyleSetAttributeIsEqual( "Style", "ZoneAdmin" ) ##local.definebyRender(REQUESTED_BACK_URL)APS_ZONES_ADMIN?##this.styleset&BrowseAsHloc=##local.thisLoc ##else ##local.definebyRender(REQUESTED_BACK_URL)APS_OPAC?##this.styleset&BrowseAsHloc=##local.thisLoc ##endif ##endif ##endif ##endif ##local.define(NormalPage) ##formatter.TextRender() ##local.define(SuppressPanel2CatTreeHeading)1 ##if local.IsEqual(ZonesSection,HOME) ##if sessioncfg.ZONES.SuppressBackButtonOnLibraryZoneScreen ##local.Define(TOOLBAR_ENABLE_BACK)0 ##else ##local.Define(TOOLBAR_ENABLE_BACK)1 ##endif ##else ##local.Define(TOOLBAR_ENABLE_BACK)1 ##endif ##local.Define(TOOLBAR_ENABLE_HOME)1 ##local.DefineByRender(TOOLBAR_ENABLE_MYZONE)##local.FEATURE_ENABLE_MYZONE ##local.DefineByRender(TOOLBAR_ENABLE_KIDSZONE)##local.FEATURE_ENABLE_KIDSZONE ##local.DefineByRender(TOOLBAR_ENABLE_SEARCHZONE)##local.FEATURE_ENABLE_SEARCHZONE ##local.DefineByRender(TOOLBAR_ENABLE_ABOUT)1 ##local.DefineByRender(TOOLBAR_ENABLE_ILL)1 ##if sessioncfg.ZONES.Toolbar.IncludeConstellation ##local.DefineByRender(TOOLBAR_ENABLE_CONSTELLATION)##local.FEATURE_ENABLE_CONSTELLATION ##else ##local.Define(TOOLBAR_ENABLE_CONSTELLATION)0 ##endif ##if sessioncfg.ZONES.Toolbar.IncludeGlobalSearch ##local.DefineByRender(TOOLBAR_ENABLE_GLOBALSEARCH)##local.FEATURE_ENABLE_GLOBALSEARCH ##else ##local.Define(TOOLBAR_ENABLE_GLOBALSEARCH)0 ##endif ##if sessioncfg.ZONES.Toolbar.IncludeCorpSearch ##local.DefineByRender(TOOLBAR_ENABLE_CORPSEARCH)##local.FEATURE_ENABLE_CORPSEARCH ##else ##local.Define(TOOLBAR_ENABLE_CORPSEARCH)0 ##endif ##if local.TOOLBAR_URL_BACK ##else ##if local.REQUESTED_BACK_URL ##local.defineByRender(TOOLBAR_URL_BACK)##local.REQUESTED_BACK_URL ##endif ##endif ##local.defineByRender(TOOLBAR_URL_HOME)##local.Data(HTTP_URLPrefix)APS_OPAC?##this.StyleSet&Style=Portal2&BrowseAsHloc=##local.thisLoc ##if sessioninfo.ZONES.BrwrID ##if sessioncfg.ZONES.DeactivateMyZone ##else ##local.defineByRender(TOOLBAR_URL_MYZONE)##local.Data(HTTPS_URLPrefix)APS_ACCOUNT?Method=MyZone&##this.StyleSet&Style=Portal2&BrowseAsHloc=##local.thisLoc ##endif ##else ##if sessioncfg.ZONES.DeactivateMyZone ##else ##local.defineByRender(TOOLBAR_URL_MYZONE)##local.Data(HTTPS_URLPrefix)APS_ACCOUNT?##this.StyleSet&Style=Portal2&Parent=##local.Data(HTTPGoBack_URLPrefix)##this.obj&BrowseAsHloc=##local.thisLoc ##endif ##endif ##local.defineByRender(memberLevel)##sessioncfg.ZONES.Membership.UserLevel ##if local.memberLevel ##local.define(memberLevelFMT) ##if local.IsEqual(memberLevel,"0") ##else ##if local.IsEqual(memberLevel,"1") ##else ##if local.IsEqual(memberLevel,"2") ##else ##if local.IsEqual(memberLevel,"3") ##else ##endif ##endif ##endif ##endif ##endif ##endif ##if sessioncfg.ZONES.SearchZone.DefaultTemplate ##local.DefineByRender(SearchZoneDefaultTemplate)##sessioncfg.ZONES.SearchZone.DefaultTemplate ##else ##local.Define(SearchZoneDefaultTemplate)APS_BROWSE_SEARCH ##endif ##if local.IsEqual(SearchZoneDefaultTemplate,APS_BROWSE_SEARCH) ##local.defineByRender(TOOLBAR_URL_SEARCHZONE)##local.Data(HTTP_URLPrefix)APS_ZONES?fn=AlphabeticSearch&##this.StyleSet&Style=Portal2&BrowseAsHloc=##local.thisLoc ##endif ##if local.IsEqual(SearchZoneDefaultTemplate,APS_QUICK_SEARCH) ##local.defineByRender(TOOLBAR_URL_SEARCHZONE)##local.Data(HTTP_URLPrefix)APS_ZONES?fn=QuickSearch&##this.StyleSet&Style=Portal2&BrowseAsHloc=##local.thisLoc ##endif ##if local.IsEqual(SearchZoneDefaultTemplate,APS_ADVANCED_SEARCH) ##local.defineByRender(TOOLBAR_URL_SEARCHZONE)##local.Data(HTTP_URLPrefix)APS_ZONES?fn=AdvancedSearch&##this.StyleSet&Style=Portal2&BrowseAsHloc=##local.thisLoc ##endif ##local.defineByRender(TOOLBAR_URL_CONSTELLATION)##local.Data(HTTP_URLPrefix)APS_ZONES?fn=constellationsearch&##this.StyleSet ##local.defineByRender(TOOLBAR_URL_KIDSZONE)##local.Data(HTTP_URLPrefix)APS_OPAC?##this.StyleSet&Style=KidsZone&BrowseAsHloc=##local.thisLoc ##local.defineByRender(TOOLBAR_URL_CORPSEARCH)##local.Data(HTTP_URLPrefix)APS_CORP_SEARCH?##this.StyleSet&Style=Portal2 ##local.defineByRender(TOOLBAR_URL_ABOUT)javascript:opendiv(); ##local.defineByRender(TOOLBAR_URL_ILL)##local.Data(HTTPS_URLPrefix)APS_ILL?##this.StyleSet&Style=Portal2&Parent=##this.urlencoded&BrowseAsHloc=##local.thisLoc##if local.CatalogueObject &CatalogueObject=##local.CatalogueObject##endif ##if sessioncfg.ZONES.MetaSearchLibraryEdition ##local.defineByRender(TOOLBAR_URL_GLOBALSEARCH)##local.Data(HTTP_URLPrefix)APS_ZCLIENT_BROADCAST?##this.StyleSet&Style=Portal2 ##else ##local.defineByRender(TOOLBAR_URL_GLOBALSEARCH)##local.Data(HTTP_URLPrefix)APS_GLOBAL_SEARCH?##this.StyleSet&Style=Portal2 ##endif ##include(SkinOverrides) /* suppressed text render */ ##local.MainPageLayout ##local.DefineByRender(SessionAccessCount)##request.SessionAccessCount() ##if request.HaveClientID("") /* we have to do this because when we set the CID - we get a new session - which is a bit duff */ ##local.Define(SessionAccessCount)GotCID ##endif ##if this.StyleSetAttributeIsEqual( "Style", "ZoneAdmin" ) ##else ##if local.pageDisableSessionCheck ##else ##if session.IsConnected() ##else ##if sessioncfg.IsEqual(ZONES.OfflineRedirectUrl,"") ##else ##local.define(redirectURL)##sessioncfg.ZONES.OfflineRedirectUrl ##endif ##endif ##endif ##endif ##if local.redirectURL ##Header ##Scripts ##else ##if local.IsEqual(SessionAccessCount,"0") ##local.InstallPreCheck ##else ##if sessioncfg.ZONES.Zone1.Enabled ##if this.StyleSetAttributeIsEqual( "Style", "ZoneAdmin" ) /* don't do the online check for the config store and other admin functions !! */ ##else ##if local.pageDisableSessionCheck ##else ##if session.IsConnected() ##else ##local.define(Advice) ##leg.ZONESOPAC.Layout.Welcome ##leg.ZONESOPAC.Layout.SystemOffline ##local.define(Content) ##local.define(Title)##leg.ZONESOPAC.Layout.SystemOfflineTitle ##local.define(ContentPanelTitle) ##local.define(ContentPaneTabs) ##local.define(AdvicePanelTabs) ##endif ##endif ##endif ##local.NormalPage ##else ##local.ZonesDisabledPage ##endif ##endif ##endif