]> git.koha-community.org Git - koha.git/commit
Bug 23122: When searching callnumber in simple search, search option is not retained
authorOwen Leonard <oleonard@myacpl.org>
Fri, 14 Jun 2019 14:59:34 +0000 (14:59 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 15 Jul 2019 13:24:16 +0000 (15:24 +0200)
commitdd6a237ff8b7bbeef8a1571aaa58f4e894c2cb28
tree3887206adec6509a7199b8aa99570ace4a39007e
parentc00313654aa0547833a6894b9acacae1274344c3
Bug 23122: When searching callnumber in simple search, search option is not retained

This patch copies some code and markup from the staff client where call
number phrase searches are correctly handled. A check for
'ms_callnumcommaphr' is copied from search_indexes.inc. Handling of
commas and dashes is copied from search.pl.

To test, apply the patch and make sure the
OpacAddMastheadLibraryPulldown system preference is enabled.

 - From the OPAC main page, select "Call number" from the search pull
   down at the top of the page.
 - Perform any search (it need not return results).
 - Verify that the search option retains the "Call number" selection.
 - Repeat the test with and without the OPACNumbersPreferPhrase system
   preference enabled.

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Signed-off-by: Nadine Pierre <nadine.pierre@inLibro.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 313a92324ab892179ca774742e336dc156b30a4a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
opac/opac-search.pl