6a06fc9b6c
The *_PHONE notices (HOLD_PHONE, PREDUE_PHONE and OVERDUE_PHONE) should be "merged" into the main code (i.e. HOLD, PREDUE and OVERDUE). Test plan: 1/ Make sure you have HOLD_PHONE, PREDUE_PHONE and OVERDUE_PHONE notices 2/ Execute the update DB entry 3/ Verify the 3 notices have been merged into "phone" template of the HOLD, PREDUE and OVERDUE notices 4/ Verify there is no regression in the Talking Tech feature (how?) Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> No koha-qa errors Verified that notices are merged TalkingTech_itiva_outbound.pl runs without problem... but can't produce any output, may be not correctly configured (my setup), no warnings nor log messages Signed-off-by: Galen Charlton <gmc@esilibrary.com>
27 lines
1.5 KiB
Perl
27 lines
1.5 KiB
Perl
#! /usr/bin/perl
|
|
use strict;
|
|
use warnings;
|
|
use C4::Context;
|
|
my $dbh = C4::Context->dbh;
|
|
|
|
# add phone message transport type
|
|
$dbh->do("INSERT INTO message_transport_types (message_transport_type) VALUES ('phone')");
|
|
|
|
# adds HOLD and PREDUE letters (as placeholders)
|
|
$dbh->do("INSERT INTO letter (module, code, name, title, content, message_transport_type) VALUES
|
|
('reserves', 'HOLD', 'Item Available for Pick-up (phone notice)', 'Item Available for Pick-up (phone notice)', 'Your item is available for pickup', 'phone'),
|
|
('circulation', 'PREDUE', 'Advance Notice of Item Due (phone notice)', 'Advance Notice of Item Due (phone notice)', 'Your item is due soon', 'phone'),
|
|
('circulation', 'OVERDUE', 'Overdue Notice (phone notice)', 'Overdue Notice (phone notice)', 'Your item is overdue', 'phone')
|
|
");
|
|
|
|
# add phone notifications to patron message preferences options
|
|
$dbh->do("INSERT INTO message_transports
|
|
(message_attribute_id, message_transport_type, is_digest, letter_module, letter_code) VALUES
|
|
(4, 'phone', 0, 'reserves', 'HOLD'),
|
|
(2, 'phone', 0, 'circulation', 'PREDUE')
|
|
");
|
|
|
|
# add TalkingTechItivaPhoneNotification syspref
|
|
$dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('TalkingTechItivaPhoneNotification',0,'If ON, enables Talking Tech I-tiva phone notifications',NULL,'YesNo');");
|
|
|
|
print "Upgrade done (Support for Talking Tech i-tiva phone notification system)\n";
|