<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.talis.com/tdn" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Talis Developer Network - RSS feed of New Items List - Comments</title>
 <link>http://www.talis.com/tdn/node/1759</link>
 <description>Comments for &quot;RSS feed of New Items List&quot;</description>
 <language>en</language>
<item>
 <title>RSS is certainly possible...</title>
 <link>http://www.talis.com/tdn/node/1759#comment-605</link>
 <description>&lt;p&gt;Hi,&lt;br /&gt;
This could be possible using a scripting approach. I once wrote a simple shell script which embedded output of a SQL query in a html document.&lt;/p&gt;
&lt;p&gt;It should be possible to do a similar thing using RSS.&lt;/p&gt;
&lt;p&gt;You would need to decide which flavour of RSS to use, then use an existing feed as a template, making sure that all dates etc were changed each time the list was run. (otherwise there would never be anything new in the feed!)&lt;/p&gt;
&lt;p&gt;Essentially the script echoed this template to the output file, and then in the area of the feed that each item would display, the following SQL was used. (the -b and -h-1 switches force no output of header or dashed lines).&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
isql -Usa -P -b -h-1 -w 100 &amp;lt;&amp;lt;-END &amp;gt;&amp;gt;/users/report/hfoutput/video/Video_List.out&lt;br /&gt;
use prod_talis&lt;br /&gt;
go&lt;/p&gt;
&lt;p&gt;set nocount on&lt;/p&gt;
&lt;p&gt;select &quot;&quot;&lt;br /&gt;
+ substring(W.TITLE_DISPLAY, 1, charindex(&quot; [&quot;, W.TITLE_DISPLAY))&lt;br /&gt;
+ right(W.TITLE_DISPLAY, char_length(W.TITLE_DISPLAY)-charindex(&quot;]&quot;, W.TITLE_DISPLAY) )&lt;br /&gt;
+ &quot; &quot;&lt;br /&gt;
+ W.AUTHOR_DISPLAY&lt;br /&gt;
+ &quot;&quot;&lt;br /&gt;
+ C.CLASS_NUMBER&lt;br /&gt;
+ &quot;&quot;&lt;br /&gt;
from ITEM I, CLASSIFICATION C, WORKS W&lt;br /&gt;
where C.CLASS_ID = I.CLASS_ID and I.WORK_ID = W.WORK_ID&lt;br /&gt;
and ((C.CLASS_NUMBER = &#039;Videocassette&#039;) or (C.CLASS_NUMBER = &#039;DVD&#039;)) and I.STATUS_ID != 108&lt;br /&gt;
order by C.CLASS_NUMBER, W.TITLE_DISPLAY&lt;br /&gt;
go&lt;/p&gt;
&lt;p&gt;END&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
This as you can see, wrote out a html row for each item returned by the query.  You could use it as a guide to writing your own SQL.  If you need to know what the stored procedure in the database is doing to return the new items search, you can view this in Webmin.&lt;/p&gt;
&lt;p&gt;The shell script went on to write the footer of the html page, and then would FTP it to the prism servers so that it was available in a pre arranged place, and email a report to an interested observer ;).&lt;/p&gt;
&lt;p&gt;Hope this is of use.&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;
&lt;p&gt;-----------------------------------&lt;br /&gt;
Tim Hodson&lt;br /&gt;
Support Analyst&lt;br /&gt;
Talis&lt;br /&gt;
tim.hodson@talis.com&lt;/p&gt;
&lt;p&gt;www.timhodson.com&lt;br /&gt;
informationtakesover.co.uk (blog)&lt;/p&gt;
</description>
 <pubDate>Wed, 28 Nov 2007 09:49:54 +0000</pubDate>
 <dc:creator>Tim Hodson</dc:creator>
 <guid isPermaLink="false">comment 605 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>RSS Feed of new items list</title>
 <link>http://www.talis.com/tdn/node/1759#comment-603</link>
 <description>&lt;p&gt;Hello, I wanted to do this as well. At the moment I run a report in Business Objects and have the order fund name as an index. I then save this as html and add a link to the document from the RSS feed page. At the moment I&#039;m updating this weekly so it&#039;s not too labour intensive.&lt;/p&gt;
</description>
 <pubDate>Fri, 23 Nov 2007 14:22:39 +0000</pubDate>
 <dc:creator>John Springett</dc:creator>
 <guid isPermaLink="false">comment 603 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>RSS feed of New Items List</title>
 <link>http://www.talis.com/tdn/node/1759</link>
 <description>&lt;p&gt;Hello&lt;br /&gt;
We currently have a very basic New Items prepared search which we are thinking of splitting into subject areas. We would like this information to be presented in the student portal so that students can see which new items are available for their particular course. Anyone done something like this?&lt;/p&gt;
</description>
 <comments>http://www.talis.com/tdn/node/1759#comments</comments>
 <category domain="http://www.talis.com/tdn/taxonomy/term/60">Talis Library System</category>
 <pubDate>Thu,  8 Nov 2007 13:14:28 +0000</pubDate>
 <dc:creator>gi06</dc:creator>
 <guid isPermaLink="false">1759 at http://www.talis.com/tdn</guid>
</item>
</channel>
</rss>
