gcode-mirror / google-highly-open-participation-drupal

Automatically exported from code.google.com/p/google-highly-open-participation-drupal
0 stars 0 forks source link

International phone numbers for CCK #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Description

Task description / Requirements:
Create an abstraction of the existing filters for phone numbers, so that
the filter (to be created) works for all country-codes, therefor:
+ add a configuration option for a default country code,
+ The new filter should validate the number from the user-input against the
rules of ITU: validate the country code if started with a "+" sign
+ add a default country-code if the user didn't typed it in, delete
therefor a leading 0
+ add a configuration option for the maximum number of digits a phone
number is allowed to have (default 20; ITU recommondation 15 + Country-code)
+ test the length of the phone numbers (digits only) against the configured
length, while ignoring all brackets, dots, dashes etc. form the user - input,

Approach:
Install drupal, cck and phone
create a input-type with a phone nuber, test the limits of the existing
phone-module (not all country-codes can be used)
take the php-Editor / IDE of your choice
Learn how the existing filters are build (fr, us, ca, it, ru)
Create the configuration for the filter
Create the generic filter for all phone-numbers
Integrate the configuration: the filter and the existing phone-module

Versions:
phone is now only for D5 aviable, so the students / you will have to use D5
with the actual developer release of the phone module

Deliverable(s)
a new filter for phone (Ready for review)
a patch of phone.module to integrate the new filter (Ready for review)
at least one page of user documentation: Who defines country-codes? Where
are they officiealy documented? What is the recommendation for the length
of phone numbers? What signs are used to format a phone-number ?
The used standards should be described in the readme.txt, the appropriate
places in the source-code and appropriate links should also placed on the
configuration page.

Resources
http://ftp.drupal.org/files/projects/drupal-5.6.tar.gz
http://drupal.org/project/cck
IRC: #drupal
The phone modul: http://drupal.org/project/phone
http://en.wikipedia.org/wiki/List_of_country_calling_codes
RegEx - Tester: http://sourceforge.net/projects/kodos/
official list of country codes: http://www.itu.int/publ/T-SP-E.164D-2007/en
Number-format and -length:
http://www.antelope.org.uk/numbering/World_numbering_developments.pdf see
section 2.1.1
a link to the general resources:
http://code.google.com/p/google-highly-open-participation-drupal/wiki/Fu...

Maintainer for the module phone: Thierry Guégan; http://drupal.org/user/43798
(this task is on the to-do list of the module)

Primary contact
Thomas_Zahreddin http://drupal.org/user/118299
mailto:ghop@it-arts.org

Original issue reported on code.google.com by Thomas.Z...@googlemail.com on 20 Jan 2008 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by acli...@gmail.com on 20 Jan 2008 at 10:05

GoogleCodeExporter commented 9 years ago
I claim this task.

Original comment by edwardzy...@thewritingpot.com on 21 Jan 2008 at 7:29

GoogleCodeExporter commented 9 years ago
Ok edwardzy...@thewritingpot.com, it's yours.

Original comment by acli...@gmail.com on 21 Jan 2008 at 1:20

GoogleCodeExporter commented 9 years ago

Original comment by acli...@gmail.com on 22 Jan 2008 at 2:22

GoogleCodeExporter commented 9 years ago
Edward did a great job on this and even threw in some simple tests for no extra
charge.  Great work.

Original comment by acli...@gmail.com on 22 Jan 2008 at 4:48

GoogleCodeExporter commented 9 years ago
Hey, Edward. We need the code uploaded here when you get a chance. Google fixed 
our
file attachment quota.

Original comment by webchick...@gmail.com on 22 Jan 2008 at 5:43

GoogleCodeExporter commented 9 years ago
Attachments for complete task.

Original comment by edwardzy...@thewritingpot.com on 27 Jan 2008 at 9:15

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks.

Original comment by acli...@gmail.com on 27 Jan 2008 at 9:17