]> git.koha-community.org Git - koha.git/commit
Bug 2176 (3/5): adding methods to manage message_queue, new advance_notices.pl, new...
authorAndrew Moore <andrew.moore@liblime.com>
Fri, 20 Jun 2008 18:02:00 +0000 (13:02 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 20 Jun 2008 18:04:52 +0000 (13:04 -0500)
commit2cae4efa0a0f3d3f960b173b3e3d2eef4ecf555e
tree80422d16920ad61ea0317f642956f3c47cbdf694
parent401c84cc09e8fc341d5cf4598174b2bcaff1e18d
Bug 2176 (3/5): adding methods to manage message_queue, new advance_notices.pl, new C4::SMS module

I've added methods to to C4::Letters to manage the database table
message_queue. This will let us keep track of messages sent
via email, sms, and rss to patrons. That way, we can show the history,
deal with failures, and reconstruct an RSS feed when needed.

misc/cronjobs/overduenotics.pl has been added. It prepares advance notices
and item due notices and stages messages to be sent in the message_queue
table.

C4::Overdues::Getoverdues now takes two optional arguments to tell it how
old of overdues to fetch.

Also, a C4::Circualtion::getUpcomingDueIssues method was added that
advance_notices.pl uses.

misc/cronjobs/process_message_queue.pl has been added. It sends the email
or SMS messages out of the message queue.

The C4::SMS module didn't work at all, and it has been rebuilt to use
an external perl module from CPAN, SMS::Send.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
14 files changed:
C4/Circulation.pm
C4/Letters.pm
C4/Overdues.pm
C4/SMS.pm
misc/cronjobs/advance_notices.pl [new file with mode: 0755]
misc/cronjobs/process_message_queue.pl [new file with mode: 0755]
t/lib/KohaTest/Circulation.pm
t/lib/KohaTest/Circulation/GetUpcomingDueIssues.pm [new file with mode: 0644]
t/lib/KohaTest/Letters.pm [new file with mode: 0644]
t/lib/KohaTest/Letters/GetLetter.pm [new file with mode: 0644]
t/lib/KohaTest/Letters/GetLetters.pm [new file with mode: 0644]
t/lib/KohaTest/Overdues/GetOverdues.pm [new file with mode: 0644]
t/lib/KohaTest/SMS.pm [new file with mode: 0644]
t/lib/KohaTest/SMS/send_sms.pm [new file with mode: 0644]