f74d63a1e5
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>
34 lines
2.2 KiB
XML
34 lines
2.2 KiB
XML
<?xml version="1.0"?>
|
|
<rss version="2.0">
|
|
<channel>
|
|
<title><!-- TMPL_VAR NAME="CHANNELTITLE" --></title>
|
|
<link><!-- TMPL_VAR NAME="CHANNELLINK" --></link>
|
|
<description><!-- TMPL_VAR NAME="CHANNELDESC" --></description>
|
|
<language><!-- TMPL_VAR NAME="CHANNELLANG" --></language>
|
|
<lastBuildDate><!-- TMPL_VAR NAME="CHANNELLASTBUILD" --></lastBuildDate>
|
|
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
|
|
<generator>Koha</generator>
|
|
<image>
|
|
<title><!-- TMPL_VAR NAME="IMAGETITLE" --></title>
|
|
<url><!-- TMPL_VAR NAME="IMAGEURL" --></url>
|
|
<link><!-- TMPL_VAR NAME="IMAGELINK" --></link>
|
|
<width><!-- TMPL_VAR NAME="IMAGEWIDTH" --></width>
|
|
<height><!-- TMPL_VAR NAME="IMAGEHEIGHT" --></height>
|
|
<description><!-- TMPL_VAR NAME="IMAGEDESCRIPTION" --></description>
|
|
</image>
|
|
|
|
<!-- TMPL_LOOP NAME="ITEMS" -->
|
|
<item>
|
|
<title><!-- TMPL_VAR NAME="TITLE" --><!-- TMPL_IF NAME="AUTHOR" --> by <!-- TMPL_VAR NAME="AUTHOR" --><!-- /TMPL_IF --></title>
|
|
<link>http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" --></link>
|
|
<description><![CDATA[<!-- TMPL_VAR NAME="TITLE" --><!-- TMPL_IF NAME="AUTHOR" --> by <!-- TMPL_VAR NAME="AUTHOR" --><!-- /TMPL_IF -->
|
|
<br><!-- TMPL_IF NAME="publishercode" --><!-- TMPL_VAR NAME="place" --> <!-- TMPL_VAR NAME="publishercode" --> <!-- TMPL_VAR NAME="publicationyear" --><br><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="pages" --><!-- TMPL_VAR NAME="pages" --><!-- TMPL_VAR NAME="illus" --><!-- TMPL_VAR NAME="size" --><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="notes" --><p><!-- TMPL_VAR NAME="notes" --></p><!-- /TMPL_IF --><br>
|
|
<a href="http://opac.library.org.nz/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">View Details</a> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-reserve.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Reserve this Item</a><!-- TMPL_IF NAME="author" --> | <a href="http://opac.library.org.nz/cgi-bin/koha/opac-search.pl?marclist=biblio.author&and_or=and&excluding=&operator=contains&value=<!-- TMPL_VAR NAME="author" -->&resultsperpage=20&orderby=biblio.title&op=do_search">More by this Author</a><!-- /TMPL_IF -->
|
|
]]></description>
|
|
</item>
|
|
<!-- /TMPL_LOOP -->
|
|
|
|
</channel>
|
|
</rss>
|