[Koha-bugs] [Bug 19017] Script that checks and transforms SMS alert numbers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 4 14:32:32 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19017

Alex Arnaud <alex.arnaud at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #65396|0                           |1
        is obsolete|                            |

--- Comment #3 from Alex Arnaud <alex.arnaud at biblibre.com> ---
Created attachment 65498
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=65498&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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list