##local.define(Header) ##include(Header) ##if valueMap.__ErrorResponse ##local.define(HandledError)1 ##endif ##helpcontext.addHelp(PMakeReservation) ##helpcontext.addHelp(Toolbar) ##if error.Level ##if error.IsEqual(ID,"Invalid password") ##local.define(BadPasswordError)1 ##local.define(HandledError)1 ##endif ##if error.IsEqual(ID,"Patron not found") ##local.define(BadPatronError)1 ##local.define(HandledError)1 ##endif ##endif ##if valueMap.IsInvalidPin ##local.define(BadPasswordError)1 ##endif ##if valueMap.IsInvalidBrwr ##local.define(BadPatronError)1 ##endif ##if valueMap.IsEqual(VolumeCount,1) ##else ##local.define(HaveChoices)1 ##endif ##if valueMap.IsEqual(BranchCount,1) ##else ##local.define(HaveChoices)1 ##endif ##if valueMap.GotBranch ##if valueMap.GotVolume ##local.define(MadeChoices)1 ##if valueMap.IsEqual(IsReservable,0) ##local.define(BadChoices)1 ##endif ##endif ##endif ##if valueMap.Authenticated ##if valueMap.IsEqual(BranchCount,0) ##local.define(BadItem)1 ##endif ##if local.HaveChoices ##else ##if local.BadChoices ##local.define(BadItem)1 ##endif ##endif ##endif ##if sessioncfg.DB.Config.Circ.Reservation.ShowQueuePosition ##local.define(ShowQueue)1 ##endif ##local.define(Advice) ##if local.BadItem ##leg.ZONESOPAC.MakeReservation.NoReservableStock ##else ##if valueMap.Done ##if valueMap.Success ##leg.ZONESOPAC.MakeReservation.PortfolioComplete ##helpcontext.addHelp(ReservationPortfolioComplete) ##else ##leg.ZONESOPAC.MakeReservation.Aborted ##endif ##else ##if valueMap.Authenticated ##if local.MadeChoices ##if local.BadChoices ##leg.ZONESOPAC.MakeReservation.NoReservableStock ##else ##leg.ZONESOPAC.MakeReservation.WantConfirmation ##leg.ZONESOPAC.MakeReservation.ClickConfirmToContinue ##endif ##if local.HaveChoices ##leg.ZONESOPAC.MakeReservation.ClickBackToChangeSelections ##endif ##else ##if valueMap.IsEqual(VolumeCount,1) ##else ##if valueMap.IsEqual(BranchCount,1) ##leg.ZONESOPAC.MakeReservation.YouHaveVolumeChoices ##else ##leg.ZONESOPAC.MakeReservation.YouHaveVolumeAndDeliveryBranchChoices ##endif ##endif ##if valueMap.IsEqual(BranchCount,1) ##else ##if valueMap.IsEqual(VolumeCount,1) ##leg.ZONESOPAC.MakeReservation.YouHaveDeliveryBranchChoices ##endif ##endif ##endif ##else ##leg.ZONESOPAC.MakeReservation.ReservationLogin ##endif ##endif ##endif ##local.define(TopButtons) ##local.define(BottomButtons) ##local.define(Title) ##if valueMap.Done ##leg.ZONESOPAC.MakeReservation.Title.Complete ##else ##leg.ZONESOPAC.MakeReservation.Title.Make ##if request.Security(On) ( ##leg.ZONESOPAC.Security.Secure ) ##endif ##endif ##local.define(MainContent) ##if valueMap.Done ##if valueMap.Success ##leg.ZONESOPAC.MakeReservation.PortfolioCompleteDetail ##endif ##endif
##local.Define(RoundBoxContent) ##valueMap.With(SE,"SE") ##local.PLISGeneralBibSummaryTable /* serial copy related information here if it's available */ ##if valueMap.IsEqual("SerialCopyNumber","") ##else       ##valueMap.SerialCopyDetails.issue_desc ##endif /*##valueMap.Dump()*/ ##local.RoundBox
##if valueMap.Done ##else ##if valueMap.Authenticated ##if local.BadItem ##else ##if local.MadeChoices ##if local.BadChoices ##else ##if local.ShowQueue
##leg.Expand(ZONESOPAC.MakeReservation.QueueMessage,Position,##valueMap.QueueLength)
##endif ##local.define(GoForwardFormButton)1 ##endif ##endif
##this.stylesetforform ##if valueMap.GotVolume ##if valueMap.IsEqual(VolumeCount,1) ##else ##if valueMap.IsEqual(VolumeCount,0) ##else
##leg.ZONESOPAC.MakeReservation.SelectedVolume : ##valueMap.Volume
##endif ##endif ##else ##local.define(VolumeChoice)0 ##if valueMap.IsEqual(VolumeCount,0) ##else ##local.define(VolumeChoice)1 ##endif ##if local.IsEqual(VolumeChoice,"1")
##leg.ZONESOPAC.MakeReservation.VolumeChoice
##valueMap.With(Volumes,"Volumes") ##Volumes.ForEachIn(Item,"")
##Item.text

