[OPEN-ILS-GENERAL] Zipcode Problem
Bill Ott
bott at grpl.org
Tue May 18 21:00:22 EDT 2010
On 5/18/10 8:42 PM, Joel Harbottle wrote:
> <snip>
> Is there an ultra-easy way in Evergreen to fix this post code problem,
> to allow Evergreen to accept a 4 digit postcode, such as 7250.
Might depend on your definition of ultra-easy, but it's certainly
possible without a major change.
Locate ue_config.js. Likely under:
/openils/var/xul/<build_id>/server/patron/ue_config.js
Within this file is the regular expression that matches on the postal
code entry:
const zipRegex = /^\d{5}(-\d{4}|-?$)/; /* 12345 or
12345-6789 */
If you want it to require a 4 digit number, change this line to:
const zipRegex = /^\d{4}/;
> As well as the postcode problem is there an ultra-easy to change the
> layout of the postal address when it is printed, so it is in the
> standard for postal addresses here in Australia.
I'm not certain where this print is coming from. I expect it's a
similar change, but will need a bit more information to know where that
change needs to be made.
> (Example below):
> Mr Joe Bloggs
> 101 Example Street
> LAUNCESTON TAS 7250
> Australia
> (On the postal address printout, we don't need 'Australia' to show, as
> we are only posting locally.)
> Our library has had this problem since we migrated to Evergreen two
> years ago. We migrated to Evergreen 1.2.0.4, and are now using
> Evergreen 1.4.0.6, and have had this problem since 1.2.0.4.
> Our library is also planning to upgrade to Evergreen 1.6 in the next
> two months. But since this is a major disruption to our workflow, this
> needs fixing in 1.4.0.6, as we are unable to spare the time to wait
> til our 1.6 upgrade.
> Kindest Regards,
> Joel
> Joel Harbottle
> Email: joel.r.harbottle at gmail.com <mailto:joel.r.harbottle at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20100518/70e59500/attachment.htm
More information about the Open-ils-general
mailing list