Lines 7-24
my $dbh = C4::Context->dbh;
Link Here
|
7 |
# add phone message transport type |
7 |
# add phone message transport type |
8 |
$dbh->do("INSERT INTO message_transport_types (message_transport_type) VALUES ('phone')"); |
8 |
$dbh->do("INSERT INTO message_transport_types (message_transport_type) VALUES ('phone')"); |
9 |
|
9 |
|
10 |
# adds HOLD_PHONE and PREDUE_PHONE letters (as placeholders) |
10 |
# adds HOLD and PREDUE letters (as placeholders) |
11 |
$dbh->do("INSERT INTO letter (module, code, name, title, content) VALUES |
11 |
$dbh->do("INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES |
12 |
('reserves', 'HOLD_PHONE', 'Item Available for Pick-up (phone notice)', 'Item Available for Pick-up (phone notice)', 'Your item is available for pickup'), |
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_PHONE', 'Advance Notice of Item Due (phone notice)', 'Advance Notice of Item Due (phone notice)', 'Your item is due soon'), |
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_PHONE', 'Overdue Notice (phone notice)', 'Overdue Notice (phone notice)', 'Your item is overdue') |
14 |
('circulation', 'OVERDUE', 'Overdue Notice (phone notice)', 'Overdue Notice (phone notice)', 'Your item is overdue', 'phone') |
15 |
"); |
15 |
"); |
16 |
|
16 |
|
17 |
# add phone notifications to patron message preferences options |
17 |
# add phone notifications to patron message preferences options |
18 |
$dbh->do("INSERT INTO message_transports |
18 |
$dbh->do("INSERT INTO message_transports |
19 |
(message_attribute_id, message_transport_type, is_digest, letter_module, letter_code) VALUES |
19 |
(message_attribute_id, message_transport_type, is_digest, letter_module, letter_code) VALUES |
20 |
(4, 'phone', 0, 'reserves', 'HOLD_PHONE'), |
20 |
(4, 'phone', 0, 'reserves', 'HOLD'), |
21 |
(2, 'phone', 0, 'circulation', 'PREDUE_PHONE') |
21 |
(2, 'phone', 0, 'circulation', 'PREDUE') |
22 |
"); |
22 |
"); |
23 |
|
23 |
|
24 |
# add TalkingTechItivaPhoneNotification syspref |
24 |
# add TalkingTechItivaPhoneNotification syspref |