[OPEN-ILS-DEV] Suggestion for handling country-specific variations in org_unit.html

Ben Ostrowsky ben at esilibrary.com
Wed Sep 16 17:53:09 EDT 2009


At the moment, org_unit.html requires a county, which doesn't have a
whole lot of meaning in Canada, and uses a hardcoded regex for the
postal code.  For Canada, the regex
/^[ABCEFGHJKLMNPRSTVXY][0-9][ABCEFGHJKLMNPRSTVWXYZ][\s]?[0-9][ABCEFGHJKLMNPRSTVWXYZ][0-9]$/
is appropriate.

Should this be stored in an org_unit_setting?  Should it be an entity
like &conify.org_unit.addresses_pane.zip.regex; instead?  I leave it
to y'all to find the most sensible implementation.

Ben


More information about the Open-ils-dev mailing list