##if local.IsEqual(ShowButtons,0)
##else
##if local.IsEqual(ShowSummaryButton,1)
##local.define(CommandButtonGraphic)
##local.define(CommandButtonHREF)##this&SubStyle=&BrowseAsHloc=##local.thisLoc
##local.define(CommandButtonText)##leg.OPAC.Baccount.Button.Summary
##local.CommandButtonFMT
##endif
##if sessioncfg.WEBOPAC.SelfService.ViewSubscription
##if Value.SubsEnabledInRsp
##if this.StyleSetAttributeIsEqual(SubStyle,ShowSubs)
##else
##local.define(CommandButtonGraphic)
##local.define(CommandButtonHREF)##this&SubStyle=ShowSubs&BrowseAsHloc=##local.thisLoc
##local.define(CommandButtonText)##leg.OPAC.Baccount.Button.Subscription
##local.CommandButtonFMT
##endif
##endif
##endif
##if sessioncfg.WEBOPAC.SelfService.ViewContactDetails
##if this.StyleSetAttributeIsEqual(SubStyle,ShowAddress)
##else
##local.define(CommandButtonGraphic)
##local.define(CommandButtonHREF)##this&SubStyle=ShowAddress&BrowseAsHloc=##local.thisLoc
##local.define(CommandButtonText)##leg.OPAC.Baccount.Button.ViewAddress
##local.CommandButtonFMT
##endif
##endif
##if local.IsEqual(WebPaymentsEnabled,1)
##local.define(CommandButtonGraphic)
##local.define(CommandButtonHREF)##this&SubStyle=&Method=ShowCredits&BrowseAsHloc=##local.thisLoc
##local.define(CommandButtonText)
##leg.WEBOPAC.CreditBrowse.BrowseWebPaymentsButton
##local.CommandButtonFMT
##else
##if Value.CreditAllowed
##if sessioncfg.WEBOPAC.SelfService.ViewCredit
##local.define(CommandButtonGraphic)
##local.define(CommandButtonHREF)##this&SubStyle=&Method=ShowCredits&BrowseAsHloc=##local.thisLoc
##local.define(CommandButtonText)##leg.OPAC.Baccount.Button.Credits
##local.CommandButtonFMT
##endif
##endif
##endif
##if sessioncfg.WEBOPAC.SelfService.ViewAccount
##local.define(CommandButtonGraphic)
##if sessioncfg.WEBOPAC.BrowseOptions.ShowATDetailsInAccountBrowse
##local.define(CommandButtonHREF)##this&SubStyle=&Method=ShowExpandedAccount&BrowseAsHloc=##local.thisLoc
##else
##local.define(CommandButtonHREF)##this&SubStyle=&Method=ShowAccount&BrowseAsHloc=##local.thisLoc
##endif
##local.define(CommandButtonText)##leg.OPAC.Baccount.Button.Accounts
##local.CommandButtonFMT
##endif
##if sessioncfg.WEBOPAC.SelfService.ViewLoans
##if Value.ItemsOnLoan.0.Value
##local.define(CommandButtonGraphic)
##local.define(CommandButtonHREF)##this&SubStyle=&Method=ShowLoans&BrowseAsHloc=##local.thisLoc
##local.define(CommandButtonText)##leg.OPAC.Baccount.Button.Loans
##local.CommandButtonFMT
##endif
##endif
##if sessioncfg.WEBOPAC.SelfService.ViewReservations
##if Value.NumberOfRes
##local.define(CommandButtonGraphic)
##local.define(CommandButtonHREF)##this&SubStyle=&Method=ShowReservations&BrowseAsHloc=##local.thisLoc
##local.define(CommandButtonText)##leg.OPAC.Baccount.Button.Reservations
##local.CommandButtonFMT
##endif
##endif
|
|
##if local.IsEqual(ShowSummaryButton,1)
##else
##if local.IsEqual(WebPaymentsEnabled,1)
##if local.IsEqual(OfferOnlinePayment,1)
##if Value.IsEqual(EmailAddress,"")
##else
##local.define(CommandButtonGraphic)
##local.define(CommandButtonHREF)##this&SubStyle=WebPayment&Method=PrepareToWebPay&BrowseAsHloc=##local.thisLoc
##local.define(CommandButtonText)##leg.WEBOPAC.WebPayments.Buttons.SettleOnline
##local.CommandButtonFMT
##endif
##endif
##endif
##if sessioncfg.WEBOPAC.SelfService.ChangePIN
##local.define(CommandButtonGraphic)
##local.define(CommandButtonHREF)##this&SubStyle=&Method=ChangePin&Parent=##this.urlencoded&BrowseAsHloc=##local.thisLoc
##local.define(CommandButtonText)##leg.OPAC.Baccount.Button.ChangePin
##local.CommandButtonFMT
##endif
##endif
##if sessioncfg.WEBOPAC.SelfService.ChangeContactDetails
##if this.StyleSetAttributeIsEqual(SubStyle,ShowAddress)
##local.define(CommandButtonGraphic)
##local.define(CommandButtonHREF)##this&SubStyle=ChangeContact&BrowseAsHloc=##local.thisLoc
##local.define(CommandButtonText)##leg.OPAC.Baccount.Button.ChangeAddress
##local.CommandButtonFMT
##endif
##endif
|
|
##endif
|
|
|
##if this.StyleSetAttributeIsEqual(SubStyle,WebPayment)
|
|
##endif
##if this.StyleSetAttributeIsEqual(SubStyle,WebPaymentReceipt)
##leg.WEBOPAC.WebPayments.Receipt.Title
|
|
##leg.WEBOPAC.WebPayments.Receipt.Date
|
##formatter.DateNowInEnglishFormat
|
|
##leg.WEBOPAC.WebPayments.PrePaymentForm.Name
|
##Value.Title ##Value.Forename ##Value.Prefix ##Value.Surname
|
|
##leg.WEBOPAC.WebPayments.PrePaymentForm.CardNumber
|
##Value.BrwrNum
|
##local.define(LineTemplate)
|
##if local.IsEqual(_Accumulated,1)
##leg.WEBOPAC.WebPayments.Receipt.AccumulatedCharges
##else
##local._Type
( ##local._Branch, ##local._Date )
##endif
|
##local._Paid
|
|
##leg.WEBOPAC.WebPayments.Receipt.AccountCharges
|
##receipt.With(Transactions,"TransactionMap")
##Transactions.ForEachIn(Transaction,"")
##local.defineByRender(_Paid)
##Transaction.Paid
##if Transaction.Accumulated
##local.define(_Accumulated)1
##else
##local.define(_Accumulated)0
##Transaction.With(Details,"Details")
##local.defineByRender(_Branch)
##Details.BranchName
##local.defineByRender(_Type)
##sessioncfg.With(Entry,Enum.AccountTransactionType)
##Entry.With(Data,##Details.TransactionID)
##Data.text
##local.defineByRender(_Charge)
##Details.Debit
##local.defineByRender(_Date)
##Details.CreationDate
##endif
##local.LineTemplate
|
|
##leg.WEBOPAC.WebPayments.Receipt.Total
|
##receipt.AmountPaid
(##leg.WEBOPAC.WebPayments.Receipt.VATMessage)
|
|
|
##leg.WEBOPAC.WebPayments.Receipt.PaymentReceived
|
##receipt.Amount
|
##if receipt.HaveExcess
|
##leg.WEBOPAC.WebPayments.Receipt.ExcessPayment
(##leg.WEBOPAC.WebPayments.Receipt.ExcessMessage)
|
##receipt.ExcessPayment
|
##endif
|
##leg.WEBOPAC.WebPayments.Receipt.PaymentThanks
##leg.WEBOPAC.WebPayments.Receipt.ReferencePrompt
##receipt.PaymentReference
|
|
|
##endif
##if local.IsEqual(ShowSummary,1)
##local.define(BrowseItem)
##local.define(PartTemplate)
##local.defineByRender(temp)##local.Value
##if local.IsEqual(temp,"")
##else
##local.BrowseItemPartTemplate
##endif
##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(SubStyle,"ShowAddress")
##local.ContactDetails
##else
##if request.IsEqual(SubStyle,"ShowSubs")
##local.SubsDetails
##else
##if sessioncfg.WEBOPAC.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.WEBOPAC.SelfService.ViewSubscription
##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.WEBOPAC.SelfService.ShowAccountBalance
##local.define(Name)
##if Value.InDebit
##if request.IsEqual(Return,"1")
##if sessioncfg.WEBOPAC.SelfService.ShowCreditBalance
##leg.OPAC.Baccount.BrowseItem.Debt
##else
##leg.OPAC.Baccount.BrowseItem.AccountBalance
##endif
##else
##if sessioncfg.WEBOPAC.SelfService.ShowCreditBalance
##leg.OPAC.Baccount.BrowseItem.Debt
##else
##leg.OPAC.Baccount.BrowseItem.AccountBalance
##endif
##endif
##else
##if sessioncfg.WEBOPAC.SelfService.ShowCreditBalance
##leg.OPAC.Baccount.BrowseItem.Debt
##else
##leg.OPAC.Baccount.BrowseItem.AccountBalance
##endif
##endif
##local.define(Value)
##if sessioncfg.WEBOPAC.SelfService.ViewAccount
##if request.IsEqual(Return,"1")
£ 0.00
##else
##if sessioncfg.WEBOPAC.BrowseOptions.ShowATDetailsInAccountBrowse
##Field.AccountBalance
##else
##Field.AccountBalance
##endif
##endif
##else
##Field.AccountBalance
##endif
##local.BrowseItemPartTemplate
##endif
##if Value.CreditAllowed
##if sessioncfg.WEBOPAC.SelfService.ShowCreditBalance
##if Value.CreditMandatory
##local.define(Name)##leg.OPAC.Baccount.BrowseItem.MandatoryCreditBalance
##local.define(Value)
##if sessioncfg.WEBOPAC.SelfService.ViewCredit
##Field.MandatoryCreditBalance
##else
##Value.MandatoryCreditBalance
##endif
##local.BrowseItemPartTemplate
##endif
##local.define(Name)##leg.OPAC.Baccount.BrowseItem.CreditBalance
##local.define(Value)
##if sessioncfg.WEBOPAC.SelfService.ViewCredit
##Field.CreditBalance
##else
##Value.CreditBalance
##endif
##local.BrowseItemPartTemplate
##endif
##endif
##if sessioncfg.WEBOPAC.SelfService.ShowLoansTotal
##local.define(Name) ##leg.OPAC.Baccount.BrowseItem.OnLoan
##local.define(Value)
##if Value.ItemsOnLoan.0.Value
##if sessioncfg.WEBOPAC.SelfService.ViewLoans
##Value.ItemsOnLoan.0.Value
##else
##Value.ItemsOnLoan.0.Value
##endif
##else
##leg.OPAC.Baccount.BrowseItem.None
##endif
##local.BrowseItemPartTemplate
##endif
##if sessioncfg.WEBOPAC.SelfService.ShowReservationsTotal
##local.define(Name) ##leg.OPAC.Baccount.BrowseItem.Reservations
##local.define(Value)
##if Value.NumberOfRes
##if sessioncfg.WEBOPAC.SelfService.ViewReservations
##Value.NumberOfRes
##else
##Value.NumberOfRes
##endif
##else
##leg.OPAC.Baccount.BrowseItem.None
##endif
##local.BrowseItemPartTemplate
##endif
##endif
##endif
##local.BrowseItemContainerTemplate
##endif
|
|
##local.define(BottomButtons)