##formatter.TextRender() ##include(Defaults) /* This file is a very quick conversion of the Portfolio Portal3 account screen to use Concerto data. Note no attempt has been made to make this complete, so for example we are not using country specific address formats and we don't have all Concerto specific features. It is for demo use primarily - it will need to be done properly for production use. */ ##local.define(SetTrapLegend) ##local.DefineByRender(Legend)##sessioncfg.MapLegendThroughTable(##local.TrapId,"ZonesSelfService.CustomerTrapTable") ##if local.IsEqual(Legend,"") ##local.DefineByRender(Legend)##sessioncfg.MapLegendThroughTable(##local.TrapId,"ZonesSelfService.MasterTrapTable") ##endif ##if local.IsEqual(Legend,"") ##if local.IsLessAsInteger(TrapId,100) ##local.DefineByRender(Legend)##sessioncfg.ParamLookup(Trap,##local.TrapId) ##else ##local.DefineByRender(Legend)##sessioncfg.EnumLookup(CircTrapID,##local.TrapId) ##endif ##endif ##if sessioninfo.User.LoanHistoryRequired ##local.define(ShowLoanHistoryInMenu)1 ##endif ##local.define(WriteTrapLegend) ##if leg.IsEqual(ZONESOPAC.Baccount.BrowseItem.TrapReason,"") ##else ##leg.ZONESOPAC.Baccount.BrowseItem.TrapReason - ##endif ##local.Legend ##local.define(Address) /*##Value.Dump()*/ ##local.define(Name)##leg.ZONESOPAC.Borrower.Regform.Address ##local.define(Value)##Value.AddressLine1 ##local.Value
##local.define(Name)  ##local.define(Value)##Value.AddressLine2 ##local.Value
##local.define(Name)  ##local.define(Value)##Value.AddressLine3 ##local.Value ##if Value.IsEqual(Detail.postal_code,"") ##else ##local.define(Name)##leg.ZONESOPAC.Borrower.Regform.Postcode ##local.define(Value)##Value.Postcode ##local.Value ##endif
##if Value.IsEqual(Detail.telephone_1,"") ##else ##local.define(Name)##leg.ZONESOPAC.Borrower.Regform.Telephonehome ##local.define(Value)##Value.TelephoneNumber /*##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.TelephoneNumberWork /*##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.FaxNumber ##local.Name : ##local.Value
##endif ##if Value.IsEqual(Detail.address_email,"") ##else ##local.define(Name)##leg.ZONESOPAC.Borrower.Regform.Emailaddress ##local.define(Value)##Value.EmailAddress ##local.Name : ##local.Value
##endif
##local.define(ChangeContactForm) ##local.define(FormRowTemplate)##local.Name##local.Value
/* text render */ ##if request.IsEqual(Method,ChangeContact) ##nothtml
##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)
Visa. Mastercard. American Express.
##local.define(Content)
##leg.Portal3.Payment.CardExpiry

##local.PaymentImages
##local.define(Title) ##leg.Portal3.Payment.Title ##include(Body)
##local.define(BookPCView) ##local.define(MondoPcUser)##formatter.urlencode(##Value.BrwrNum) ##local.define(MondoPcUrl)##sessioncfg.Data(ZONES.SelfService.MondoPC.Url)?id=##local.MondoPcUser&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 ##if local.IsEqual(DoneView,0) /* this is the account summary */ ##helpcontext.addHelp(Toolbar) ##local.define(Section)AccountSummary ##local.define(ChangeContactForm) ##local.define(FormRowTemplate)##local.Name##local.Value ##local.define(ChangeLoanHistoryForm) ##local.define(FormRowTemplate)##local.Name##local.Value ##local.define(RenewSubView) ##if sessioncfg.ZONES.SelfService.ViewSubscription ##if Value.SubsEnabledInRsp ##local.Define(ShowCurrentSubs)1 ##if Value.IsEqual(NextSubs.Status,4) ##local.Define(ShowNextSubs)1 ##endif ##if Value.IsEqual(CurrentSubs.Status,2) ##local.Define(ShowNextSubs)1 ##endif ##endif ##endif ##local.define(ChangePinForm) ##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)
##if sessioncfg.ZONES.Portal3.Payments.iDealEnable iDEAL ##else ##if sessioncfg.ZONES.Portal3.Payments.VisaAccepted Visa##endif ##if sessioncfg.ZONES.Portal3.Payments.MasterCardAccepted Mastercard##endif ##if sessioncfg.ZONES.Portal3.Payments.AmexAccepted American Express##endif ##endif
##local.define(SectionTitle)##leg.Portal3.AccountHome.Summary.Title ##if Value.IsEqual(NumberOfRes,0) ##local.define(HideReservationListLink)1 ##endif ##local.define(Content)

