Bug 17743: Item search - Fix indexes build on MARC
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 15 Dec 2016 10:47:24 +0000 (10:47 +0000)
committerMason James <mtj@kohaaloha.com>
Tue, 3 Jan 2017 01:44:42 +0000 (14:44 +1300)
commit792cdc686cd64c9a457a963f62090ee27451de96
treeab455d4e8daab9529e1c54bbea7830c534e7fe27
parentcea6976e6d1a0780856a3f1b36656ecf6ebc9e8b
Bug 17743: Item search - Fix indexes build on MARC

Searching items by custom search fields does not work because these
fields are not correctly processed in JS.

In case of custom search field, the parent of the option is not the
select but the optgroup element.

Test plan:
Create a custom search field on 245$c for instance
On the items search form, select this field and launch a search
=> Without this patch, the results will not be filtered and you will get
all your items
=> With this patch applied, the results should be correctly filtered

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt