##this.SubView(##request.SubView) ##if request.IsEqual( SubView, "ChangeContact") ##include(ChangeContact) ##else ##local.define(Title) ##leg.OPAC.Baccount.Title - ##leg.OPAC.Baccount.Subtitle.Summary ##local.define(PageTitle) ##leg.Expand(OPAC.Baccount.Title) ##local.define(Prompt) ##leg.OPAC.Baccount.Prompt ##helpcontext.addHelp(Record.Borrower) ##local.define(ShowBGTasks)1 ##local.define(ScrollButtons)1 ##if sessioncfg.OPAC.SelfService.ViewSubscription ##if Value.SubsEnabledInRsp ##local.Define(ShowCurrentSubs)1 ##if Value.IsEqual(NextSubs.Status,4) ##local.Define(ShowNextSubs)1 ##endif ##endif ##endif ##if request.SubView ##if request.IsEqual(SubView,"") ##else ##local.define(ShowSummaryButton)1 ##endif ##endif ##local.define(Content) ##local.define(FunctionButtons) ##local.define(FunctionButton)1 ##if local.ShowSummaryButton ##local.define(ButtonClass)function-button ##local.define(ButtonName)SummaryButton ##local.define(ButtonCommand) location.href = '##this&SubView='; ##local.define(ButtonText)##leg.OPAC.Baccount.Button.Summary ##local.define(ButtonIcon)8 ##helpcontext.addHelp(Buttons.Summary) ##local.ButtonCellTemplate ##endif ##if Value.CreditAllowed ##if sessioncfg.OPAC.SelfService.ViewCredit ##local.define(ButtonClass)function-button ##local.define(ButtonName)CreditButton ##local.define(ButtonCommand)location.href = '##this&Method=ShowCredits'; ##local.define(ButtonText)##leg.OPAC.Baccount.Button.Credits ##local.define(ButtonIcon)8 ##helpcontext.addHelp(Buttons.Credit) ##local.ButtonCellTemplate ##endif ##endif ##if sessioncfg.OPAC.SelfService.ViewAccount ##local.define(ButtonClass)function-button ##local.define(ButtonName)AccountButton ##if sessioncfg.OPAC.BrowseOptions.ShowATDetailsInAccountBrowse ##local.define(ButtonCommand)location.href = '##this&Method=ShowExpandedAccount'; ##else ##local.define(ButtonCommand)location.href = '##this&Method=ShowAccount'; ##endif ##local.define(ButtonText)##leg.OPAC.Baccount.Button.Accounts ##local.define(ButtonIcon)8 ##helpcontext.addHelp(Buttons.Account) ##local.ButtonCellTemplate ##endif ##if sessioncfg.OPAC.SelfService.ViewLoans ##if Value.ItemsOnLoan.0.Value ##local.define(ButtonClass)function-button ##local.define(ButtonName)LoansButton ##local.define(ButtonCommand) location.href = '##this&Method=ShowLoans'; ##local.define(ButtonText)##leg.OPAC.Baccount.Button.Loans ##local.define(ButtonIcon)8 ##helpcontext.addHelp(Buttons.Loans) ##local.ButtonCellTemplate ##endif ##endif ##if sessioncfg.OPAC.SelfService.ViewReservations ##if Value.NumberOfRes ##local.define(ButtonClass)function-button ##local.define(ButtonName)ReservationsButton ##local.define(ButtonCommand) location.href = '##this&Method=ShowReservations'; ##local.define(ButtonText)##leg.OPAC.Baccount.Button.Reservations ##local.define(ButtonIcon)8 ##helpcontext.addHelp(Buttons.Reservations) ##local.ButtonCellTemplate ##endif ##endif ##local.define(FunctionButtons1) ##local.define(FunctionButton)1 ##if sessioncfg.OPAC.SelfService.ViewSubscription ##if Value.SubsEnabledInRsp ##if request.IsEqual(SubView,"ShowSubs") ##else ##local.define(ButtonClass)function-button ##local.define(ButtonName)SubscriptionButton ##local.define(ButtonCommand) location.href = '##this&SubView=ShowSubs'; ##local.define(ButtonText)##leg.OPAC.Baccount.Button.Subscription ##local.define(ButtonIcon)8 ##helpcontext.addHelp(Buttons.Subscription) ##local.ButtonCellTemplate ##endif ##endif ##endif ##if sessioncfg.OPAC.SelfService.ViewContactDetails ##if request.IsEqual(SubView,"ShowAddress") ##else ##local.define(ButtonClass)function-button ##local.define(ButtonName)ContactDetails ##local.define(ButtonCommand) location.href = '##this&SubView=ShowAddress'; ##local.define(ButtonText)##leg.OPAC.Baccount.Button.ViewAddress ##local.define(ButtonIcon)8 ##helpcontext.addHelp(Buttons.ContactDetails) ##local.ButtonCellTemplate ##endif ##endif ##if sessioncfg.OPAC.SelfService.ChangePIN ##if local.ShowSummaryButton ##else ##local.define(ButtonClass)function-button ##local.define(ButtonName)ChangePinButton ##local.define(ButtonCommand)location.href = '##this&Method=ChangePin&Parent=##this.urlencoded'; ##local.define(ButtonText)##leg.OPAC.Baccount.Button.ChangePin ##local.define(ButtonIcon)8 ##helpcontext.addHelp(Buttons.ChangePin) ##local.ButtonCellTemplate ##endif ##endif ##if sessioncfg.OPAC.SelfService.ChangeContactDetails ##if request.IsEqual(SubView,"ShowAddress") ##this.SubView(ShowAddress) ##local.define(ButtonClass)function-button ##local.define(ButtonName)ChangeContact ##local.define(ButtonCommand) location.href = '##this&SubView=ChangeContact'; ##local.define(ButtonText)##leg.OPAC.Baccount.Button.ChangeAddress ##local.define(ButtonIcon)8 ##helpcontext.addHelp(Buttons.ChangeContactDetails) ##local.ButtonCellTemplate ##endif ##endif ##local.define(List) ##local.define(PartTemplate) ##local.defineByRender(temp)##local.Value ##if local.IsEqual(temp,"") ##else ##local.BrowseItemPartTemplate ##endif ##local.define(BrowseItem) ##local.define(Name) ##leg.OPAC.Baccount.BrowseItem.Name ##local.define(Value) ##Value.Title ##Value.Forename ##Value.Prefix ##Value.Surname ##local.BrowseItemPartTemplate ##local.define(Name) ##leg.OPAC.Baccount.BrowseItem.CardNumber ##local.define(Value) ##Value.BrwrNum ##local.BrowseItemPartTemplate ##if request.IsEqual(SubView,"ShowAddress") ##if this.StyleSetAttributeIsEqual(Locale,L_GR) ##local.define(Name)##leg.OPAC.ContactDetails.Fao ##local.define(Value)##Value.Fao ##local.PartTemplate ##local.define(Name)##leg.OPAC.ContactDetails.Street ##local.define(Value)##Value.AddressLine1 ##local.BrowseItemPartTemplate ##local.define(Name)##leg.OPAC.ContactDetails.Postcodeandtown ##local.define(Value)##Value.Postcode ##Value.AddressLine2 ##local.PartTemplate ##if Value.IsEqual(AddressLine3,"") ##else ##local.define(Name)  ##local.define(Value)##Value.AddressLine3 ##local.PartTemplate ##endif ##else ##if this.StyleSetAttributeIsEqual(Locale,L_NL) ##local.define(Name)##leg.OPAC.ContactDetails.Street ##local.define(Value)##Value.AddressLine1 ##Value.HouseNumber ##Value.HouseLetter ##Value.BoatNumber ##local.BrowseItemPartTemplate ##local.define(Name)##leg.OPAC.ContactDetails.Postcodeandtown ##local.define(Value)##Value.Postcode ##Value.AddressLine2 ##local.PartTemplate ##if Value.IsEqual(Country,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Country ##local.define(Value)##Value.Country ##local.PartTemplate ##endif ##local.define(Name)##leg.OPAC.ContactDetails.Fao ##local.define(Value)##Value.Fao ##local.PartTemplate ##else ##local.define(Name)##leg.OPAC.ContactDetails.Address ##local.define(Value)##Value.AddressLine1 ##local.BrowseItemPartTemplate ##local.define(Name)  ##local.define(Value)##Value.AddressLine2 ##local.PartTemplate ##local.define(Name)  ##local.define(Value)##Value.AddressLine3 ##local.PartTemplate ##if Value.IsEqual(Postcode,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Postcode ##local.define(Value)##Value.Postcode ##local.PartTemplate ##endif ##if Value.IsEqual(Country,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Country ##local.define(Value)##Value.Country ##local.PartTemplate ##endif ##endif ##endif ##if Value.IsEqual(TelephoneNumber,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Telephonehome ##local.define(Value)##Field.TelephoneNumber ##local.PartTemplate ##endif ##if Value.IsEqual(TelephoneNumberWork,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Telephonework ##local.define(Value)##Field.TelephoneNumberWork ##local.PartTemplate ##endif ##if Value.IsEqual(MobilePhone,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Telephonemobile ##local.define(Value)##Field.MobilePhone ##local.PartTemplate ##endif ##if Value.IsEqual(FaxNumber,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Fax ##local.define(Value)##Field.FaxNumber ##local.PartTemplate ##endif ##if Value.IsEqual(EmailAddress,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Emailaddress ##local.define(Value)##Value.EmailAddress ##local.PartTemplate ##endif ##if Value.IsEqual(2Surname,"") ##else ##local.define(ShowSecondaryDetails)1 ##endif ##if Value.IsEqual(2AddressLine1,"") ##else ##local.define(ShowSecondaryDetails)1 ##endif ##if local.ShowSecondaryDetails ##local.define(Name)  ##local.define(Value)  ##local.BrowseItemPartTemplate ##endif ##if Value.IsEqual(2Surname,"") ##else ##local.define(Name) ##leg.OPAC.Baccount.BrowseItem.Name ##local.define(Value) ##Value.2Title ##Value.2Forename ##Value.2Prefix ##Value.2Surname ##local.BrowseItemPartTemplate ##endif ##if Value.IsEqual(2AddressLine1,"") ##else ##if this.StyleSetAttributeIsEqual(Locale,L_GR) ##local.define(Name)##leg.OPAC.ContactDetails.Fao ##local.define(Value)##Value.2Fao ##local.PartTemplate ##local.define(Name)##leg.OPAC.ContactDetails.Street ##local.define(Value)##Value.2AddressLine1 ##local.BrowseItemPartTemplate ##local.define(Name)##leg.OPAC.ContactDetails.Postcodeandtown ##local.define(Value)##Value.2Postcode ##Value.2AddressLine2 ##local.PartTemplate ##if Value.IsEqual(2AddressLine3,"") ##else ##local.define(Name)  ##local.define(Value)##Value.2AddressLine3 ##local.PartTemplate ##endif ##else ##if this.StyleSetAttributeIsEqual(Locale,L_NL) ##local.define(Name)##leg.OPAC.ContactDetails.Street ##local.define(Value)##Value.2AddressLine1 ##Value.2HouseNumber ##Value.2HouseLetter ##Value.2BoatNumber ##local.BrowseItemPartTemplate ##local.define(Name)##leg.OPAC.ContactDetails.Postcodeandtown ##local.define(Value)##Value.2Postcode ##Value.2AddressLine2 ##local.PartTemplate ##local.define(Name)##leg.OPAC.ContactDetails.Fao ##local.define(Value)##Value.2Fao ##local.PartTemplate ##else ##local.define(Name)##leg.OPAC.ContactDetails.Address ##local.define(Value)##Value.2AddressLine1 ##local.BrowseItemPartTemplate ##local.define(Name)  ##local.define(Value)##Value.2AddressLine2 ##local.PartTemplate ##local.define(Name)  ##local.define(Value)##Value.2AddressLine3 ##local.PartTemplate ##if Value.IsEqual(2Postcode,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Postcode ##local.define(Value)##Value.2Postcode ##local.PartTemplate ##endif ##endif ##endif ##if Value.IsEqual(2TelephoneNumber,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Telephonehome ##local.define(Value)##Field.2TelephoneNumber ##local.PartTemplate ##endif ##if Value.IsEqual(2TelephoneNumberWork,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Telephonework ##local.define(Value)##Field.2TelephoneNumberWork ##local.PartTemplate ##endif ##if Value.IsEqual(2MobilePhone,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Telephonemobile ##local.define(Value)##Field.2MobilePhone ##local.PartTemplate ##endif ##if Value.IsEqual(2FaxNumber,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Fax ##local.define(Value)##Field.2FaxNumber ##local.PartTemplate ##endif ##if Value.IsEqual(2EmailAddress,"") ##else ##local.define(Name)##leg.OPAC.ContactDetails.Emailaddress ##local.define(Value)##Value.2EmailAddress ##local.PartTemplate ##endif ##endif ##else ##if request.IsEqual(SubView,"ShowSubs") ##if local.ShowCurrentSubs ##if local.ShowNextSubs ##local.define(Name)##leg.OPAC.Subscription.CurrentScheme ##local.define(Value)##Field.CurrentSubs.Scheme ##local.PartTemplate ##else ##local.define(Name)##leg.OPAC.Subscription.Scheme ##local.define(Value)##Field.CurrentSubs.Scheme ##local.PartTemplate ##endif ##local.define(Name)##leg.OPAC.Subscription.Period ##local.define(Value)##Field.CurrentSubs.Start ##leg.OPAC.Subscription.To ##Field.CurrentSubs.Expiry ##local.PartTemplate ##local.define(Name)##leg.OPAC.Subscription.Cost ##local.define(Value)##Field.CurrentSubs.Amount ##local.PartTemplate ##local.define(Name)##leg.OPAC.Subscription.Method ##local.define(Value)##Field.CurrentSubs.Method ##local.PartTemplate ##local.define(Name) ##if Value.IsEqual(CurrentSubs.Status,2) ##if Value.IsEqual(Keys.Pay,0) ##leg.OPAC.Subscription.Status ##else ##leg.OPAC.Subscription.Status ##endif ##else ##leg.OPAC.Subscription.Status ##endif ##local.define(Value) ##if Value.IsEqual(CurrentSubs.Status,2) ##if Value.IsEqual(Keys.Pay,0) ##Field.CurrentSubs.Status ##leg.OPAC.Subscription.On ##Field.CurrentSubs.Change ##else ##Field.CurrentSubs.Status ##leg.OPAC.Subscription.On ##Field.CurrentSubs.Change ##endif ##else ##Field.CurrentSubs.Status ##leg.OPAC.Subscription.On ##Field.CurrentSubs.Change ##endif ##local.PartTemplate ##endif ##if local.ShowNextSubs ##local.define(Name)##leg.OPAC.Subscription.NextScheme ##local.define(Value)##Field.NextSubs.Scheme ##local.PartTemplate ##local.define(Name)##leg.OPAC.Subscription.Period ##local.define(Value)##Field.NextSubs.Start ##leg.OPAC.Subscription.To ##Field.NextSubs.Expiry ##local.PartTemplate ##local.define(Name)##leg.OPAC.Subscription.Cost ##local.define(Value)##Field.NextSubs.Amount ##local.PartTemplate ##local.define(Name)##leg.OPAC.Subscription.Method ##local.define(Value)##Field.NextSubs.Method ##local.PartTemplate ##local.define(Name)##leg.OPAC.Subscription.Status ##local.define(Value) ##if Value.IsEqual(NextSubs.Status,2) ##Field.NextSubs.Status ##leg.OPAC.Subscription.On ##Field.NextSubs.Change ##else ##Field.NextSubs.Status ##leg.OPAC.Subscription.On ##Field.NextSubs.Change ##endif ##local.PartTemplate ##endif ##else ##if sessioncfg.OPAC.SelfService.ShowSubscriptionStatus ##if Value.SubsEnabledInRsp ##local.define(Name) ##if Value.IsEqual(CurrentSubs.Status,2) ##leg.OPAC.Baccount.BrowseItem.Subscription ##else ##leg.OPAC.Baccount.BrowseItem.Subscription ##endif ##local.define(Value) ##if sessioncfg.OPAC.SelfService.ViewSubscription 8 ##Field.CurrentSubs.Status ##if Value.CurrentSubs.Change ##leg.OPAC.Baccount.BrowseItem.SubscriptionOn ##Field.CurrentSubs.Change ##endif ##else ##Field.CurrentSubs.Status ##if Value.CurrentSubs.Change ##leg.OPAC.Baccount.BrowseItem.SubscriptionOn ##Field.CurrentSubs.Change ##endif ##endif ##local.BrowseItemPartTemplate ##endif ##endif ##if sessioncfg.OPAC.SelfService.ShowAccountBalance ##local.define(Name) ##if Value.InDebit ##if sessioncfg.OPAC.SelfService.ShowCreditBalance ##leg.OPAC.Baccount.BrowseItem.Debt ##else ##leg.OPAC.Baccount.BrowseItem.AccountBalance ##endif ##else ##if sessioncfg.OPAC.SelfService.ShowCreditBalance ##leg.OPAC.Baccount.BrowseItem.Debt ##else ##leg.OPAC.Baccount.BrowseItem.AccountBalance ##endif ##endif ##local.define(Value) ##if sessioncfg.OPAC.SelfService.ViewAccount ##if sessioncfg.OPAC.BrowseOptions.ShowATDetailsInAccountBrowse 8 ##Field.AccountBalance ##else 8 ##Field.AccountBalance ##endif ##else ##Value.AccountBalance ##endif ##local.BrowseItemPartTemplate ##endif ##if Value.CreditAllowed ##if sessioncfg.OPAC.SelfService.ShowCreditBalance ##if Value.CreditMandatory ##local.define(Name)##leg.OPAC.Baccount.BrowseItem.MandatoryCreditBalance ##local.define(Value) ##if sessioncfg.OPAC.SelfService.ViewCredit 8 ##Field.MandatoryCreditBalance ##else ##Value.MandatoryCreditBalance ##endif ##local.BrowseItemPartTemplate ##endif ##local.define(Name)##leg.OPAC.Baccount.BrowseItem.CreditBalance ##local.define(Value) ##if sessioncfg.OPAC.SelfService.ViewCredit 8 ##Field.CreditBalance ##else ##Value.CreditBalance ##endif ##local.BrowseItemPartTemplate ##endif ##endif ##if sessioncfg.OPAC.SelfService.ShowLoansTotal ##local.define(Name) ##leg.OPAC.Baccount.BrowseItem.OnLoan ##local.define(Value) ##if Value.ItemsOnLoan.0.Value ##if sessioncfg.OPAC.SelfService.ViewLoans 8 ##Value.ItemsOnLoan.0.Value ##else ##Value.ItemsOnLoan.0.Value ##endif ##else ##leg.OPAC.Baccount.BrowseItem.None ##endif ##local.BrowseItemPartTemplate ##endif ##if sessioncfg.OPAC.SelfService.ShowReservationsTotal ##local.define(Name) ##leg.OPAC.Baccount.BrowseItem.Reservations ##local.define(Value) ##if Value.NumberOfRes ##if sessioncfg.OPAC.SelfService.ViewReservations 8 ##Value.NumberOfRes ##else ##Value.NumberOfRes ##endif ##else ##leg.OPAC.Baccount.BrowseItem.None ##endif ##local.BrowseItemPartTemplate ##endif ##endif ##endif
##local.BrowseItemContainerTemplate
##include(Layout)
##if request.IsEqual(SubView,"ShowAddress") ##local.define(Title) ##leg.OPAC.Baccount.Title - ##leg.OPAC.Baccount.Subtitle.ContactDetails ##local.define(GoBackScript) location.href = '##this&SubView='; ##endif ##if request.IsEqual(SubView,"ShowSubs") ##local.define(Title) ##leg.OPAC.Baccount.Title - ##leg.OPAC.Baccount.Subtitle.Subscription ##local.define(GoBackScript) location.href = '##this&SubView='; ##endif ##include(Body) ##endif