##if value.Data.type
##if value.IsEqual(Data.type,"serialheader")
##else
##if sessioncfg.DB.Config.Circ.Issues.EnableCustomFormat
##local.define(captionFormat)##sessioncfg.DB.Config.Circ.Issues.VolumesFormat
##else
##local.define(captionFormat)caption
##endif
##local.define(captionBranch)##if value.IsMap(Data.branch) ##value.QualDataIgnoreIfMissing(Data.branch.description) ##endif
##local.define(captionSubloca)##if value.IsMap(Data.sublocation) ##value.QualDataIgnoreIfMissing(Data.sublocation.description) ##endif
##local.define(captionCateg)##if value.IsMap(Data.category) ##value.QualDataIgnoreIfMissing(Data.category.description) ##endif
##local.define(captionCollect)##if value.IsMap(Data.collection) ##value.QualDataIgnoreIfMissing(Data.collection.description) ##endif
##local.define(captionFond)##if value.IsMap(Data.fond) ##value.QualDataIgnoreIfMissing(Data.fond.description) ##endif
##local.define(captionCallno)##if value.IsDefined(Data.call_num) ##if value.IsEqual(Data.call_num,"") ##else ##value.Data.call_num ##endif ##endif
##local.define(captionCaption)##if value.Data.issue_caption ##value.Data.issue_caption ##endif

