Browse Source
As bug 25333 changed the 'phone' transport type to 'talkingtech', we can now re-add 'phone' as a transport type again, and allow it to behave and support the same notices as the email transport type. Test Plan; 1) Apply this patch 2) Run updatedatabase 3) Restart all the things! 4) Disable TalkingTechItivaPhoneNotificationi if enabled 5) Enable new PhoneNotification system preference 6) Go to a patron's messaging preferences, not you can select the 'phone' option for all the same notices as the 'email' option 7) Enable the phone option for all the message types 8) Browser to the Notices and slips editor 9) Add a phone notice version for each notice you wish to test 10) Test some notices ( CHECKIN, CHECKOUT, etc ) 11) Notices should show in the patron's messages as 'phone' notices Signed-off-by: Christopher Zorn <Christofer.Zorn@ajaxlibrary.ca> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>20.11.x
8 changed files with 84 additions and 6 deletions
@ -0,0 +1,27 @@ |
|||
$DBversion = 'XXX'; # will be replaced by the RM |
|||
if( CheckVersion( $DBversion ) ) { |
|||
$dbh->do(q{ |
|||
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES |
|||
('PhoneNotification','0',NULL,'If ON, enables generation of phone notifications to be sent by plugins','YesNo') |
|||
}); |
|||
|
|||
$dbh->do(q{ |
|||
INSERT INTO message_transport_types (message_transport_type) VALUES ('phone') |
|||
}); |
|||
|
|||
$dbh->do(q{ |
|||
INSERT IGNORE INTO `message_transports` |
|||
(`message_attribute_id`, `message_transport_type`, `is_digest`, `letter_module`, `letter_code`) |
|||
VALUES |
|||
(1, 'phone', 0, 'circulation', 'DUE'), |
|||
(1, 'phone', 1, 'circulation', 'DUEDGST'), |
|||
(2, 'phone', 0, 'circulation', 'PREDUE'), |
|||
(2, 'phone', 1, 'circulation', 'PREDUEDGST'), |
|||
(4, 'phone', 0, 'reserves', 'HOLD'), |
|||
(5, 'phone', 0, 'circulation', 'CHECKIN'), |
|||
(6, 'phone', 0, 'circulation', 'CHECKOUT'); |
|||
}); |
|||
|
|||
# Always end with this (adjust the bug info) |
|||
NewVersion( $DBversion, 25334, "Add generic 'phone' message transport type"); |
|||
} |
Loading…
Reference in new issue