[Koha-bugs] [Bug 23817] Normalize phone number when searching patrons

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 15 03:02:16 CEST 2022


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

--- Comment #15 from David Cook <dcook at prosentient.com.au> ---
Thanks for testing and the feedback, David :)

One thing to note about the phone number input is that the web form isn't the
only way that phone numbers are added. Patrons can be added via the "Import
patrons" tool as well, so I think the ultimate phone number validation needs to
be done on the backend. I think adding Javascript validation would be helpful
from the UX point of view though.

I was thinking a bit about formatting and we have had some discussion on the
listserv (hopefully there will be more discussion there).

Internationalization does make the phone number formatting tough. For instance,
in Australia I think we have 4+ different phone number formats (although in
practical terms only 2 would probably be used by the library) whereas back in
Canada I think we only had 1 phone number format.

--

Ideally, I would rather just normalize the data only when searching (like I'm
doing in Koha 21.11), but the DataTables/REST API mechanism makes that
seemingly impossible.

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


More information about the Koha-bugs mailing list