Custom RSS Feeds | Best Book Buddies
  1. Koha ManualKoha Manual
  2. OPAC
  3. How to enhance content?

OPAC

How to enhance content?

Using misc/cronjobs/rss/rss.pl you can generate an RSS feed for any SQL query (for example a new acquisitions RSS feed). 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 can be found at: misc/cronjobs/rss.pl lastAcquired.conf

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

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.

Important

To use custom RSS feeds you need to turn on the rss.pl cron job.

"You are seeing this manual, thanks to Koha Community"