##formatter.TextRender() ##include(Defaults) ##local.define(pageDone)0 ##local.define(PLISGeneralBibSummaryExtraInfo) ##if sessioncfg.SSOLOGIN.Enable ##if valueMap.Authenticated ##else ##local.define(pageDone)1 ##if request.security(on) ##local.defineByRender(SSOReturnURL)##sessioncfg.ZONES.SecureHostRoot ##else ##local.defineByRender(SSOReturnURL)##sessioncfg.ZONES.NonHTTPSHostRoot ##endif /* it may be necessary to make a DEM request url explicitly to support this - but we try this for now */ ##local.defineByRender(tmp)##this ##local.defineByRender(SSOHREF)##local.urlencode(tmp) ##local.defineByRender(SSORETURN)##local.urlencode(SSOReturnURL) ##local.define(Title) ##local.define(PageBodyStyle) ##local.define(PageHeaderScripts) ##local.define(Content) ##include(FrameBody) ##endif ##endif ##if local.isEqual(pageDone,0) ##formatter.TextRender() ##local.define(PageHeaderScripts) ##if valueMap.Authenticated ##local.defineByRender(AllowDateChange)##sessioncfg.ZONES.SelfService.DEMAllowChangeRequestDate ##if sessioncfg.IsEqual(ZONES.SelfService.DEMAllowChangeDateCategories,"") ##else ##local.defineByRender(AllowDateChange)0 ##formatter.ForEachInList("category",##sessioncfg.ZONES.SelfService.DEMAllowChangeDateCategories) ##if valueMap.IsEqual(Patron.category,##category) ##local.defineByRender(AllowDateChange)##sessioncfg.ZONES.SelfService.DEMAllowChangeRequestDate ##endif ##endif ##endif ##if local.IsEqual(AllowDateChange,0) ##else ##endif ##local.define(InlineCopyDetail) ##local.define(NoDash)0 ##if sessioncfg.DB.Config.Circ.SingleLocationSystem ##local.define(NoDash)1 ##else ##if item.IsMap(branch.description) ##item.QualData(branch.description) ##else ##local.define(NoDash)1 ##endif ##endif ##if item.IsMap(subloc.description) - ##item.QualData(subloc.description) ##endif ##if item.IsMap(categ.description) - ##item.QualData(categ.description) ##endif ##if sessioncfg.DB.Config.Circ.ShowCopyCollection ##if item.IsMap(collection.description) - ##item.QualData(collection.description) ##endif ##endif ##if item.IsMap(fonds.description) - ##item.QualData(fonds.description) ##endif ##if item.call_num Cote: ##item.call_num ##endif ##if item.vol_no - ##item.vol_no ##endif ##if item.due_date - ##leg.ZONESOPAC.StockStatus.OnLoanDueDate ##formatter.YYYYDDMM(##item.due_date,##local.DateFormat) ##endif ##if item.IsDefined(flag_reserved) ##if item.IsEqual(flag_reserved,1) - ( ##leg.ZONESOPAC.Browseenum.Renew.IsReserved ) ##if item.IsDefined(reservationExpiryDate) /* ##leg.ZONESOPAC.Browseenum.Renew.Expires ( ##formatter.YYYYDDMM(##item.reservationExpiryDate,##local.DateFormat) ) */ ##endif ##else ##if item.IsMap(stat.description) - ##item.QualData(stat.description) ##endif ##endif ##else ##if item.due_date ##else ##if item.IsMap(stat.description) - ##item.QualData(stat.description) ##endif ##endif ##endif ##if item.IsMap(notes) ##item.foreachIn(note, "notes" ) ##if note.IsEqual(display_opac,true)
   ##note.note ##endif