##if sessioncfg.ZONES.ShowNameInMyZone /*##if Value.FullName ##Value.FullName ##endif*/ ##Value.Title ##Value.Forename ##Value.Prefix ##Value.Surname ##endif

##if sessioncfg.ZonesSelfService.ShowTrapInformationInMyZone ##if sessioninfo.IsMap(User.CheckBrwr) ##if sessioninfo.User.CheckBrwr.IsTrapped
##leg.ZONESOPAC.LoanBrowse.AdviceTrapped

##if sessioninfo.IsEqual(User.CheckBrwr.PrimaryTrapLevel,0) ##else ##local.defineByRender(TrapId)##sessioninfo.User.CheckBrwr.PrimaryTrapId ##local.SetTrapLegend ##local.WriteTrapLegend ##endif ##if sessioninfo.User.CheckBrwr.HasSecondaryTrap ##if sessioninfo.IsEqual(User.CheckBrwr.SecondaryTrapLevel,0) ##else
##local.defineByRender(TrapId)##sessioninfo.User.CheckBrwr.SecondaryTrapId ##local.SetTrapLegend ##local.WriteTrapLegend ##endif ##endif

##endif ##endif ##endif ##local.define(Actions) ##local.define(Stripe)Stripe ##local.define(CounterRowTemplate) ##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.ItemsOnLoan.0.Value ##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 ##if local.HideReservationListLink ##else ##local.define(Name)##leg.ZONESOPAC.Baccount.BrowseItem.Reservations ##local.defineByRender(Value)##Value.NumberOfRes ##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 ##endif ##if sessioncfg.IsEqual(ZONES.SelfService.ClosedStackRequest,CSP) ##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.CSPRequests ##local.CounterRowTemplate ##endif ##endif ##endif ##if sessioncfg.IsEqual(ZONES.SelfService.ClosedStackRequest,DEM) ##if sessioncfg.ZONES.SelfService.ShowDEMTotal ##if Value.Detail.dem_cur ##local.define(Name)##leg.ZONESOPAC.Baccount.BrowseItem.DEMRequests ##local.defineByRender(Value)##Value.Detail.dem_cur ##local.defineByRender(HREF)##this?Method=ShowDEM ##local.defineByRender(Title)##leg.ZONESOPAC.Baccount.BrowseItem.DEMRequests ##local.CounterRowTemplate ##endif ##endif ##endif /* Concerto does not have messages. ##local.define(Name)##leg.ZONESOPAC.Baccount.Button.Messages ##local.defineByRender(Value)##Value.Detail.MailCount ##local.define(HREF)##this&Method=ShowMessages ##local.defineByRender(Title) ##local.CounterRowTemplate */ ##if sessioncfg.ZONES.SelfService.ShowAccountBalance ##local.define(Name)##leg.Portal3.AccountHome.Summary.Fines ##local.defineByRender(Value)##Value.AccountBalance/*##formatter.Double(##Value.Detail.fine,##local.MoneyFormat)*/ ##if sessioncfg.ZONES.BrowseOptions.ShowATDetailsInAccountBrowse ##local.define(HREF)##this&Method=ShowExpandedAccount ##else ##local.define(HREF)##this&Method=ShowAccount ##endif ##local.defineByRender(Title)##leg.Portal3.AccountHome.Summary.Fines ##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
##local.CounterRowTemplate ##local.define(Actions) ##endif ##if Value.CreditAllowed ##if sessioncfg.ZONES.SelfService.ShowCreditBalance ##if Value.CreditMandatory ##local.defineByRender(Name)##leg.Portal3.AccountHome.Summary.MandatoryCredit ##local.defineByRender(Value)##Value.MandatoryCreditBalance ##local.defineByRender(HREF) ##local.defineByRender(Title) ##if sessioncfg.ZONES.SelfService.ViewCredit ##local.defineByRender(HREF)##this?Method=ShowCredits&BrowseAsHloc=##local.thisLoc ##local.defineByRender(Title)##leg.Portal3.AccountHome.Summary.MandatoryCreditTIP ##endif ##local.CounterRowTemplate ##endif ##local.defineByRender(Name)##leg.Portal3.AccountHome.Summary.Credit ##local.defineByRender(Value)##Value.CreditBalance ##local.defineByRender(HREF) ##local.defineByRender(Title) ##if sessioncfg.ZONES.SelfService.ViewCredit ##local.defineByRender(HREF)##this?Method=ShowCredits&BrowseAsHloc=##local.thisLoc ##local.defineByRender(Title)##leg.Portal3.AccountHome.Summary.CreditTIP ##endif ##local.CounterRowTemplate ##endif ##endif ##if sessioncfg.ZONES.UserReviews.AllowModerate ##local.define(Name) ##local.defineByRender(Value) ##helpcontext.addHelp(ModerateUserReviewNav)
##local.define(ButtonCaption)##leg.ZONESOPAC.UserReviews.ModerateButton ##local.define(ButtonTip)##leg.ZONESOPAC.UserReviews.ModerateButtonTIP ##local.define(ButtonHref)APS_ZONES?fn=ModerateUserReviews&##this.StyleSet ##local.define(ButtonID)buttonModatateUserReview ##local.ButtonFMT
##local.define(Actions) ##local.CounterRowTemplate ##endif
##leg.Portal3.AccountHome.Summary.Title
##if local.IsEqual(HREF,"") ##local.Name ##else ##local.Name ##endif ##local.Value ##local.Actions
/* ##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 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 local.IsEqual(ErrorText,"Hide") ##else ##local.ErrorText
##endif
##local.Value
##endif */
##local.define(Actions) ##local.define(Stripe)Stripe ##local.define(DetailRowTemplate) ##if local.IsEqual(Stripe,"") ##local.define(Stripe)Stripe ##else ##local.define(Stripe) ##endif ##local.define(Name)##leg.Portal3.AccountHome.Personal.Name ##local.define(Value) ##Value.Title ##Value.Forename ##Value.Prefix ##Value.Surname ##local.DetailRowTemplate /* ##local.define(Name)##leg.Portal3.AccountHome.Personal.Subscription ##local.define(Value)  ##local.DetailRowTemplate */ ##local.define(Name)  ##local.define(Value)  ##local.DetailRowTemplate ##local.define(Name)##leg.Portal3.AccountHome.Personal.Expiry ##local.define(Value)##Value.CurrentSubs.Expiry ##local.RenewSubView ##local.define(Actions) ##if sessioncfg.ZONES.SelfService.ViewSubscription ##leg.Portal3.AccountHome.Personal.ShowSubscriptionLink ##endif ##local.DetailRowTemplate ##local.define(Name)##leg.Portal3.AccountHome.Personal.CardNumber ##local.define(Value)##Value.BrwrNum ##local.ChangePinForm ##local.define(Actions) ##leg.Portal3.AccountHome.Personal.LostCardLink ##leg.Portal3.AccountHome.Personal.ChangePINLink ##local.DetailRowTemplate ##local.define(Name)##leg.Portal3.AccountHome.Personal.Address ##local.define(Value)
##local.Address
##local.define(Actions)##leg.Portal3.Buttons.Modify ##local.DetailRowTemplate ##if sessioncfg.ZONES.SelfService.ViewLoansHistory ##local.define(Name)  ##local.define(Value)##local.ChangeLoanHistoryForm ##local.define(Actions) ##leg.Portal3.AccountHome.Personal.ChangeLoanHistoryLink ##local.DetailRowTemplate ##endif /* ##local.define(Name)  ##local.define(Value)  ##local.define(Actions) ##local.DetailRowTemplate ##local.define(Name) ##local.define(Value)##Value.Dump() ##local.define(Actions) ##local.DetailRowTemplate */
##leg.Portal3.AccountHome.Personal.Title
##local.Name ##local.Value ##local.Actions

##local.ChangeContactForm
##include(Body) ##endif ##endif