##formatter.TextRender() ##local.DefineByRender(DateFormat)##sessioncfg.ZONES.DateFormat ##local.define(SetDateRange) ##if item.IsEqual(Data.root.edate.__Data,##item.Data.root.eend.__Data) ##local.define(DateRange)##formatter.datefromISO(##item.Data.root.edate.__Data,##local.DateFormat) ##else ##if item.Data.root.eend.__Data ##local.define(DateRange)##formatter.datefromISO(##item.Data.root.edate.__Data,##local.DateFormat)- ##formatter.datefromISO(##item.Data.root.eend.__Data,##local.DateFormat) ##else ##local.define(DateRange)##formatter.datefromISO(##item.Data.root.edate.__Data,##local.DateFormat) ##endif ##endif /*##local.defineByRender(displayDateRange) */ ##local.define(ConcertoRSSItem) ##local.define(link)##sessioncfg.ZONES.PermaLinkBaseUrl?fn=ViewNotice&q=##item.BACBAC ##formatter.XMLQuote()<contentof>##item.StripFilingCharsFrom(Title,PROCESS_HASH)</contentof> ##formatter.XMLQuote()##local.link ##item.Data("BACMAT") ##item.BACBAC ##formatter.XMLQuote() ##if item.Author ##item.StripFilingCharsFrom(Author,PROCESS_HASH) ##endif ##if item.IsDefined(BACYER) (##item.BACYER) ##endif ##local.define(EventRSSItem) ##if item.Data.root.title.__Data ##item.Data.root.title.__Data ##item.Data("Data.root.zmat.__Data") ##item.Data("Data.root.location.__Data") ##item.Data("Data.root.edate.__Data") ##item.Data("Data.root.eend.__Data") ##item.Data("Data.root.url.__Data") ##item.Data("Data.root.identifier.__Data") ##item.Data("Data.root.identifier.__Data") ##item.Data("Data.root.summary.__Data") ##local.define(PortfolioRSSItem) ##local.define(link)##sessioncfg.ZONES.PermaLinkBaseUrl?fn=ViewNotice&q=##item.SequenceNo ##formatter.XMLQuote()<contentof>##item.Data.Title</contentof> ##formatter.XMLQuote()##local.link ##item.Data("Data.MaterialType") ##item.SequenceNo ##formatter.XMLQuote() ##item.Data.Author ##item.Data.Publisher ##item.Data.Series ##item.Data.Volumes ##local.define(BookListRSSItem) ##if item.Data.Data.SequenceNo ##item.With(item,Data.Data) ##local.PortfolioRSSItem ##endif ##local.define(RSSContent) /*##listdata.Dump()*/ ##if startpoint.Query.QueryStatement ##startpoint.QualData(Query.QueryStatement) ##endif ##formatter.XMLQuote()##sessioncfg.ZONES.PermaLinkBaseUrl fr ##listdata.ForEachIn(item,"") ##if item.IsEqual(__Type,ViewBooklist) ##local.BookListRSSItem ##else ##if item.BACBAC ##local.ConcertoRSSItem ##else ##if item.Data.root.title.__Data ##local.EventRSSItem ##else ##local.PortfolioRSSItem ##endif ##endif ##endif ##local.define(Handled)0 ##if request.IsEqual(ResponseFormat,RSS) ##local.define(Handled)1 ##NotHtml ##this.Encoding(CHAR_XMLUTF8) ##local.define(Body)##local.RSSContent ##endif ##if request.IsEqual(ResponseFormat,EventList) ##local.define(Body) ##NotHtml { "identifier" : "itemid", "label" : "title", "numRows" : "##startpoint.Hits", "items" : [ ##local.define(IsFirst)1 ##listdata.ForEachIn(item,"") ##local.SetDateRange ##if local.IsEqual(IsFirst,1) ##local.define(IsFirst)0 ##else , ##endif { "itemid" : ##item.AsJSONMap("Data.root.identifier.__Data"), "title" : ##item.AsJSONMap("Data.root.title.__Data"), "glat" : ##item.AsJSONMap("Data.root.glat.__Data"), "glong" : ##item.AsJSONMap("Data.root.glong.__Data"), "summary" : ##formatter.SummariseAsJScriptLit(##item.Data.root.summary.__Data,60), "category" : ##item.AsJSONMap("Data.root.category.__Data"), "subcategory" : ##item.AsJSONMap("Data.root.sub-category.__Data"), "edate" : ##item.AsJSONMap("Data.root.edate.__Data"), "eend" : ##item.AsJSONMap("Data.root.eend.__Data"), "thumbAvailable" : ##item.AsJSONMap("Data.root.thumbAvailable.__Data"), "pos" : ##item.AsJSONMap("PosInSet"), "dateRange" : "##local.DateRange", "url" : ##item.AsJSONMap("Data.root.url.__Data") } ], "objName" : "##this.obj" } ##local.define(Handled)1 ##endif ##if request.IsEqual(ResponseFormat,CompactEventList) ##local.define(Body) ##NotHtml { "numRows" : "##startpoint.Hits", "items" : [ ##local.define(IsFirst)1 ##listdata.ForEachIn(item,"") ##if local.IsEqual(IsFirst,1) ##local.define(IsFirst)0 ##else ,##endif {"itemid": ##item.AsJSONMap("Data.root.identifier.__Data"),"lt":##item.AsJSONMap("Data.root.glat.__Data"), "lg":##item.AsJSONMap("Data.root.glong.__Data"),"cat":##item.AsJSONMap("Data.root.category.__Data"),"subcat":##item.AsJSONMap("Data.root.sub-category.__Data")} ], "objName" : "##this.obj" } ##local.define(Handled)1 ##endif ##if request.IsEqual(ResponseFormat,JSON) ##NotHtml { "Obj" : "##this.Obj" ##if error.Level ##else ##endif "Items" : "[" ##listdata.ForEachIn(item,"") ##item.AsJSONMap("","Data root identifier guid __Data title edate glat glong") "]" } ##local.define(Handled)1 ##endif ##if local.IsEqual(Handled,0) ##local.define(Body) ##Header ##Scripts ##local.define(Handled)0 ##if local.IsEqual(Handled,0) ##this.DumpRC() ##listdata.Dump() ##startpoint.Dump() ##listconditions.Dump() ##error.Dump() ##endif ##endif ##local.Body