Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Florian Bontemps 8fae3c2069
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@biblibre.com>
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>
2022-09-12 16:45:08 -03:00
..
acqui Bug 29658: Fix crash on cancelling cancelled order 2022-09-12 16:14:47 -03:00
admin Bug 26247: Adding 2 Sysprefs for Search Terms 2022-09-12 16:45:08 -03:00
authorities
basket
batch
catalogue Bug 31439: Use pseudo element for bullet in results.tt 2022-09-12 15:36:11 -03:00
cataloguing Bug 30941: Add cataloguing plugins for 146$bcdef (UNIMARC) 2022-08-19 08:55:09 -03:00
circ Bug 26626: (follow-up) Be consistent with icon and accesskeys 2022-09-07 13:54:30 -07:00
clubs Bug 31516: Add error message for viewing enrollments for a non-existent club 2022-09-12 16:19:27 -03:00
course_reserves
errors
ill
installer
labels
mana
members Bug 31486: Redirect to proper page after message deletion 2022-09-12 16:17:21 -03:00
offline_circ
onboarding Bug 30718: (QA follow-up) KohaDates filter on inputs 2022-08-19 08:26:40 -03:00
patron_lists
patroncards Bug 31352: Change 'Borrower name' to 'Patron name' 2022-08-22 11:27:43 -03:00
plugins
pos Bug 30619: Add email receipt to POS 2022-09-07 15:59:34 -07:00
recalls
reports Bug 31401: (QA follow-up) Remove Koha.ArePluginsEnabled, it is no longer needed 2022-09-07 13:55:37 -07:00
reserve Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
reviews
rotating_collections
serials Bug 30718: (QA follow-up) Remove double use KohaDates 2022-08-19 08:26:40 -03:00
services
suggestion Bug 31374: (follow-up) change private note to staff_note and reorder columns 2022-09-07 13:32:51 -07:00
tags Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
test
tools Bug 31401: (QA follow-up) Remove Koha.ArePluginsEnabled, it is no longer needed 2022-09-07 13:55:37 -07:00
virtualshelves
about.tt
auth.tt
intranet-main.tt