Dojo IDL: Set the "Accept-Language" header
authorDan Scott <dscott@laurentian.ca>
Tue, 18 Dec 2012 13:52:55 +0000 (08:52 -0500)
committerDan Scott <dscott@laurentian.ca>
Wed, 19 Dec 2012 14:56:55 +0000 (09:56 -0500)
commitfea6fbebeb9ba992ca3058bc6d013bca22d0ab37
treed9507e7a0a045468d6c125545b3630a259888bb1
parent928fe1298f06f971ac03028d335fac7d1943075e
Dojo IDL: Set the "Accept-Language" header

The internationalization support for /reports/fm_IDL.xml keys off of the
Accept-Language header - which, if not set to ^[a-z]{2}-[A-Z]{2}$, falls
back to en-US. Setting the header in the dojo.xhrGet() request makes
Apache able to serve up the right flavour of /reports/fm_IDL.xml

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Open-ILS/web/js/dojo/fieldmapper/IDL.js