View | Details | Raw Unified | Return to bug 13068
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/Bug-4246-Talking-Tech-itiva-phone-notifications.pl (-27 lines)
Lines 1-27 Link Here
1
#! /usr/bin/perl
2
use strict;
3
use warnings;
4
use C4::Context;
5
my $dbh = C4::Context->dbh;
6
7
# add phone message transport type
8
$dbh->do("INSERT INTO message_transport_types (message_transport_type) VALUES ('phone')");
9
10
# adds HOLD and PREDUE letters (as placeholders)
11
$dbh->do("INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES
12
          ('reserves', 'HOLD', 'Item Available for Pick-up (phone notice)', 'Item Available for Pick-up (phone notice)', 'Your item is available for pickup', 'phone'),
13
          ('circulation', 'PREDUE', 'Advance Notice of Item Due (phone notice)', 'Advance Notice of Item Due (phone notice)', 'Your item is due soon', 'phone'),
14
          ('circulation', 'OVERDUE', 'Overdue Notice (phone notice)', 'Overdue Notice (phone notice)', 'Your item is overdue', 'phone')
15
          ");
16
17
# add phone notifications to patron message preferences options
18
$dbh->do("INSERT INTO message_transports
19
         (message_attribute_id, message_transport_type, is_digest, letter_module, letter_code) VALUES
20
         (4, 'phone', 0, 'reserves', 'HOLD'),
21
         (2, 'phone', 0, 'circulation', 'PREDUE')
22
         ");
23
24
# add TalkingTechItivaPhoneNotification syspref
25
$dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('TalkingTechItivaPhoneNotification',0,'If ON, enables Talking Tech I-tiva phone notifications',NULL,'YesNo');");
26
27
print "Upgrade done (Support for Talking Tech i-tiva phone notification system)\n";
(-)a/misc/cronjobs/thirdparty/TalkingTech.README (-7 / +2 lines)
Lines 1-13 Link Here
1
Installation and Setup instructions for Talking Tech I-tiva phone notification
1
Installation and Setup instructions for Talking Tech I-tiva phone notification
2
=============================
2
=============================
3
3
4
Be sure you've run installer/data/mysql/atomicupdate/Bug-4246-Talking-Tech-itiva-phone-notifications.pl
4
Be sure you enabled the TalkingTechItivaPhoneNotification syspref and you created notice text for the Phone message transport type under the HOLD, PREDUE and OVERDUE notices. (See Tools > Notices & Slips.)
5
to install the required data pack (new syspref, notice placeholders and messaging transport preferences)
6
5
7
To use, TalkingTechItivaPhoneNotification syspref must be turned on.
6
If you wish to process PREDUE or HOLD messages, you'll need the EnhancedMessagingPreferences system preference turned on, and patrons to have filled in a preference for receiving these notices by phone.
8
9
If you wish to process PREOVERDUE or RESERVES messages, you'll need the EnhancedMessagingPreferences
10
system preference turned on, and patrons to have filled in a perference for receiving these notices by phone.
11
7
12
For OVERDUE messages, overdue notice triggers must be configured under Koha -> Tools -> Overdue Notice Triggers.
8
For OVERDUE messages, overdue notice triggers must be configured under Koha -> Tools -> Overdue Notice Triggers.
13
Either branch-specific triggers or the default level triggers may be used (script will select whichever is appropriate).
9
Either branch-specific triggers or the default level triggers may be used (script will select whichever is appropriate).
14
- 

Return to bug 13068