]> git.koha-community.org Git - koha.git/commit
Bug 31967: Search terms retained in header search when only one result
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 25 Oct 2022 06:47:41 +0000 (20:47 -1000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 7 Nov 2022 13:52:08 +0000 (10:52 -0300)
commit13efec8a2634bc74831504c2fd7b9423a80e6b86
tree83a52fb6b62e9069a89f48f851e26bf5edf2dd5b
parent499de130067063e2c33339be58fffee1dce17297
Bug 31967: Search terms retained in header search when only one result

Bug 26247 added a system preference to manage the Retaining of search terms in header search.
But this does not work if there is only one match and you go directly to details page.

Test plan :
1) Set system preference RetainCatalogSearchTerms to "Don't retain"
2) Perform a search leading to a single result.
   For example in KTD the ISBN 1932100083
=> Without patch search bar is populated with search terms
=> With patch search bar is not populated with search terms

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt