##if request.IsEqual(Method,Renew)
##formatter.TextRender()
##include(Defaults)
##NotHtml
{
##if error.Level
"success" : "false",
"description" : ##error.AsJScriptLit(Description)
##else
##Value.with(renewResult,"RenewResult.Response")
##local.define(ErrorList)
##if renewResult.warnings
"warnings" : [
##local.define(Sep)
##renewResult.ForEachIn(child,"warnings")
##local.defineByRender(ErrorText)##sessioncfg.MapLegendThroughTable(##child,"DB.Config.ZONESERVICES.ErrorMessageMap")
##if local.IsEqual(ErrorText,"")
##local.define(ErrorText)##child
##endif
##local.Sep ##local.AsJscriptLIT(ErrorText) ##local.define(Sep),
],
##endif
##if renewResult.IsEqual(extended,"1")
"renewSucceded" : "1",
"newDueDate" : "##formatter.YYYYDDMM(##renewResult.due_date,##local.DateFormat)",
"newLoanDate" : "##formatter.YYYYDDMM(##renewResult.loan_date,##local.DateFormat)",
##endif
"success" : "true"
##endif
}
##else
##formatter.TextRender()
##include(Defaults)
##local.define(AddressPart1)
##local.define(Name)##leg.ZONESOPAC.Borrower.Regform.Address
##local.define(Value)##Value.Detail.address_1
##local.Value
##local.define(Name)
##local.define(Value)##Value.Detail.address_2
##local.Value
##local.define(Name)
##local.define(Value)##Value.Detail.address_3
##local.Value
##if Value.IsEqual(Detail.postal_code,"")
##else
##local.define(Name)##leg.ZONESOPAC.Borrower.Regform.Postcode
##local.define(Value)##Value.Detail.postal_code
##local.Value
##endif
##local.define(AddressPart2)
##if Value.IsEqual(Detail.telephone_1,"")
##else
##local.define(Name)##leg.ZONESOPAC.Borrower.Regform.Telephonehome
##local.define(Value)##Value.Detail.telephone_1 ##if Value.IsEqual(Detail.telephone_ext_1,"") ##else ##leg.ZONESOPAC.ChangeContact.TelephoneExt ##Value.Detail.telephone_ext_1 ##endif
##local.Name : ##local.Value
##endif
##if Value.IsEqual(Detail.telephone_2,"")
##else
##local.define(Name)##leg.ZONESOPAC.Borrower.Regform.Telephonework
##local.define(Value)##Value.Detail.telephone_2 ##if Value.IsEqual(Detail.telephone_ext_2,"") ##else ##leg.ZONESOPAC.ChangeContact.TelephoneExt ##Value.Detail.telephone_ext_2 ##endif
##local.Name : ##local.Value
##endif
##if Value.IsEqual(Detail.fax_number,"")
##else
##local.define(Name)##leg.ZONESOPAC.Borrower.Regform.Fax
##local.define(Value)##Value.Detail.fax_number
##local.Name : ##local.Value
##endif
##if Value.IsEqual(Detail.address_email,"")
##else
##local.define(Name)##leg.ZONESOPAC.Borrower.Regform.Emailaddress
##local.define(Value)##Value.Detail.address_email
##local.Name : ##local.Value
##endif
##local.define(ChangeContactForm)
##local.define(FormRowTemplate)| ##local.Name | ##local.Value |
/* text render */
##if request.IsEqual(Method,ChangeContact)
##nothtml
##local.AddressPart1
##local.AddressPart2
##if error.Level
##leg.Portal3.AccountHome.Personal.ErrorUpdatingContactDetails
##else
##leg.Portal3.AccountHome.Personal.ContactDetailsUpdated
##endif
##else
##formatter.TextRender()
##local.Define(Section)AccountSummary
##local.define(ShowOverdueNotice)
##if sessioncfg.ZONES.OverdueNotice.Enabled
##if Value.Detail.overdue_loans
##if Value.IsEqual(overdue_loans,"")
##else
##if Value.IsEqual(overdue_loans,"0")
##else
##if sessioninfo.SessionUI.OverdueNotice
##else
##endif
##endif
##endif
##endif
##endif
##local.define(PageLeftMenu)##local.MyZonePageLeftMenu
##local.define(PageHeaderScripts)
##local.define(PartTemplate)
##local.defineByRender(temp)##local.Value
##if local.IsEqual(temp,"")
##else
| ##local.Name |
##local.Value |
##endif
##local.define(PayView)
##local.define(PaymentImages)
##if sessioncfg.ZONES.Portal3.Payments.VisaAccepted

