]> 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)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 29 May 2013 14:45:57 +0000 (07:45 -0700)
commitff2b4d1ff5992989478f83517d95f957c4af50d4
tree4c0f1e07dda96d08ec0d40e9d0221639fda21dd1
parentb0eeb00d48892c2ea7f42d787dae10364537ed6f
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>
koha-tmpl/opac-tmpl/ccsr/en/includes/opac-bottom.inc