https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19017
Simon Pouchol <simon.pouc...@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #65498|0 |1 is obsolete| | --- Comment #5 from Simon Pouchol <simon.pouc...@biblibre.com> --- Created attachment 68319 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68319&action=edit Checks and transform SMS alert number This patch adds a new package C4::SMSNumber::Fr (new ones could be added for other countries) and a scrip (misc/check_smsalertnumber.pl): check_smsalertnumber.pl -a|--area fr [-h|--help] [-c|--confirm] [-o|--country-option] [-l|--liste-mode] Test plan #1: - Create or modify patrons and add some SMS alert numbers like: 06 98 35 72 28, 0656871221, +336-01-55-83-11, 0033 6.23.54.54.00, 0126698376 - launch perl misc/check_smsalertnumber.pl -a Fr - Transformation proposal should be like: - 06 98 35 72 28 => 0698357228, - 0656871221 => no proposal (number Ok), - +336-01-55-83-11 => 0601558311, - 0033 6.23.54.54.00 => 0623545400, - 0126698376 => Can't find a replacement Test plan #2: - with the same numbers launch perl misc/check_smsalertnumber.pl -a Fr -o +33 - Transformation proposal should be like: - 06 98 35 72 28 => +33698357228, - 0656871221 => +33656871221, - +336-01-55-83-11 => +33601558311, - 0033 6.23.54.54.00 => +33623545400, - 0126698376 => Can't find a replacement Test plan #3: - with the same numbers launch perl misc/check_smsalertnumber.pl -a Fr -o 0033 - Transformation proposal should be like: - 06 98 35 72 28 => 0033698357228, - 0656871221 => 0033656871221, - +336-01-55-83-11 => 0033601558311, - 0033 6.23.54.54.00 => 0033623545400, - 0126698376 => Can't find a replacement https://bugs.koha-community.org/show_bug.cgi?id=19017 Signed-off-by: Simon Pouchol <simon.pouc...@biblibre.com> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/