##if sessioninfo.IsEqual(TaskOutput,"1") ##if local.ShowBGTasks ##if sessioninfo.IsEqual(TasksCompleted,"1") ##if sessioninfo.IsEqual(TaskFailures,"1") ##local.Define(LowerAlert) ##leg.WEBOPAC.SSRenew.BulkRenew.CompletedFailures
##leg.WEBOPAC.SSRenew.BulkRenew.ClickForDetails
##else ##local.Define(LowerAlert) ##leg.WEBOPAC.SSRenew.BulkRenew.CompletedVerbose
##leg.WEBOPAC.SSRenew.BulkRenew.ClickForDetails
##endif ##else ##if sessioninfo.IsEqual(TaskFailures,"1") ##local.Define(LowerAlert) ##leg.WEBOPAC.SSRenew.BulkRenew.InProgressFailures
##leg.WEBOPAC.SSRenew.BulkRenew.ClickForDetails
##else ##local.Define(LowerAlert) ##leg.WEBOPAC.SSRenew.BulkRenew.InProgress
##leg.WEBOPAC.SSRenew.BulkRenew.ClickForDetails
##endif ##endif ##local.Define(LowerAlertAction)##if local.BGTasksFromParent ##searchcontext.Parent?##this.StyleSet&Method=BGTasks##else ##this&Method=BGTasks##endif ##endif ##endif
##if local.BackButton ##local.BackButton ##else ##include(BackButton) ##endif ##if sessioncfg.WEBOPAC.Help.Enabled ##if local.HelpButton ##local.HelpButton ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)APS_HELP?##this.StyleSet&Parent=##this.urlencoded&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.WEBOPAC.Defaults.Button.Help ##local.CommandButtonFMT ##endif ##endif ##if sessioncfg.WEBOPAC.Feedback.Enabled ##if local.SuppressFeedbackButton ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)APS_FEEDBACK&Method=Start&##this.StyleSet&Parent=##this.urlencoded&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.OPAC.Feedback.Button ##local.CommandButtonFMT ##endif ##endif ##if local.TopButtons ##local.TopButtons ##endif ##if session.isValid() ##local.define(CommandButtonGraphic) ##local.Define(NewRoot) ##if request.security(On) ##if sessioncfg.IsEqual(WEBOPAC.NonHTTPSHostRoot,"") ##else ##local.defineByRender(NewRoot)##sessioncfg.WEBOPAC.NonHTTPSHostRoot ##endif ##endif ##if sessioncfg.WEBOPAC.Catalogue.Enabled ##if sessioncfg.WEBOPAC.Catalogue.Enabled ##if local.IsEqual(NewRoot,"") ##if local.Bookserver ##local.define(CommandButtonHREF)APS_BOOKSERVER_OPAC?##this.StyleSet&DB=Catalogue ##else ##local.define(CommandButtonHREF)APS_CAT?##this.StyleSet&DB=Catalogue&BrowseAsHloc=##local.thisLoc ##endif ##else ##if local.Bookserver ##local.define(CommandButtonHREF)##local.Data(NewRoot)APS_BOOKSERVER_OPAC?##this.StyleSet&DB=Catalogue ##else ##local.define(CommandButtonHREF)##local.Data(NewRoot)APS_CAT?##this.StyleSet&DB=Catalogue&BrowseAsHloc=##local.thisLoc ##endif ##endif ##local.define(CommandButtonText)##leg.WEBOPAC.Sidebar.DatabaseChoice.Catalogue.Title ##local.CommandButtonFMT ##endif ##endif ##if alldbcfg.InfoCentre.Enabled ##if sessioncfg.WEBOPAC.InfoCentre.Enabled ##local.define(CommandButtonHREF)APS_INFOCENTRE?##this.StyleSet&DB=InfoCentre&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.WEBOPAC.Sidebar.DatabaseChoice.Infocentre.Title ##local.CommandButtonFMT ##endif ##endif ##if sessioncfg.WEBOPAC.SelfService.Enabled ##if sessioncfg.WEBOPAC.SelfService.RequireSSL ##if local.Bookserver ##local.define(CommandButtonHREF)##sessioncfg.Data(WEBOPAC.SecureHostRoot)APS_BOOKSERVER_OPACLOGIN?##this.StyleSet ##else ##local.define(CommandButtonHREF)##sessioncfg.Data(WEBOPAC.SecureHostRoot)APS_ACCOUNT?##this.StyleSet&BrowseAsHloc=##local.thisLoc ##endif ##else ##if local.Bookserver ##local.define(CommandButtonHREF)APS_BOOKSERVER_OPACLOGIN?##this.StyleSet ##else ##local.define(CommandButtonHREF)APS_ACCOUNT?##this.StyleSet&BrowseAsHloc=##local.thisLoc ##endif ##endif ##local.define(CommandButtonText)##leg.WEBOPAC.Sidebar.DatabaseChoice.Circ.Title ##local.CommandButtonFMT ##endif ##if sessioncfg.WEBOPAC.NotePad ##if sessioninfo.IsEmpty(OpacNotes) ##else ##if local.SuppressViewNotesButton ##else ##local.define(CommandButtonHREF)APS_NOTES?##this.StyleSet&Parent=##this.urlencoded&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.OPAC.ViewNotes.Button ##local.CommandButtonFMT ##endif ##endif ##endif ##if sessioncfg.WEBOPAC.UserURL1 ##local.define(CommandButtonHREF)##sessioncfg.WEBOPAC.UserURL1 ##local.define(CommandButtonText)##leg.WEBOPAC.Sidebar.UserButton1.Text ##local.CommandButtonFMT ##endif ##if sessioncfg.WEBOPAC.UserURL2 ##local.define(CommandButtonHREF)##sessioncfg.WEBOPAC.UserURL2 ##local.define(CommandButtonText)##leg.WEBOPAC.Sidebar.UserButton2.Text ##local.CommandButtonFMT ##endif ##if sessioncfg.WEBOPAC.UserURL3 ##local.define(CommandButtonHREF)##sessioncfg.WEBOPAC.UserURL3 ##local.define(CommandButtonText)##leg.WEBOPAC.Sidebar.UserButton3.Text ##local.CommandButtonFMT ##endif ##if local.Bookserver ##local.define(CommandButtonHREF)APS_BOOKSERVER_SHOWOPENINGHOURS?##this.StyleSet ##local.define(CommandButtonText)OPEN HOURS ##local.CommandButtonFMT ##endif ##endif ##if local.SuppressLanguageButtons ##else ##if sessioncfg.WEBOPAC.Language.English ##if this.StyleSetAttributeIsEqual(Lang,ENG) ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)##this&Lang=ENG&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.data(GLOBAL.Languages.English) ##local.CommandButtonFMT ##endif ##endif ##if sessioncfg.WEBOPAC.Language.German ##if this.StyleSetAttributeIsEqual(Lang,GER) ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)##this&Lang=GER&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.data(GLOBAL.Languages.German) ##local.CommandButtonFMT ##endif ##endif ##if sessioncfg.WEBOPAC.Language.French ##if this.StyleSetAttributeIsEqual(Lang,FRE) ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)##this&Lang=FRE&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.data(GLOBAL.Languages.French) ##local.CommandButtonFMT ##endif ##endif ##if sessioncfg.WEBOPAC.Language.Dutch ##if this.StyleSetAttributeIsEqual(Lang,DUT) ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)##this&Lang=DUT&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.data(GLOBAL.Languages.Dutch) ##local.CommandButtonFMT ##endif ##endif ##endif ##if sessioncfg.WEBOPAC.Language.Finnish ##if this.StyleSetAttributeIsEqual(Lang,FIN) ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)##this&Lang=FIN&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.data(GLOBAL.Languages.Finnish) ##local.CommandButtonFMT ##endif ##endif ##endif ##if sessioncfg.WEBOPAC.Language.Spanish ##if this.StyleSetAttributeIsEqual(Lang,ESP) ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)##this&Lang=ESP&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.data(GLOBAL.Languages.Spanish) ##local.CommandButtonFMT ##endif ##endif ##endif ##if sessioncfg.WEBOPAC.Language.Arabic ##if this.StyleSetAttributeIsEqual(Lang,ARA) ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)##this&Lang=ARA&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.data(GLOBAL.Languages.Arabic) ##local.CommandButtonFMT ##endif ##endif ##endif ##if sessioncfg.WEBOPAC.Language.Turkish ##if this.StyleSetAttributeIsEqual(Lang,TUR) ##else ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)##this&Lang=TUR&BrowseAsHloc=##local.thisLoc ##local.define(CommandButtonText)##leg.data(GLOBAL.Languages.Turkish) ##local.CommandButtonFMT ##endif ##endif ##endif ##if sessioninfo.IsEqual(TaskOutput,"1") ##local.define(CommandButtonGraphic) ##local.define(CommandButtonHREF)##if local.BGTasksFromParent ##searchcontext.Parent?##this.StyleSet&Method=BGTasks&BrowseAsHloc=##local.thisLoc##else##this&Method=BGTasks&BrowseAsHloc=##local.thisLoc##endif ##if sessioninfo.IsEqual(TasksCompleted,"1") ##local.define(CommandButtonText)##leg.WEBOPAC.SSRenew.BulkRenew.Completed ##else ##local.define(CommandButtonText)##leg.WEBOPAC.SSRenew.BulkRenew.InProgress ##endif ##local.CommandButtonFMT ##endif
##if sessioncfg.IsEqual(WEBOPAC.Images.LogoImage,"") ##if request.IsEqual(SubStyle, "BS") ##else ##endif ##else ##endif
  ##if session.isValid() ##else ##local.define(Value) ##leg.OPAC.General.BadSessionError ##local.ErrorRowTemplate ##endif ##if session.isValid ##if local.Advice ##local.define(Value)##local.Advice ##local.AdviceRowTemplate ##endif ##if local.FunctionButtons ##local.FunctionButtons ##endif ##endif ##if local.LowerAlert ##endif
  ##if searchcontext.BrowseAsHloc ##if searchcontext.IsEqual(BrowseAsHloc,"") ##sessioncfg.ParamLookup("HlocName", ##searchcontext.BrowseAsHloc) : ##else ##endif ##endif ##local.Title  
##local.List
##if error.Level ##if local.HandledError ##else
##leg.OPAC.General.UnhandledErrorReport
##leg.OPAC.General.IsFatal ##error.IsFatal
##leg.OPAC.General.Description ##error.Description
##leg.OPAC.General.Number ##error.Number
##leg.OPAC.General.Level ##error.Level
##endif ##endif
##local.LowerAlert  
##if local.BottomButtons ##local.BottomButtons
##endif