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:08:27 +0000 (16:08 -0400)
commit716ecc96b8310688337bbe5dea8e85c20fd342af
tree15e72d69246e256ef83ab3bac75a4cf7527fe0ec
parent39143f79bc7f1f07e7971789a96d3cf07c555e6e
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