Koha/misc/cronjobs/rss/longestUnseen.tmpl
Galen Charlton f74d63a1e5 bug 2864 [2/2]: move rss/* to misc/cronjobs/rss/*
As rss.pl is not a CGI script, moved it to join the
other cronjobs.  Full documentation of the script
is in misc/cronjobs/rss/rss.pl, but to summarize:

[1] rss.pl is run on the command line to produce
    an RSS XML document.  The output should be
    placed in a directory accessible to the OPAC
    (or staff) web interface so that users can download
    the RSS feed.  An example of usage:

    misc/cronjobs/rss.pl lastAcquired.conf

    Normally rss.pl should be run periodically (e.g., daily)
    to keep the feed up-to-date.

[2] The configuration file (e.g., lastAcquired.conf) lists

    * name of the template file to use
    * path of output file
    * SQL query

    rss.pl runs the SQL query, then feeds the output of the
    query through the template to produce the output file.

[3] The template file (e.g., lastAcquired.tmpl) uses
    HTML::Template syntax like any of the HTML
    templates for the web interface.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-12-17 08:02:34 -06:00

30 lines
786 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications/DTD RSS 0.91/EN"
"http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91">
<channel>
<title><TMPL_VAR CHANNELTITLE></title>
<link><TMPL_VAR CHANNELLINK></link>
<description><TMPL_VAR CHANNELDESC></description>
<language><TMPL_VAR CHANNELLANG></language>
<lastBuildDate><TMPL_VAR CHANNELLASTBUILD></lastBuildDate>
<image>
<title><TMPL_VAR IMAGETITLE></title>
<url><TMPL_VAR IMAGEURL></url>
<link><TMPL_VAR IMAGELINK></link>
</image>
<TMPL_LOOP NAME=ITEMS>
<item>
<title><TMPL_VAR TITLE>, by <TMPL_VAR AUTHOR></title>
<link>http://opac.library.org.nz/cgi-bin/koha/opac-searchresults.pl?isbn=<TMPL_VAR ISBN></link>
</item>
</TMPL_LOOP>
</channel>
</rss>