##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(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(BodyContent) ##local.Advice ##if valueMap.Done ##if valueMap.Success ##leg.ZONESOPAC.MakeReservation.PortfolioCompleteDetail ##endif ##endif ##valueMap.With(SE,"SE") ##if valueMap.IsEqual("SerialCopyNumber","") ##local.define(PLISGeneralBibSummaryExtraInfo) ##else ##local.define(PLISGeneralBibSummaryExtraInfo)      ##valueMap.SerialCopyDetails.issue_desc ##endif ##local.PLISGeneralBibSummaryTable
##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
/*##valueMap.Dump() */ ##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(CurrentPage) ##if valueMap.Done ##leg.WAI.MakeReservation.Title.Complete ##else ##leg.WAI.MakeReservation.Title.Make ##if request.Security(On) ( ##leg.WAI.Security.Secure ) ##endif ##endif ##local.define(APSMAP) ##include(Layout)