]> git.evergreen-ils.org Git - Evergreen.git/commit
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)
committerBill Erickson <berickxx@gmail.com>
Wed, 10 Jun 2015 17:34:37 +0000 (13:34 -0400)
commit23ec5c03102bff5eb09ad67b196d8b4b7373fa94
treeb027fb2ce6ed53590e6563152118f8aff329489c
parent4edf58b71a57769c2ef28cf81a86bc9deeaaf079
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>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm