@@ -, +, @@
---
installer/data/mysql/mandatory/sysprefs.sql | 1 +
koha-tmpl/intranet-tmpl/prog/en/includes/catalog-search-box.inc | 4 ++++
.../intranet-tmpl/prog/en/modules/admin/preferences/searching.pref | 7 +++++++
3 files changed, 12 insertions(+)
--- a/installer/data/mysql/mandatory/sysprefs.sql
+++ a/installer/data/mysql/mandatory/sysprefs.sql
@@ -626,6 +626,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('StaffRetainSearchTerms', '1', NULL, 'If enabled, searches entered into the search bar will be retained', 'YesNo'),
('StaffSearchResultsDisplayBranch','holdingbranch','holdingbranch|homebranch','Controls the display of the home or holding branch for staff search results','Choice'),
('StaffSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the staff interface','Integer'),
+('StaffStickySearchTerms', '1', NULL, 'If enabled, searches entered into the search bar will be copied to other header tabs', 'YesNo'),
('StaticHoldsQueueWeight','0',NULL,'Specify a list of library location codes separated by commas -- the list of codes will be traversed and weighted with first values given higher weight for holds fulfillment -- alternatively, if RandomizeHoldsQueueWeight is set, the list will be randomly selective','Integer'),
('StatisticsFields','location|itype|ccode', NULL, 'Define Fields (from the items table) used for statistics members','Free'),
('StockRotation','0',NULL,'If ON, enables the stock rotation module','YesNo'),
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/catalog-search-box.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/catalog-search-box.inc
@@ -7,7 +7,11 @@
[% ELSE %]
[% END %]
+ [% IF ( Koha.Preference('StaffStickySearchTerms') ) %]
+
+ [% ELSE %]
+ [% END %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref
@@ -268,6 +268,13 @@ Searching:
no: "don't retain"
- search terms between searches.
-
+ - When searching from the header in the staff client
+ - pref: StaffStickySearchTerms
+ choices:
+ yes: "copy"
+ no: "don't copy"
+ - search terms between search tabs.
+ -
- pref: BiblioItemtypeInfo
choices:
yes: "Display"
--