[OPEN-ILS-GENERAL] Unicode in patron's names
Dan Scott
dan at coffeecode.net
Mon Nov 29 09:19:49 EST 2010
On 29 November 2010 08:19, Dimitri Gogelia
<dimitri.gogelia at isystemsinstitute.org> wrote:
> Hi Dan,
>
> First of all, thank you for your reply.
> I'm sorry for dalay answer, but only today I saw your answer.
> Yes, I have 1.4 version of Evergreen.
> I did everything as you wrote, then restart the Evergreen, but without
> effect - no changes :(
> It is inpossible to find Patron in Staff Client with Georgian (Unicode)
> symbols.
Ah, searching... for some reason I was focused on registering patrons.
There's one other change in the 1.6 series that might make a difference for you.
In /openils/var/web/xul/server/patron/search_form.js, change the
following line (around line 281) from:
value = value.replace(/^\W+/g,'').replace(/\W+$/g,'');
to:
value = value.replace(/^[\d\s]+/g,'').replace(/[\d\s]+$/g,'')
The problem here is that the definition of the \W character class for
JavaScript regular expressions is "anything other than the characters
A-Z, a-z, 0-9, and _" - so in the current 1.4, any first name, second
name, or family name beginning with one or more Georgian characters
gets those leading characters stripped out. The 1.6 version just
strips out digits and spaces - which might be a problem if somebody
somewhere has a name beginning with a number, but shouldn't be a
problem in general.
Most of these problems have been fixed for a long time in the 1.6
releases of Evergreen; I'd strongly urge you to work with the 1.6.1.4
release, as it will be a much more effective use of your effort. I
recently created a 1.6.1.4 virtual image if that's of any assistance:
see http://evergreen-ils.org/downloads.php near the bottom.
More information about the Open-ils-general
mailing list