##local.defineByRender(formatterCall)
\=0023\=0023formatter.FormatCaptionText("##formatter.JScriptQuote()##local.captionFormat"
##if local.captionBranch ,branch, "##local.captionBranch" ##endif
##if local.captionSubloca ,subloca, "##local.captionSubloca" ##endif
##if local.captionCateg ,category, "##local.captionCateg" ##endif
##if local.captionCollect ,collection, "##local.captionCollect" ##endif
##if local.captionFond ,fond, "##local.captionFond" ##endif
##if local.captionCallno ,callno, "##local.captionCallno" ##endif
##if local.captionCaption ,caption, "##local.captionCaption" ##endif )
##local.render(formatterCall)
##value.with(Value,Data)
##if Value.IsMap(notes)
##leg.ZONESOPAC.SerialHoldings.IssuesList.Item.Notes
##Value.ForEachIn(note,"notes")
##if note.IsEqual("display_opac","true") ##note.note ##endif
##endif
##if Value.IsMap(issue_url)
##Value.ForEachIn(url,"issue_url")
##if url.IsEqual("display_opac","true") ##url.url_desc ##endif
##endif
##if Value.IsMap(copies)
##Value.ForEachIn(copy,"copies")
/* wjp: need to fix this */
##local.define(isSkinOverride)0
##if local.SkinSerialCopyDetail2
##if sessioncfg.DB.Config.Circ.Issues.EnableCustomFormat
##local.define(isSkinOverride)1
##endif
##endif
##if local.IsEqual(isSkinOverride,1)
##local.SkinSerialCopyDetail2
##else
##if copy.IsEqual(stat.can_opac,"true")
##local.define(issueStatus)
##if copy.due_date
##leg.ZONESOPAC.StockStatus.OnLoanDueDate ##formatter.YYYYDDMM(##copy.due_date,##local.DateFormat)
##endif
##if copy.IsDefined(flag_reserved)
##if copy.IsEqual(flag_reserved,1)
( ##leg.ZONESOPAC.Browseenum.Renew.IsReserved ) ##if copy.IsDefined(reservationExpiryDate)
##endif
##else
##if copy.IsMap(stat.description) ##copy.QualData(stat.description) ##endif
##endif
##else
##if copy.due_date
##else
##if copy.IsMap(stat.description) ##copy.QualData(stat.description) ##endif
##endif
##endif
##local.define(issueCallno)##if copy.call_num ##if copy.IsEqual(call_num, "") ##else ##leg.ZONESOPAC.StockStatus.CallNumber ##copy.call_num ##endif ##endif
##if sessioncfg.DB.Config.Circ.Issues.EnableCustomFormat
##local.define(issueFormat)##sessioncfg.DB.Config.Circ.Issues.IssuesFormat
##else
##local.define(issueFormat)status " " ("<b>") callno ("</b>")
##endif
##local.defineByRender(formatterCall)
\=0023\=0023formatter.FormatCaptionText("##formatter.JScriptQuote()##local.issueFormat"
##if local.captionBranch ,branch, "##local.captionBranch" ##endif
##if local.captionSubloca ,subloca, "##local.captionSubloca" ##endif
##if local.captionCateg ,category, "##local.captionCateg" ##endif
##if local.captionCollect ,collection, "##local.captionCollect" ##endif
##if local.captionFond ,fond, "##local.captionFond" ##endif
##if local.issueCallno ,callno, "##local.issueCallno" ##endif
##if local.captionCaption ,caption, "##local.captionCaption" ##endif
##if local.issueStatus ,status, "##local.issueStatus" ##endif )
- ##local.render(formatterCall)
##if copy.IsMap(notes)
##leg.ZONESOPAC.SerialHoldings.IssuesList.Item.Notes
##copy.ForEachIn(note,"notes")
##if note.IsEqual("display_opac","true") ##note.note ##endif
##endif
##if copy.IsEqual(can_reserv,"true")
##if sessioncfg.DB.Config.BookServer.AllowSerialReservation
##leg.ZONESOPAC.SerialHoldings.IssuesList.Item.MakeRervationLink
##endif
##endif /*##endif*/
##if sessioncfg.IsEqual(ZONES.SelfService.ClosedStackRequest,"CSP")
##if copy.IsEqual(can_csp,"true")
##if sessioncfg.DB.Config.BookServer.AllowSerialCSP
##leg.ZONESOPAC.SerialHoldings.IssuesList.Item.MakeCSPLink
##endif
##endif /*##endif*/
##endif
##if sessioncfg.IsEqual(ZONES.SelfService.ClosedStackRequest,"DEM")
##if copy.IsEqual(can_dem,"true")
##if sessioncfg.DB.Config.BookServer.AllowSerialDEM
##leg.ZONESOPAC.SerialHoldings.IssuesList.Item.MakeDEMLink
##endif
##endif
##endif
##endif
##endif
##endif
##endif
##else
##if value.Data.location.description
##else

##value.Data.issue_caption
##value.with(Value,Data)
##if Value.IsMap(notes)
##leg.ZONESOPAC.SerialHoldings.IssuesList.Item.Notes
##Value.ForEachIn(note,"notes")
##if note.IsEqual("display_opac","true") ##note.note ##endif
##endif
##if Value.IsMap(issue_url)
##Value.ForEachIn(url,"issue_url")
##if url.IsEqual("display_opac","true") ##url.url_desc ##endif
##endif
##if Value.IsMap(copies)
##Value.ForEachIn(copy,"copies")
/* wjp: need to fix this */
##if local.SkinSerialCopyDetail2
##local.SkinSerialCopyDetail2
##else
##if copy.IsEqual(stat.can_opac,"true")
-
##if copy.due_date
##leg.ZONESOPAC.StockStatus.OnLoanDueDate ##formatter.YYYYDDMM(##copy.due_date,##local.DateFormat)
##endif
##if copy.IsDefined(flag_reserved)
##if copy.IsEqual(flag_reserved,1)
( ##leg.ZONESOPAC.Browseenum.Renew.IsReserved ) ##if copy.IsDefined(reservationExpiryDate)
##endif
##else
##if copy.IsMap(stat.description) ##copy.QualData(stat.description) ##endif
##endif
##else
##if copy.due_date
##else
##if copy.IsMap(stat.description) ##copy.QualData(stat.description) ##endif
##endif
##endif
##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
##if copy.IsEqual(can_reserv,"true")
##if sessioncfg.DB.Config.BookServer.AllowSerialReservation
##leg.ZONESOPAC.SerialHoldings.IssuesList.Item.MakeRervationLink
##endif
##endif ##endif
##if sessioncfg.IsEqual(ZONES.SelfService.ClosedStackRequest,CSP)
##if copy.IsEqual(can_csp,"true")
##if sessioncfg.DB.Config.BookServer.AllowSerialCSP
##leg.ZONESOPAC.SerialHoldings.IssuesList.Item.MakeCSPLink
##endif
##endif ##endif
##endif
##if sessioncfg.IsEqual(ZONES.SelfService.ClosedStackRequest,DEM)
##if sessioncfg.IsEqual(ZONES.SelfService.ClosedStackRequest,"DEM")
##if copy.IsEqual(can_dem,"true")
##if sessioncfg.DB.Config.BookServer.AllowSerialDEM
##leg.ZONESOPAC.SerialHoldings.IssuesList.Item.MakeDEMLink
##endif
##endif
##endif
##endif
##endif
##endif
/*
##value.ForEachIn(val,Data.copies)
- ##val.QualData(stat.description)
*/
/*##value.Dump()*/
##endif
##endif
|