advance_notices.pl - cron script to put item due reminders into message queue
or, in crontab: 0 1 * * * advance_notices.pl -c
This script prepares pre-due and item due reminders to be sent to patrons. It queues them in the message queue, which is processed by the process_message_queue.pl cronjob. The type and timing of the messages can be configured by the patrons in their "My Alerts" tab in the OPAC.
advance_notices.pl - prepare messages to be sent to patrons for nearly due, or due, items
advance_notices.pl [ -n ][ -m <number of days> ][ --itemscontent <comma separated field list> ][ -c ]
Print a brief help message and exits.
Prints the manual page and exits.
Verbose. Without this flag set, only fatal errors are reported.
Do not send any email. Advanced or due notices that would have been sent to the patrons are printed to standard out.
Defines the maximum number of days in advance to send advance notices.
comma separated list of fields that get substituted into templates in places of the <<items.content>> placeholder. This defaults to due date,title,author,barcode
Other possible values come from fields in the biblios, items and issues tables.
This script is designed to alert patrons when items are due, or coming due
This script pays attention to the advanced notice configuration performed by borrowers in the OPAC, or by staff in the patron detail page of the intranet. The content of the messages is configured in Tools -> Notices and slips. Advanced notices use the PREDUE template, due notices use DUE. More information about the use of this section of Koha is available in the Koha manual.
Typically, messages are prepared for each patron with due items, and who have selected (or the library has elected for them) Advance or Due notices.
These emails are staged in the outgoing message queue, as are messages produced by other features of Koha. This message queue must be processed regularly by the misc/cronjobs/process_message_queue.pl program.
In the event that the
-n flag is passed to this program,
no emails are sent.
messages are sent on standard output from this program.
They may be redirected to a file if desired.
Templates can contain variables enclosed in double angle brackets like <<this>>. Those variables will be replaced with values specific to the overdue items or relevant patron. Available variables are:
one line for each item, each line containing a tab separated list of title, author, barcode, issuedate
any field from the borrowers table
any field from the branches table
The misc/cronjobs/overdue_notices.pl program allows you to send messages to patrons when their messages are overdue.