##endif
##if valueMap.__ErrorResponse ##local.define(HandledError)1 ##endif ##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 ##local.define(TitleAdvice) ##if valueMap.Done /* this is the P7 case where we know the result of the reserver operation */ ##if valueMap.IsEqual(Result.Success,1) ##helpcontext.addHelp(PReservationCompleteResultSuccessful) ##leg.ZONESOPAC.MakeDEMRequest.PortfolioCompleteResultSuccess ##else ##helpcontext.addHelp(PReservationCompleteResultFailed) ##local.defineByRender(demErrorCode)##valueMap.QualData(Result.ResultMessage) ##local.defineByRender(DEMErrorLegend)##sessioncfg.MapLegendThroughTable(##local.demErrorCode,DB.Config.ZONESERVICES.ErrorMessageMap) ##leg.ZONESOPAC.MakeDEMRequest.PortfolioCompleteResultFail ##if local.IsEqual(DEMErrorLegend,"") ##local.demErrorCode ##else ##local.DEMErrorLegend ##endif ##local.define(DEMErrorExplained)1 ##endif ##else ##if valueMap.SentMessage ##leg.ZONESOPAC.MakeDEMRequest.AdviceMessageSent ##else ##if valueMap.Authenticated ##leg.ZONESOPAC.MakeDEMRequest.Prompt ##helpcontext.addHelp(PDEMFillForm) ##else ##leg.ZONESOPAC.MakeDEMRequest.Login ##helpcontext.addHelp(PDEMAuthenticate) ##endif ##endif ##endif ##local.define(Title) ##if valueMap.Done ##if valueMap.Success ##leg.ZONESOPAC.MakeDEMRequest.Title.Complete ##else ##leg.ZONESOPAC.MakeDEMRequest.Title.Make ##if request.Security(On) ( ##leg.ZONESOPAC.Security.Secure ) ##endif ##endif ##else ##if valueMap.SentMessage ##leg.ZONESOPAC.MakeDEMRequest.Title.Complete ##else ##leg.ZONESOPAC.MakeDEMRequest.Title.Make ##if request.Security(On) ( ##leg.ZONESOPAC.Security.Secure ) ##endif ##endif ##endif ##local.define(NoCopiesAvailableForDEM) ##leg.ZONESOPAC.MakeDEMRequest.NoCopiesAvailableForDEM ##local.define(MultipleCopiesForDEM) ##local.defineByRender(DateAvail) ##valueMap.ForeachIn(item,Holdings.Copies.results)
##if local.SkinInlineCopyDetail ##local.SkinInlineCopyDetail ##else ##local.InlineCopyDetail ##endif
##if local.IsEqual(DateAvail,"") ##local.defineByRender(Bank)##item.QualData(csp_distribution_bank.description) ##local.defineByRender(DateAvail)##formatter.YYYYDDMM(##item.csp_date_available,##local.DateFormat) ##local.defineByRender(TimeAvail)##item.csp_time_available ##local.defineByRender(RequireAuthorisation)##item.csp_need_authorization ##local.defineByRender(CopyNumber)##item.copy_number ##local.defineByRender(YYYYMMDDDateAvail)##item.csp_date_available ##local.defineByRender(CopyBranch)##item.branch.branch_code ##endif
##local.define(SerialCopyForDEM) ##valueMap.With(copy,"SerialCopyDetails") ##copy.QualData(location_desc.description)
##local.define(SupressSerialFunctionLinks)1 ##if copy.IsEqual(stat.can_opac,"true") ##copy.QualDataIgnoreIfMissing(stat.description) ##if copy.call_num ##if copy.IsEqual(call_num, "") ##else ##leg.ZONESOPAC.StockStatus.CallNumber ##copy.call_num ##endif ##endif ##if copy.IsMap(notes)
   ##leg.ZONESOPAC.SerialHoldings.IssuesList.Item.Notes ##copy.ForEachIn(note,"notes") ##if note.IsEqual("display_opac","true") ##note.note
##endif
##endif ##copy.ForEachIn(info,deminfo) ##local.define(RPath)##info.__Label()
##info.QualData(bank.description)

##local.define(YYYYDDMMDateAvail)##valueMap.SerialCopyDetails.deminfo.i_0.dem_date_available ##local.define(DateAvail)##formatter.YYYYMMDD(##valueMap.SerialCopyDetails.deminfo.i_0.dem_date_available,##local.DateFormat) ##local.define(TimeAvail)##valueMap.SerialCopyDetails.deminfo.i_0.dem_time_available ##local.define(CopyNumber)##valueMap.SerialCopyDetails.copy_number ##local.define(CopyBranch)##valueMap.SerialCopyDetails.location
##local.define(OnlyOneCopyForDEM) ##valueMap.ForeachIn(item,Holdings.Copies.results) ##if local.SkinInlineCopyDetail ##local.SkinInlineCopyDetail
##else ##local.InlineCopyDetail
##endif ##local.defineByRender(CopyBranch)##item.branch.branch_code ##local.defineByRender(CopyNumber)##item.copy_number
##valueMap.ForeachIn(item,Holdings.Copies.dem_info) ##local.defineByRender(Bank)##item.QualData(dem_bank.description) ##local.defineByRender(DateAvail)##formatter.YYYYMMDD(##item.dem_date_available,##local.DateFormat) ##local.defineByRender(YYYYDDMMDateAvail)##item.dem_date_available ##local.defineByRender(shop)##item.dem_shop.shop_code ##local.defineByRender(bank)##item.dem_bank.bank_code ##local.defineByRender(TimeAvail)##item.dem_time_available ##local.defineByRender(RequireAuthorisation)##valueMap.Holdings.Copies.dem_need_authorization
##local.define(DEMDetailsSummary)
##if local.IsEqual(RequireAuthorisation,1) ##endif
##leg.ZONESOPAC.MakeDEMRequest.DateAvailable##local.DateAvail ##leg.ZONESOPAC.MakeDEMRequest.At ##local.TimeAvail
##leg.ZONESOPAC.MakeDEMRequest.BankInstructions ##local.Bank ##leg.ZONESOPAC.MakeDEMRequest.AuthorizationRequired
##local.define(DEMRequestFields)
##leg.ZONESOPAC.MakeDEMRequest.DateRequested / / ##leg.ZONESOPAC.MakeDEMRequest.At :
  /* */
##local.define(ButtonCaption)##leg.data(ZONESOPAC.MakeDEMRequest.Submit) ##local.define(ButtonTip)##leg.data(ZONESOPAC.MakeDEMRequest.SubmitTIP) ##local.define(ButtonHref)javascript:submitRequest() ##local.define(ButtonID)buttonAdSearch ##local.ButtonFMT ##local.define(ButtonCaption)##leg.data(ZONESOPAC.MakeDEMRequest.Cancel) ##local.define(ButtonTip)##leg.data(ZONESOPAC.MakeDEMRequest.CancelTIP) ##local.define(ButtonHref)javascript:cancelRequest() ##local.define(ButtonID)buttonAdSearchClr ##local.ButtonFMT
##local.define(SuppressLoginHelp)1 ##local.define(SuppressLoginForgotPin)1 ##local.define(AccountTrapInfo) ##local.define(FieldTemplate) ##local.Value ##if valueMap.IsEqual(Patron.accountTrapLevel,Error) ##local.define(Name)  ##local.define(Value) ##sessioncfg.MapLegendThroughTable(AccountTrapError,"DB.Config.ZONESERVICES.ErrorMessageMap")

##valueMap.foreachIn(trap,traps) ##local.defineByRender(ErrorText)##sessioncfg.MapLegendThroughTable(##trap.trapID,"DB.Config.ZONESERVICES.ErrorMessageMap") ##if local.IsEqual(ErrorText,"") ##local.define(ErrorText)##trap.trapID ##endif ##if trap.overdueLoanCount ##local.replace(ErrorText,"$overdue$",##trap.overdueLoanCount) ##endif ##if local.IsEqual(ErrorText,"Hide") ##else ##local.ErrorText
##endif


