[Koha-bugs] [Bug 26247] Search terms retained in header search creates UX inconsistency

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 12 18:10:27 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26247

--- Comment #46 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 140473
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=140473&action=edit
Bug 26247: Adding 2 Sysprefs for Search Terms

This patch adds two system preferences options : 'RetainCatalogSearchTerms' and
'RetainPatronsSearchTerms'. If enabled, search terms will be retained between
searches made from, respectively, the Search Catalog header and the Checkout or
Search Patrons headers. If disabled, the searchbars will clear out between page
loads.

Attention, this is an alternate solution from the previous patches, ONLY apply
this patch when testing and not the previous ones.Changed the syspref wording
as well.

To test:
1 - From the staff client, search some terms using the Check out header search
bar.
2 - Confirm search terms are retained.
3 - Do Step 1-2 twice again, this time using the Search patrons and Search the
catalog.
4 - Apply patch (again, only this one), update database.
5 - In the system preferences, look for RetainCatalogSearchTerms and set it to
'don't retain'.
6 - Use the checkout head search bar again, confirm that search terms aren't
retained after page load.
7 - Do Step 5-6 once again, this time with the RetainPatronsSearchTerms and the
Search Patrons and Search the catalog headers.
8 - Search boxes should be cleared.

Thanks-to: Fridolin Somers and Nick Clemens for the bases I built on.
Signed-off-by: Florian Bontemps <florian.bontemps at biblibre.com>
Signed-off-by: David Nind <david at davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list