]> git.koha-community.org Git - koha.git/commit
Bug 10359: transform masthead dropdown after user JS for CCSR
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 28 May 2013 11:44:35 +0000 (07:44 -0400)
committerBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Mon, 10 Jun 2013 23:15:01 +0000 (20:15 -0300)
commit50d90e28024a41bda6f7789eb2d6d577b844e982
treee517b70f6826e2d4b5ac238b5b91321a324bfcda
parent0c222eaa9c7e86f400e827b7c008a73815fb177d
Bug 10359: transform masthead dropdown after user JS for CCSR

Since libraries may want to customize the options in the masthead search
dropdown, which is done via dropdown, it would be better if the select
box were transformed *after* user javascript was run.

To test:
1) Switch to the CCSR OPAC theme.
2) Add some Javascript to your OpacUserJS that will modify the masthead
   search dropdown, such as:
   $("select[name='idx']").append("<option value='Host-item,wrdl'>Journal title</option>");
3) Note that when you view the OPAC, the results in the dropdown are unchanged.
4) Apply patch.
5) Note that your new option now shows up.
6) Sign off.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit ff2b4d1ff5992989478f83517d95f957c4af50d4)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 8d27bd783ebb353aea3d1a428b42b0b012b9d5a0)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 8d27bd783ebb353aea3d1a428b42b0b012b9d5a0)
koha-tmpl/opac-tmpl/ccsr/en/includes/opac-bottom.inc