LP#1452352: fix generation of locale-specific RO object fetchers
authorGalen Charlton <gmc@esilibrary.com>
Wed, 6 May 2015 13:50:32 +0000 (13:50 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 6 May 2015 16:22:02 +0000 (16:22 +0000)
commitc71e4ffa89c381d650f6ba802a4ed45d43665f06
treedd7ae940cabde98fa62c8eab24701ac9a326529f
parentd5089b7b4065ed9cc51ffae441a22c99439a5da2
LP#1452352: fix generation of locale-specific RO object fetchers

The TPAC R/O object cache is now keyed by locale.  This
fixes an issue where an OPAC session that starts in one
locale and gets switched to another could see (e.g.)
format labels for the original locale.

The issue fixed by this patch can be most readily reproduced
as follows:

[1] Enable both the en-US and fr-CA locales. Make sure
    that there are some translations for record format
    coded values in place as well.
[2] Run Apache in single-process mode
    (e.g., ". /etc/apache2/envvars && apache2 -X")
[3] Visit a record details page in the en-US locale. Note
    the label associated with the record format.
[4] Change the locale to fr-CA. Note that the label is
    still the English version.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm