]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1171875 Add locale support to IDL2js
authorBill Erickson <berick@esilibrary.com>
Fri, 26 Apr 2013 17:20:24 +0000 (13:20 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 2 Aug 2013 20:05:49 +0000 (16:05 -0400)
commit2bddeede1d84fd96df0bad2054bbce4cbefaca33
tree52bf28d87acb78715044eb1b5394d0aa88cd4cb1
parent7f04ee6f56bebc747fdaf0b3cce5febec57fdba7
LP1171875 Add locale support to IDL2js

/IDL2js now reads locale information from either locale= CGI parameter
or Accept-Language HTTP headers.  The locale-aware IDL is loaded from
/reports/fm_IDL.xml via Apache subrequest.  Each full copy of the IDL is
cached within the Apache processes to avoid the need to re-parse the IDL ad
infinitum for full IDL retrieval.  Partial IDL retrieval is also supported
(but not cached).

No attempt is made to cleanse the locale -- invalid locale strings are
discarded -- so it's the callers responsibility to pass a valid locale.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/IDL2js.pm