Koha/koha-tmpl/intranet-tmpl/prog/en/includes
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
..
background_jobs Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
catalogue Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
csv_headers Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
mana Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
modals Bug 23838: (QA follow-up) Move include files 2022-07-22 12:53:50 -03:00
str Bug 23838: (QA follow-up) Move include files 2022-07-22 12:53:50 -03:00
virtualshelves/merge
about-team.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
accounts.inc Bug 29602: (follow-up) fix TemplateToolkit.t 2022-04-20 20:43:14 -10:00
acquisitions-add-to-basket.inc
acquisitions-menu.inc Bug 16258: (QA follow-up) Capitalise EDIFACT 2022-04-13 15:55:39 +02:00
acquisitions-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
acquisitions-toolbar.inc Bug 28082: Add acquisitions toolbar to vendors on vendor search page 2022-05-10 15:17:17 -10:00
additional-fields-display.inc
additional-fields-entry.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
admin-items-search-field-form.inc Bug 20689: (follow-up) Correct scope of template variables 2022-03-01 22:47:46 -10:00
admin-menu.inc Bug 31401: Update administration sidebar to match entries on administration start page 2022-09-07 13:55:32 -07:00
adv-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
auth-finder-search.inc Bug 29434: add UNIMARC relationship codes for authorities 2022-08-09 07:42:21 -03:00
authorities-search-results.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
authorities-search.inc Bug 27631: (RM follow-up) Fix missing h1 to div 2022-04-20 09:03:38 -10:00
authorities-toolbar.inc
authorities.inc
authorities_js.inc Bug 26019: Koha should set SameSite attribute on cookies 2022-04-13 15:55:38 +02:00
authority-detail-modal.inc Bug 29965: Preview MARC in authority search results 2022-02-23 22:05:33 -10:00
av-build-dropbox.inc Bug 30603: Display Sort1 and Sort2 as free text if no AV exists 2022-05-10 23:09:09 -10:00
biblio-title-head.inc
biblio-title.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
biblio-view-menu.inc Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
blocked-fines.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
blocking_errors.inc
borrower_debarments.inc Bug 23681: (QA follow-up) Proper handling of default option 2022-08-25 08:41:06 -03:00
branch-selector.inc
budget_planning.inc Bug 30629: fix <span> in title of some pages 2022-06-01 16:28:28 -03:00
budgets-active-currency.inc
budgets-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
budgets-admin-toolbar.inc
calendar.inc Bug 30718: Prevent 'reset' icon to appear twice 2022-08-19 08:26:39 -03:00
cat-menu.inc
cat-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
cat-toolbar.inc Bug 21978: (follow-up) Stop passing holdfor_cardnumber 2022-06-24 12:29:14 -03:00
catalog-strings.inc
cataloging-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
catalogue-search-box.inc Bug 26247: Adding 2 Sysprefs for Search Terms 2022-09-12 16:45:08 -03:00
cateditor-ui.inc Bug 27981: (QA follow-up) Unify JavaScript to false/true from 0/1/"" 2022-09-12 15:17:37 -03:00
cateditor-widgets-marc21.inc Bug 30871: Add notes in advanced cataloging editor 2022-06-25 10:49:33 -03:00
category-out-of-age-limit.inc
chart.inc
checkin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
checkouts-table-footer.inc Bug 30718: Fix time display 2022-08-19 08:26:38 -03:00
checkouts-table.inc Bug 29983: Display the pretend claim column in overdue.tt 2022-08-05 14:44:16 -03:00
circ-menu.inc Bug 6815: Don't make an AJAX request to generate the modal 2022-03-24 14:22:10 -10:00
circ-nav.inc Bug 31404: (QA follow-up) Mostly whitespace fixes 2022-09-07 13:26:33 -07:00
circ-search.inc Bug 30499: Move the include for catalogue-search-box.inc in circ-search.inc to correct keyboard shortcuts 2022-08-01 09:07:41 -03:00
cities-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
clubs-table.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
columns_settings.inc Bug 31435: Tie 'Configure' to table_settings 2022-09-07 12:07:56 -07:00
contracts-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
country-list.inc
currencies-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
datatables.inc
date-format.inc
delimiter_text.inc
desks-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
doc-head-close-receipt.inc
doc-head-close.inc Bug 29723: Add a "Configure table" button for KohaTable tables 2022-08-16 10:12:26 -03:00
doc-head-open.inc Bug 30543: Decouple DumpSearchQueryTemplate from other tempalte dump preferences 2022-08-09 08:44:14 -03:00
empty_line.inc
facets.inc
filter-orders.inc Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
form-blocks.inc
format_price.inc
greybox.inc
guided-reports-view.inc
header.inc
holds_table.inc Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
home-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
html_helpers.inc Bug 31455: Make batchMod sort by order scanned 2022-09-12 15:30:42 -03:00
i18n.inc
ill-availability-table.inc
ill-list-table-strings.inc
ill-list-table.inc
ill-toolbar.inc
installer-doc-head-close.inc Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
installer-intranet-bottom.inc Bug 29155: Update links to jQuery and jQuery Migrate files 2022-04-25 10:00:22 -10:00
installer-strings.inc
intranet-bottom.inc
intranetstylesheet.inc
js-biblio-format.inc Bug 31083: Fix part_name handling in js-biblio-format 2022-07-18 11:16:16 -03:00
js-date-format.inc Bug 30650: Add circulation page view 2022-07-29 15:00:01 -03:00
js-patron-format-address.inc Bug 30093: Fix QA failures 2022-04-04 09:47:00 +02:00
js-patron-format.inc Bug 21978: Add support for middle name 2022-06-24 12:24:11 -03:00
js-patron-get-age.inc Bug 30059: Deal with timezones 2022-03-24 14:22:10 -10:00
js_includes.inc Bug 30578: Fix on-select for 2 occurrences 2022-07-18 11:01:45 -03:00
keyboard_shortcuts.inc
labels-toolbar.inc
langmenu-staff-top.inc
last-borrower.inc
letters-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
member-alt-address-style.inc Bug 30603: Fix other occurrences 2022-05-10 23:09:09 -10:00
member-alt-contact-style.inc
member-display-address-style.inc
member-display-alt-address-style.inc
member-main-address-style.inc Bug 30603: Fix other occurrences 2022-05-10 23:09:09 -10:00
members-toolbar.inc Bug 30650: Add link from the member toolbar 2022-07-29 15:00:18 -03:00
merge-record.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
messaging-preference-form.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
modal-claims.inc Bug 29983: Fix xt/author/valid-templates.t 2022-08-08 11:13:59 -03:00
noadd-warnings.inc
onboarding_messages.inc
page-numbers.inc
password_check.inc
patron-age.inc
patron-article-requests.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
patron-return-claims.inc
patron-search-box.inc Bug 30640: Focus does not always move to correct search header form field 2022-05-18 17:22:08 -10:00
patron-search-header.inc Bug 26247: Adding 2 Sysprefs for Search Terms 2022-09-12 16:45:08 -03:00
patron-search.inc Bug 31530: Remove HTML tags in TT comments in patron-search.inc 2022-09-12 15:35:40 -03:00
patron-title.inc Bug 21978: Use patron-title.inc in request.tt 2022-06-24 12:29:01 -03:00
patron-toolbar.inc
patron_messages.inc Bug 31486: Redirect to proper page after message deletion 2022-09-12 16:17:21 -03:00
patron_restrictions.inc Bug 23681: (QA follow-up) Remove spacing and add question mark 2022-08-25 08:41:06 -03:00
patroncards-errors.inc Bug 28576: Update the maximum size of an image. 2022-02-14 21:41:38 -10:00
patroncards-toolbar.inc
patronfields.inc Bug 21978: Add support for middle name 2022-06-24 12:24:11 -03:00
patrons-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
permissions.inc Bug 30335: (follow-up) Add permissions for manual accounts options 2022-08-31 08:41:01 -03:00
popup-bottom.inc
pos-menu.inc
prefs-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
prefs-menu.inc
recalls.inc Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
relatives-issues-table.inc
renew_results.inc
renew_strings.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
reports-menu.inc Bug 31401: (QA follow-up) Remove Koha.ArePluginsEnabled, it is no longer needed 2022-09-07 13:55:37 -07:00
reports-toolbar.inc Bug 26486: Group edit buttons in reports toolbar 2022-06-27 12:32:24 -03:00
resort_form.inc
rotating-collections-toolbar.inc
search_indexes.inc Bug 27546: (follow-up) Avoid index clash 2022-07-20 09:23:26 -03:00
select2.inc
serials-menu.inc
serials-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
serials-toolbar.inc
slip-print.inc
stockrotation-toolbar.inc
subscriptions-search.inc
subtype_limits.inc Bug 22605: (QA follow-up) Make Braille search option stick 2022-03-24 14:22:10 -10:00
subtypes_unimarc.inc
suggestions-add-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
tools-item-action.inc Bug 28290: Don't send subfields to 'as_string' if none to send 2022-09-07 13:50:21 -07:00
tools-menu.inc Bug 31401: (QA follow-up) Remove Koha.ArePluginsEnabled, it is no longer needed 2022-09-07 13:55:37 -07:00
tools-nomatch-action.inc
tools-overlay-action.inc
transaction_types.inc Bug 30733: Move all semicolons inside the translatable strings 2022-06-17 10:16:40 -03:00
transfer_reasons.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
validator-strings.inc
vendor-menu.inc
virtualshelves-toolbar.inc
waiting_holds.inc Bug 22456: Staff interface handling 2022-07-29 15:28:38 -03:00
wysiwyg-systempreferences.inc
xslt-handler.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
z3950-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
z3950_search.inc