##endif
##if sessioncfg.ZONES.Portal3.Payments.MasterCardAccepted

##endif
##if sessioncfg.ZONES.Portal3.Payments.AmexAccepted

##endif
##local.define(Content)
##local.define(Title)
##leg.Portal3.Payment.Title
##include(Body)
##local.define(BookPCView)
##local.define(MondoPcUrl)##sessioncfg.Data(ZONES.SelfService.MondoPC.Url)?id=##value.BRWR&lang=##this.StyleSetAttribute(LANG)
##local.define(Content)
##local.define(Section)BookPC
##local.define(Title)
##leg.ZONESOPAC.MondoPCReserv.Title
##include(Body)
##local.define(DoneView)0
##this.SubView(##request.SubView)
##if request.IsEqual(SubView,"TrackSuggestions")
##local.defineByRender(TOOLBAR_URL_BACK)##this&SubView=
##include(PTrackSuggestions)
##local.define(DoneView)1
##endif
##if request.IsEqual(SubView,"PayScreen")
##local.defineByRender(TOOLBAR_URL_BACK)##this&SubView=
##local.define(DoneView)1
##local.PayView
##endif
##if request.IsEqual(SubView,"BookPC")
##local.defineByRender(TOOLBAR_URL_BACK)##this&SubView=
##local.define(DoneView)1
##local.BookPCView
##endif
##local.define(ChangeContactForm)
##local.define(FormRowTemplate)| ##local.Name | ##local.Value |
##local.define(TrapDetails)
##if Value.IsEqual(Detail.accountTrapLevel,Error)
##local.define(Value)
##sessioncfg.MapLegendThroughTable(AccountTrapError,"DB.Config.ZONESERVICES.ErrorMessageMap")
##Value.foreachIn(trap,Detail.traps)
##local.defineByRender(ErrorText)##sessioncfg.MapLegendThroughTable(##trap.trapID,"DB.Config.ZONESERVICES.ErrorMessageMap")
##if local.IsEqual(ErrorText,"")
##local.define(ErrorText)##trap.trapID
##endif
##if Value.Detail.overdue_loans
##local.replace(ErrorText, "$overdue$",##Value.Detail.overdue_loans)
##endif
##if local.IsEqual(ErrorText,"Hide")
##else
##local.ErrorText
##endif
##local.Value
##endif
##if Value.IsEqual(Detail.accountTrapLevel,Warning)
##local.define(Value)
##sessioncfg.MapLegendThroughTable(AccountTrapWarning,"DB.Config.ZONESERVICES.ErrorMessageMap")
##Value.foreachIn(trap,Detail.traps)
##local.defineByRender(ErrorText)##sessioncfg.MapLegendThroughTable(##trap.trapID,"DB.Config.ZONESERVICES.ErrorMessageMap")
##if local.IsEqual(ErrorText,"")
##local.define(ErrorText)##trap.trapID
##endif
##if Value.Detail.overdue_loans
##local.replace(ErrorText, "$overdue$",##Value.Detail.overdue_loans)
##endif
##if local.IsEqual(ErrorText,"Hide")
##else
##local.ErrorText
##endif
##local.Value
##endif
##local.define(ChangePinForm)
##if local.IsEqual(DoneView,0)
/* this is the account summary */
##helpcontext.addHelp(Toolbar)
##local.define(Section)AccountSummary
##helpcontext.addHelp(MyZoneHome)
##local.define(Title)##leg.ZONESOPAC.Layout.MyZoneWelcome
##local.define(AdviceRowTabs)
##if sessioncfg.ZONES.SelfService.BookSuggestionsEnabled
##helpcontext.addHelp(MakeBookSuggestionNav)
##local.define(CommandButtonHREF)##this&Method=MakeBookSuggestion&Lang=##this.StyleSetAttribute(LANG)
##local.Define(CommandButtonText)##leg.ZONESOPAC.MakeSuggestion.Link
##local.Define(CommandButtonTextTIP)##leg.ZONESOPAC.MakeSuggestion.LinkTIP
##local.Define(CommandButtonTextALT)##leg.ZONESOPAC.MakeSuggestion.LinkALT
##local.define(CommandButtonGraphic)
##local.TabFMT
##endif
##if sessioncfg.ZONES.UserReviews.AllowModerate
##local.define(CommandButtonHREF)APS_ZONES?fn=ModerateUserReviews&Lang=##this.StyleSetAttribute(LANG)
##local.Define(CommandButtonText)##leg.ZONESOPAC.UserReviews.ModerateButton
##local.Define(CommandButtonTextTIP)##leg.ZONESOPAC.UserReviews.ModerateButtonTIP
##local.Define(CommandButtonTextALT)##leg.ZONESOPAC.UserReviews.ModerateButtonALT
##local.define(CommandButtonGraphic)
##local.TabFMT
##endif
##if sessioncfg.ZONES.LibraryZone.LibraryEvents.EditEventList
##local.define(CommandButtonHREF)APS_ZONES?fn=AmendEventList&Lang=##this.StyleSetAttribute(LANG)
##local.Define(CommandButtonText)##leg.EZONES.EventHome.AmendEvents
##local.Define(CommandButtonTextTIP)##leg.EZONES.EventHome.AmendEventsTIP
##local.Define(CommandButtonTextALT)##leg.EZONES.EventHome.AmendEventsALT
##local.define(CommandButtonGraphic)
##local.TabFMT
##endif
##local.define(PaymentImages)
##local.define(SectionTitle)##leg.Portal3.AccountHome.Summary.Title
##if request.IsEqual(SubView,"ShowAddress")
##local.define(SectionTitle)##leg.Portal3.AccountHome.Personal.Title
##endif
##local.define(Content)
##if sessioncfg.ZONES.ShowNameInMyZone
##if Value.Detail.first_name ##Value.Detail.first_name ##endif
##if Value.Detail.last_name ##Value.Detail.last_name ##endif
##endif
##if request.IsEqual(SubView,"ShowAddress")
##else
##local.TrapDetails
##local.define(Actions)
##local.define(Stripe)Stripe
##local.define(CounterRowTemplate)
|
##if local.IsEqual(HREF,"")
##local.Name
##else
##local.Name
##endif
|
##local.Value |
##local.Actions |
##if local.IsEqual(Stripe,"")
##local.define(Stripe)Stripe
##else
##local.define(Stripe)
##endif
/*##if Value.Detail.overdue_loans
##local.defineByRender(Name)##leg.Portal3.AccountHome.Summary.OverdueLoans
##local.defineByRender(Value)##Value.Detail.overdue_loans
##local.defineByRender(HREF)
##local.defineByRender(Title)
##local.CounterRowTemplate
##endif
*/
##if sessioncfg.ZONES.SelfService.ShowLoansTotal
##local.defineByRender(Name)##leg.Portal3.AccountHome.Summary.Loans
##local.defineByRender(Value)##Value.Detail.current_checkouts
##if sessioncfg.ZONES.SelfService.ViewLoans
##local.defineByRender(HREF)##this?Method=ShowLoans
##local.defineByRender(Title)##leg.Portal3.AccountHome.Summary.LoansTIP
##else
##local.defineByRender(HREF)
##local.defineByRender(Title)
##endif
##local.CounterRowTemplate
##endif
##if sessioncfg.ZONES.SelfService.ShowReservationsTotal
##local.define(Name)##leg.ZONESOPAC.Baccount.BrowseItem.Reservations
##local.defineByRender(Value)##Value.Detail.resv_cur
##if sessioncfg.ZONES.SelfService.ViewReservations
##local.defineByRender(HREF)##this?Method=ShowReservations
##local.defineByRender(Title)##leg.ZONESOPAC.Baccount.BrowseItem.ReservationsTIP
##else
##local.defineByRender(HREF)
##local.defineByRender(Title)
##endif
##local.CounterRowTemplate
##endif
##if sessioncfg.ZONES.SelfService.ShowCSPTotal
##if Value.Detail.csp_cur
##local.define(Name)##leg.ZONESOPAC.Baccount.BrowseItem.CSPRequests
##local.defineByRender(Value)##Value.Detail.csp_cur
##local.defineByRender(HREF)##this?Method=ShowCSP
##local.defineByRender(Title)##leg.ZONESOPAC.Baccount.BrowseItem.CSPRequestsTIP
##local.CounterRowTemplate
##endif
##endif
##local.define(Name)##leg.ZONESOPAC.Baccount.Button.Messages
##local.defineByRender(Value)##Value.Detail.MailCount
##local.define(HREF)##this&Method=ShowMessages
##local.defineByRender(Title)##leg.ZONESOPAC.Baccount.Button.MessagesTIP
##local.CounterRowTemplate
##if Value.Detail.current_amount_owed
##local.define(Name)##leg.Portal3.AccountHome.Summary.Fines
##local.defineByRender(Value)##formatter.Double(##Value.Detail.current_amount_owed,##local.MoneyFormat)
##local.define(HREF)##this&Method=ShowAccount
##local.defineByRender(Title)##leg.Portal3.AccountHome.Summary.FinesTIP
##local.define(Actions)
##if sessioncfg.ZONES.Portal3.Payments.Enabled
##local.define(ButtonCaption)##leg.Portal3.AccountHome.Summary.Pay
##local.define(ButtonTip)##leg.Portal3.AccountHome.Summary.PayTIP
##if bodyLinks.IsMap(PaymentServer)
##local.define(ButtonHref)##bodyLinks.QualData(PaymentServer.URL)
##if bodyLinks.IsEmpty(PaymentServer.Target)
##local.define(ButtonTarget)##sessioncfg.ZONES.Portal3.DefaultBodyLinkTarget
##else
##local.define(ButtonTarget)##bodylinks.Data(##local.TargetPath)
##endif
##else
##local.define(ButtonHref)javascript:Pay()
##endif
##local.define(ButtonID)buttonAccountPay
##local.ButtonFMT
##local.PaymentImages
##endif
##local.CounterRowTemplate
##local.define(Name)##leg.Portal3.AccountHome.Summary.EstimatedFines
##local.defineByRender(Value)##formatter.Double(##Value.Detail.estimated_late_fees,##local.MoneyFormat)
##local.define(HREF)##this&Method=ShowLoans
##local.defineByRender(Title)##leg.Portal3.AccountHome.Summary.EstimatedFinesTIP
##local.define(Actions)
##local.CounterRowTemplate
##else
##local.define(Name)##leg.Portal3.AccountHome.Summary.Fines
##local.defineByRender(Value)##formatter.Double(##Value.Detail.fine,##local.MoneyFormat)
##local.define(HREF)##this&Method=ShowAccount
##local.defineByRender(Title)##leg.Portal3.AccountHome.Summary.FinesTIP
##local.define(Actions)
##if sessioncfg.ZONES.Portal3.Payments.Enabled
##local.define(ButtonCaption)##leg.Portal3.AccountHome.Summary.Pay
##local.define(ButtonTip)##leg.Portal3.AccountHome.Summary.PayTIP
##local.define(ButtonHref)javascript:Pay()
##local.define(ButtonID)buttonAccountPay
##local.ButtonFMT
##local.PaymentImages
##endif
##endif
##if sessioncfg.ZONES.SelfService.BookSuggestionsEnabled
##helpcontext.addHelp(MakeBookSuggestionNav)
##local.define(Name)
##local.defineByRender(Value)
##local.define(ButtonCaption)##leg.ZONESOPAC.MakeSuggestion.Link
##local.define(ButtonTip)##leg.Portal3.AccountHome.Summary.PayTIP
##local.define(ButtonHref)##this&Method=MakeBookSuggestion&Lang=##this.StyleSetAttribute(LANG)
##local.define(ButtonID)buttonAccountPay
##local.ButtonFMT
##local.define(HREF)
##local.defineByRender(Title)##leg.ZONESOPAC.MakeSuggestion.LinkTIP
##local.define(Actions)
##if Value.IsMap(Detail.suggestions.suggestion)
##leg.ZONESOPAC.TrackSuggestions.Link
##endif
##local.CounterRowTemplate
##endif
##if Value.IsMap(Detail.LoanDetails)
##Value.ForEachIn(value,Detail.LoanDetails)
##local.PLISLoansFMT
|
##leg.Portal3.Loans.ConfirmRenewAdvice
|
|
##local.define(ButtonCaption)##leg.GLOBAL.Buttonprompts.Yes
##local.define(ButtonTip)##leg.Portal3.Loans.ConfirmRenewYes
##local.define(ButtonHref)javascript:answerYesRenew()
##local.define(ButtonID)buttonYes
##local.ButtonFMT
|
##local.define(ButtonCaption)##leg.GLOBAL.Buttonprompts.No
##local.define(ButtonTip)##leg.Portal3.Loans.ConfirmRenewNo
##local.define(ButtonHref)javascript:answerNoRenew()
##local.define(ButtonID)buttonNo
##local.ButtonFMT
|
|
|
|
/*
|
##local.define(ButtonCaption)##leg.GLOBAL.Buttonprompts.OK
##local.define(ButtonTip)
##local.define(ButtonHref)javascript:answerYesRenew()
##local.define(ButtonID)buttonYes
##local.ButtonFMT
|
##local.define(ButtonCaption)##leg.GLOBAL.Buttonprompts.No
##local.define(ButtonTip)
##local.define(ButtonHref)javascript:answerNoRenew()
##local.define(ButtonID)buttonNo
##local.ButtonFMT
|
|
*/
##endif
##endif
##local.define(Portal3AccountDetails)
##local.define(Actions)
##local.define(Stripe)Stripe
##local.define(DetailRowTemplate)
|
##local.Name
|
##local.Value |
##local.Actions |
##if local.IsEqual(Stripe,"")
##local.define(Stripe)Stripe
##else
##local.define(Stripe)
##endif
##local.define(Name)##leg.Portal3.AccountHome.Personal.Name
##local.define(Value)
##if Value.Detail.first_name ##Value.Detail.first_name ##endif
##if Value.Detail.last_name ##Value.Detail.last_name ##endif
##local.DetailRowTemplate
##local.define(Name)##leg.Portal3.AccountHome.Personal.Subscription
##local.define(Value)
##local.DetailRowTemplate
##local.define(Name)##leg.Portal3.AccountHome.Personal.Expiry
##local.define(Value)##formatter.YYYYDDMM(##Value.Detail.expiry_date_YYYYMMDD,##local.DateFormat)
##local.define(Actions)
##leg.Portal3.AccountHome.Personal.HowToRenewSubscriptionLink
##local.DetailRowTemplate
##local.define(Name)##leg.Portal3.AccountHome.Personal.CardNumber
##local.define(Value)##Value.SubscriberNo
##local.ChangePinForm
##local.define(Actions)
##leg.Portal3.AccountHome.Personal.LostCardLink
##if sessioncfg.ZONES.SelfService.ChangePIN
##if bodyLinks.IsMap(ChangePIN)
##leg.Portal3.AccountHome.Personal.ChangePINLink
##else
##leg.Portal3.AccountHome.Personal.ChangePINLink
##endif
##endif
##local.DetailRowTemplate
##local.define(Name)##leg.Portal3.AccountHome.Personal.Address
##local.define(Value)##local.AddressPart1
##local.define(Actions)
##if sessioncfg.ZONES.SelfService.ChangeContactDetails
##if bodyLinks.IsMap(ChangeContact)
##leg.Portal3.Buttons.ModifyContactDetails
##else
##leg.Portal3.Buttons.ModifyContactDetails
##endif
##endif
##local.DetailRowTemplate
##local.define(Name)
##local.define(Value)
##local.define(Actions)
##local.DetailRowTemplate
##local.define(Name)
##local.define(Value)##local.AddressPart2
##local.define(Actions)
##local.DetailRowTemplate
##local.ChangeContactForm
##if sessioncfg.ZONES.Portal3.ShowContactDetailsInAccountSummary
##local.Portal3AccountDetails
##else
##if request.IsEqual(SubView,"ShowAddress")
##local.Portal3AccountDetails
##endif
##endif
##leg.Portal3.AccountHome.Personal.RenewSubsAdvice
##leg.Portal3.AccountHome.Personal.LostCardAdvice
##leg.Portal3.AccountHome.Personal.PayAdvice
##include(Body)
##endif
##endif
##endif