[OPEN-ILS-GENERAL] Emails and overdues

Dan Scott dan at coffeecode.net
Fri Dec 4 16:11:24 EST 2009


On Fri, 2009-12-04 at 13:23 -0600, scrlheadlib at mts.net wrote:
> I am looking for instructions on how to set up automatic email
> notifications for overdues.  If someone can point me in the right
> direction my staff will be eternally grateful (so would I but I wanted
> you to know that it wasn’t just me.)
> 
> Mary Toma
> 

Hi Mary:

I can tell you roughly what we're doing. This has the benefit of roughly
documenting (for us) what we're doing :) We currently run the
generate_circ_notices.pl script as a cron job under the 'opensrf' user.
Here's the cron entry (should all be on one line):

01 06 * * * cd /path/to/Evergreen-source/Open-ILS/src/support-scripts/;
PERL5LIB=/openils/lib/perl5 perl generate_circ_notices.pl --send-email
--notice-type overdue,predue

The libraries in your consortium also need to have their email addresses
set in the actor.org_unit table. This isn't the same as the email
address you can set with the Library Settings editor in the staff
client, somewhat unintuitively - that's used by the next-generation
email notice infrastructure (which we're not using yet).

Also, your Evergreen server will have to be set up with postfix or
sendmail or whatever so that it can actually send email.

This script uses the email templates in /openils/var/data/templates/ if
you have a need to customize them. The script sends reminder notices the
day before items come due, and overdue notices 7 days after the items
come due.

The new notification infrastructure introduced in 1.6.0.0 should be a
lot more flexible in terms of configuring more notices at different
intervals, changing templates depending on user's desired language, etc.
We're just not quite there yet.

Dan



More information about the Open-ils-general mailing list