##local.define(GoForwardFormButton)1
##endif ##else ##endif
##if valueMap.GotBranch ##if valueMap.IsEqual(BranchCount,1) ##leg.ZONESOPAC.MakeReservation.DeliveryBranch ##else ##leg.ZONESOPAC.MakeReservation.SelectedDeliveryBranch ##endif : ##if valueMap.BranchInfo.branch_code ##valueMap.QualData(BranchInfo.description) ##else ##valueMap.Branch ##endif ##else ##leg.ZONESOPAC.MakeReservation.DeliveryBranchChoice /* */
/*##valueMap.Dump()*/ ##valueMap.With(Branches,"Branches") ##Branches.ForEachIn(Item,"")
##if Item.IsDefined(branch_code) /* this is the new localised structure */ ##Item.QualData("description") ##else ##Item.text ##endif

##local.define(GoForwardFormButton)1 ##endif
##if local.MadeChoices ##endif
##if local.HaveChoices ##if local.MadeChoices
##this.stylesetforform
##local.define(GoBackFormButton)1 ##endif ##endif
##if local.GoBackFormButton ##endif ##if local.GoForwardFormButton ##if local.BadChoices ##else ##endif ##endif
##endif ##else ##local.define(FormFields) ##if local.ShowQueue ##endif ##local.define(FormBorrowerDefault)##valueMap.BRWR ##local.LoginFormRowTemplate ##if local.BadPatronError ##local.define(Value) ##leg.ZONESOPAC.MakeReservation.InvalidBorrower ##local.AlertRowTemplate ##endif ##if local.BadPasswordError ##local.define(Value) ##leg.ZONESOPAC.MakeReservation.InvalidPIN ##local.AlertRowTemplate ##endif
##endif
##local.define(PLISGeneralBibSummaryTable) ##if SE.MaterialType ##local.defineByRender(MATIcon)##sessioncfg.MapValueThroughImageTable(##SE.MaterialType,"DB.Config.BookServer.GraphicalMAT") ##local.defineByRender(MATText)##sessioncfg.MapLegendThroughTable(##SE.MaterialType,"DB.Config.BookServer.MaterialMap") ##endif
  ##if SE.Author ##endif ##if SE.Title ##endif /*##if SE.Publisher ##endif*/ ##endif
##leg.ZONESOPAC.Defaults.SummaryEntry.Author:##SE.Author
##leg.ZONESOPAC.Defaults.SummaryEntry.Title: ##if local.IsEqual(MATIcon,"") ##else ##endif ##SE.Title
##leg.ZONESOPAC.Defaults.SummaryEntry.Publisher:##SE.Publisher
##local.define(LoginFormRowTemplate)
##local.define(SecurityOK)1 ##if sessioncfg.ZONES.SelfService.RequireSSL ##if request.Security(Off) ##local.define(SecurityOK)1 ##else ##local.define(SecurityOK)1 ##endif ##else ##local.define(SecurityOK)1 ##endif ##this.stylesetforform ##if local.IsEqual(SecurityOK,"1") ##local.FormFields
##if sessioncfg.ZONES.CorpZones ##leg.CORPZONES.UserName ##else ##leg.ZONESOPAC.Forms.Login.YourCardNumber ##endif ##if request.IsEqual("IsCardLogin","1") ##request.UserCard ##else ##endif
##if sessioncfg.ZONES.CorpZones ##leg.CORPZONES.Password ##else ##leg.ZONESOPAC.Forms.Login.YourPIN ##endif
 
##endif
##if sessioncfg.ZONES.SecureHostRoot ##if request.Security(Off) ##local.define(Value) ##leg.ZONESOPAC.Security.Warning.Text1 ##leg.ZONESOPAC.Security.Warning.Here ##leg.ZONESOPAC.Security.Warning.Text2 ##local.ErrorRowTemplate ##endif ##endif
##local.Define(BodyContent)
##local.ExploreHeader
##local.Advice
##local.MainContent
##local.ExploreFooter
##local.CommonComponents
##include(Body)