##local.FieldTemplate ##endif ##if valueMap.IsEqual(accountTrapLevel,Warning) ##local.define(Name)  ##local.define(Value) ##sessioncfg.MapLegendThroughTable(AccountTrapWarning,"DB.Config.ZONESERVICES.ErrorMessageMap")

##valueMap.foreachIn(trap,traps) ##local.defineByRender(ErrorText)##sessioncfg.MapLegendThroughTable(##trap.trapID,"DB.Config.ZONESERVICES.ErrorMessageMap") ##if local.IsEqual(ErrorText,"") ##local.define(ErrorText)##trap.trapID ##endif ##if trap.overdueLoanCount ##local.replace(ErrorText,"$overdue$",##trap.overdueLoanCount) ##endif ##if local.IsEqual(ErrorText,"Hide") ##else ##local.ErrorText
##endif
##local.FieldTemplate ##endif
##local.define(AccountLitigationInfo) ##local.HasLigitation0 ##if valueMap.IsEqual(Patron.litigation_1,) ##if valueMap.IsEqual(Patron.litigation_2,) ##if valueMap.IsEqual(Patron.litigation_3,) ##else ##local.HasLigitation1 ##endif ##else ##local.HasLigitation1 ##endif ##else ##local.HasLigitation1 ##endif ##if local.HasLigitation ##sessioncfg.MapLegendThroughTable(MESSAGE_MLITIGE,"DB.Config.ZONESERVICES.ErrorMessageMap") ##local.defineByRender(ErrorText)##sessioncfg.MapLegendThroughTable(MESSAGE_MLITIGE,"DB.Config.ZONESERVICES.ErrorMessageMap") ##if local.IsEqual(ErrorText,"") ##local.define(ErrorText)MESSAGE_MLITIGE ##endif ##if local.IsEqual(ErrorText,"Hide") ##else ##local.ErrorText
##endif ##endif
##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 local.IsEqual(PinFieldOnly,1) ##else ##endif
##if request.IsEqual("IsCardLogin","1") ##request.UserCard ##else ##endif ##if local.SuppressLoginHelp   ##else ##leg.Portal3.Login.Help ##endif
##if local.SuppressLoginForgotPin ##else ##if sessioncfg.ZONES.SelfService.ForgotPIN ##leg.ZONESOPAC.ForgotPassword.Link ##else   ##endif ##endif
 
##local.Define(ButtonCaption)##leg.Portal3.Login.Submit /*##leg.ZONESOPAC.Forms.Login.LoginSubmitButton*/ ##local.Define(ButtonTip)##leg.ZONESOPAC.Forms.Login.LoginSubmitButtonTIP ##local.Define(ButtonID)buttonLoginSubmit ##local.Define(ButtonTab)102 ##local.SubmitButtonFMT     ##local.define(ButtonCaption)##leg.ZONESOPAC.Forms.Login.ClearLoginForm ##local.define(ButtonTip)##leg.ZONESOPAC.Forms.Login.ClearLoginFormTIP ##local.define(ButtonHref)javascript:resetForm() ##local.define(ButtonID)buttonLoginhClr ##local.ButtonFMT
##endif
##local.define(DSEMRequestFields) ##local.Define(RoundBoxContent) ##valueMap.ForeachIn(bank, Banks.results) ##local.define(Index)##bank.__Label()
##leg.data(ZONESOPAC.MakeDEMRequest.FormFields.bank.Label)
##bank.bankDesc
##local.RoundBox
##local.Define(RoundBoxContent) ##if valueMap.IsEqual(SE.ZMAT,SERIAL)
##leg.ZONESOPAC.MakeDEMRequest.FormFields.requestedyear.Label
##leg.ZONESOPAC.MakeDEMRequest.FormFields.volume.Label
##leg.ZONESOPAC.MakeDEMRequest.FormFields.numero.Label
##else ##endif
##local.RoundBox /**/
##local.define(ButtonCaption)##leg.data(ZONESOPAC.MakeDEMRequest.Submit) ##local.define(ButtonTip)##leg.data(ZONESOPAC.MakeDEMRequest.SubmitTIP) ##local.define(ButtonHref)javascript:submitSpecialRequest() ##local.define(ButtonID)buttonAdSearch ##local.ButtonFMT ##local.define(ButtonCaption)##leg.data(ZONESOPAC.MakeDEMRequest.Cancel) ##local.define(ButtonTip)##leg.data(ZONESOPAC.MakeDEMRequest.CancelTIP) ##local.define(ButtonHref)javascript:cancelRequest() ##local.define(ButtonID)buttonAdSearchClr ##local.ButtonFMT
##local.definebyrender(Years)##valueMap.ForeachIn(year,SerialYears)##year
##local.define(PLISDEMBibSummaryTable) ##local.define(PortfolioBookCover) ##local.defineByRender(PictureUrl) ##if sessioncfg.ZONES.Portal3.BookCovers.Enabled ##if SE.Thumbnail ##local.defineByRender(PictureUrl)##URLFormatter.BookServerExpandURL(##SE.Thumbnail) ##endif ##if local.IsEqual(PictureUrl,"") ##if SE.ISBN ##local.defineByRender(PictureUrl)##formatter.bookcoverurl(##sessioncfg.ZONES.Portal3.BookCovers.Stem,##SE.ISBN,##sessioncfg.ZONES.Portal3.BookCovers.Ext) ##endif ##endif ##if local.IsEqual(PictureUrl,"") ##else ##leg.ZONESOPAC.ALTText.BookCoverImage ##endif ##if SE.Thumbnail
##local.MATText
##endif ##endif
##local.define(StripeBrowseItem)Stripe ##local.defineByRender(MATIcon) ##local.defineByRender(MATText) ##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 local.IsEqual(StripeBrowseItem,"") ##local.define(StripeBrowseItem)Stripe ##else ##local.define(StripeBrowseItem) ##endif
##local.defineByRender(Mat)##SE.Data(MaterialType) ##local.SetMATIcon ##local.define(IsDisplayBackground)1 ##if SE.Thumbnail ##local.define(IsDisplayBackground)0 ##endif ##if local.IsEqual(MATIcon,"") ##local.define(IsDisplayBackground)0 ##endif
##local.PortfolioBookCover
##if SE.Thumbnail ##else
##local.MATText
##endif
##if SE.Title ##local.Define(FieldLegend)##leg.ZONESOPAC.Defaults.SummaryEntry.Title ##local.Define(FieldData)##SE.Title ##local.Define(FieldLink) ##local.SummaryFieldFMT ##endif ##if SE.Author ##local.Define(FieldLegend)##leg.ZONESOPAC.Defaults.SummaryEntry.Author ##local.Define(FieldData)##SE.Author ##local.Define(FieldLink) ##local.SummaryFieldFMT ##endif ##if SE.Volumes ##local.Define(FieldLegend)##leg.ZONESOPAC.Defaults.SummaryEntry.Volumes ##local.Define(FieldData)##SE.Volumes ##local.Define(FieldLink) ##local.SummaryFieldFMT ##endif ##if SE.Publisher ##local.Define(FieldLegend)##leg.ZONESOPAC.Defaults.SummaryEntry.Publisher ##local.Define(FieldData)##SE.Publisher ##local.Define(FieldLink) ##local.SummaryFieldFMT ##endif ##if SE.Series ##local.Define(FieldLegend)##leg.ZONESOPAC.Defaults.SummaryEntry.Series ##local.Define(FieldData)##SE.Series ##local.Define(FieldLink) ##local.SummaryFieldFMT ##endif ##if SE.PublisherNumber ##local.Define(FieldLegend)##leg.ZONESOPAC.Defaults.SummaryEntry.PublisherNumber ##local.Define(FieldData)##SE.PublisherNumber ##local.Define(FieldLink) ##local.SummaryFieldFMT ##endif
##local.PLISGeneralBibSummaryExtraInfo

##local.define(MainContent) /*##valueMap.Dump()*/ ##if valueMap.Done ##if valueMap.Success ##leg.ZONESOPAC.MakeDEMRequest.PortfolioCompleteDetail ##if searchcontext.BrowseList ##endif
##local.define(ButtonCaption)##leg.ZONESOPAC.MakeDEMRequest.ReturnToResults ##local.define(ButtonTip)##leg.ZONESOPAC.MakeDEMRequest.ReturnToResultsTIP ##local.define(ButtonHref)javascript:GoBackToResults() ##local.define(ButtonID)buttonSearchResults ##local.ButtonFMT ##local.define(ButtonCaption)##leg.ZONESOPAC.MakeDEMRequest.NewSearch ##local.define(ButtonTip)##leg.ZONESOPAC.MakeDEMRequest.NewSearchTIP ##local.define(ButtonHref)javascript:NewSearch() ##local.define(ButtonID)buttonNewSearch ##local.ButtonFMT
##else ##if local.DEMErrorExplained ##else ##leg.ZONESOPAC.MakeDEMRequest.AbortedDetail ##endif ##endif ##else
##local.Define(RoundBoxContent) ##valueMap.With(SE,"SE") ##if valueMap.Authenticated ##if valueMap.IsEqual("SerialCopyNumber","") ##local.define(PLISGeneralBibSummaryExtraInfo) ##else ##local.define(PLISGeneralBibSummaryExtraInfo)      ##valueMap.SerialCopyDetails.issue_desc ##endif ##endif ##local.PLISDEMBibSummaryTable /* serial copy related information here if it's available */ /*##valueMap.Dump()*/ ##local.RoundBox
##if valueMap.SentMessage ##leg.ZONESOPAC.MakeDEMRequest.PortfolioCompleteDetail ##else ##if valueMap.Authenticated ##if valueMap.IsEqual(Patron.accountTrapLevel,Error) ##local.AccountTrapInfo ##else
##this.stylesetforform ##local.define(RoundBoxContent) ##local.define(NoCopy)0 ##if valueMap.IsEqual(RequestType,"normal") ##if valueMap.IsEqual("SerialCopyNumber","") ##if valueMap.IsEqual(Holdings.Copies.set_count,0) ##local.define(NoCopy)1 ##local.NoCopiesAvailableForDEM ##else ##if valueMap.IsEqual(Holdings.Copies.set_count,1) ##local.OnlyOneCopyForDEM ##local.DEMDetailsSummary ##else ##local.MultipleCopiesForDEM ##local.DEMDetailsSummary ##endif ##endif ##else ##if valueMap.IsEqual(RequestType,normal) ##local.SerialCopyForDEM ##local.DEMDetailsSummary ##endif ##endif ##endif ##if valueMap.Error ##else ##local.RoundBox ##endif ##local.define(RoundBoxContent) ##if valueMap.IsEqual(RequestType,"normal") ##local.DEMRequestFields ##else ##local.DSEMRequestFields ##endif ##if valueMap.Error ##leg.ZONESOPAC.MakeDEMRequest.AbortedDetail
/*##valueMap.ErrorMessage*/ ##local.definebyrender(message) ##local.defineByRender(ErrorText)##sessioncfg.MapLegendThroughTable(##valueMap.ErrorID,"DB.Config.ZONESERVICES.ErrorMessageMap") ##local.ErrorText ##else ##if local.isEqual(NoCopy,1) ##else ##local.RoundBox ##endif ##endif
##endif ##else ##local.define(FormFields) ##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 ##endif ##endif /*##valueMap.Dump()*/
##local.Define(Content)##local.MainContent
##include(Body) ##endif ##endif