]> git.koha-community.org Git - koha.git/commit
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)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 2 Jan 2017 11:56:13 +0000 (12:56 +0100)
commit081a451d6615191384a8e6860dad53b5d48c718c
tree03cb4bfba328eef1398ae220df8c8d9fa2f46266
parentfad86af97b122c8fe31026e9603c8e6f2560a576
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: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit c86a9e4d300fe746fe542e38a60148de6501f7a6)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit 9e68a7d42d3d0c9c2c8961c32e3348ff4b5d5abf)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt