Re: [Koha-devel] Deletion of changelanguage.pl and opac-changelanguage.pl

2013-03-04 Thread Tomas Cohen Arazi
I agree, I'll think of a non-js way. Thanks To+ On Sun, Mar 3, 2013 at 11:33 AM, Owen Leonard oleon...@myacpl.org wrote: Using this new code, the language selection could be simplified by using JavaScript + document.location to generate the links to languages. OPAC functionality must not

[Koha-devel] Deletion of changelanguage.pl and opac-changelanguage.pl

2013-03-03 Thread Tomas Cohen Arazi
Working on Bug 9735 [1] I ended up writing C4::Templates::getlanguagecookie and hooking C4::Auth::get_template_and_user in a way that the language can be changed using URL parameters, and the corresponding is properly set. Using this new code, the language selection could be simplified by using

Re: [Koha-devel] Deletion of changelanguage.pl and opac-changelanguage.pl

2013-03-03 Thread Chris Cormack
On Mar 4, 2013 3:33 AM, Owen Leonard oleon...@myacpl.org wrote: Using this new code, the language selection could be simplified by using JavaScript + document.location to generate the links to languages. OPAC functionality must not depend on JavaScript. There needs to be a way for it to