View | Details | Raw Unified | Return to bug 26247
Collapse All | Expand All

(-)a/catalogue/search.pl (-2 / +2 lines)
Lines 362-369 if ($indexes[0] && (!$indexes[1] || $params->{'scan'})) { Link Here
362
# an operand can be a single term, a phrase, or a complete ccl query
362
# an operand can be a single term, a phrase, or a complete ccl query
363
my @operands = map uri_unescape($_), $cgi->multi_param('q');
363
my @operands = map uri_unescape($_), $cgi->multi_param('q');
364
364
365
# if a simple search, display the value in the search box
365
# if a simple search and StaffRetainSearchTerms, display the value in the search box
366
if ($operands[0] && !$operands[1]) {
366
if (C4::Context->preference('StaffRetainSearchTerms') && $operands[0] && !$operands[1]) {
367
    my $ms_query = $operands[0];
367
    my $ms_query = $operands[0];
368
    $ms_query =~ s/ #\S+//;
368
    $ms_query =~ s/ #\S+//;
369
    $template->param(ms_value => $ms_query);
369
    $template->param(ms_value => $ms_query);
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 623-628 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
623
('StaffDetailItemSelection', '1', NULL, 'Enable item selection in record detail page', 'YesNo'),
623
('StaffDetailItemSelection', '1', NULL, 'Enable item selection in record detail page', 'YesNo'),
624
('StaffLangSelectorMode','footer','top|both|footer','Select the location to display the language selector in staff interface','Choice'),
624
('StaffLangSelectorMode','footer','top|both|footer','Select the location to display the language selector in staff interface','Choice'),
625
('StaffLoginInstructions', '', NULL, 'HTML to go into the login box for the staff interface','Free'),
625
('StaffLoginInstructions', '', NULL, 'HTML to go into the login box for the staff interface','Free'),
626
('StaffRetainSearchTerms', '1', NULL, 'If enabled, searches entered into the search bar will be retained', 'YesNo'),
626
('StaffSearchResultsDisplayBranch','holdingbranch','holdingbranch|homebranch','Controls the display of the home or holding branch for staff search results','Choice'),
627
('StaffSearchResultsDisplayBranch','holdingbranch','holdingbranch|homebranch','Controls the display of the home or holding branch for staff search results','Choice'),
627
('StaffSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the staff interface','Integer'),
628
('StaffSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the staff interface','Integer'),
628
('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'),
629
('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'),
(-)a/installer/data/mysql/updatedatabase.pl (-1 lines)
Lines 23255-23261 if( CheckVersion( $DBversion ) ) { Link Here
23255
$DBversion = '20.06.00.063';
23255
$DBversion = '20.06.00.063';
23256
if( CheckVersion( $DBversion ) ) {
23256
if( CheckVersion( $DBversion ) ) {
23257
    $dbh->do(q{INSERT IGNORE INTO circulation_rules (branchcode, categorycode, itemtype, rule_name, rule_value) VALUES (NULL, NULL, NULL, 'decreaseloanholds', NULL) });
23257
    $dbh->do(q{INSERT IGNORE INTO circulation_rules (branchcode, categorycode, itemtype, rule_name, rule_value) VALUES (NULL, NULL, NULL, 'decreaseloanholds', NULL) });
23258
23259
    NewVersion( $DBversion, 14866, "Add decreaseloanholds circulation rule" );
23258
    NewVersion( $DBversion, 14866, "Add decreaseloanholds circulation rule" );
23260
}
23259
}
23261
23260
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-1 / +7 lines)
Lines 261-266 Searching: Link Here
261
                  no: "don't search"
261
                  no: "don't search"
262
            - on all variations of the ISBN.
262
            - on all variations of the ISBN.
263
        -
263
        -
264
            - When searching from the header in the staff client
265
            - pref: StaffRetainSearchTerms
266
              choices:
267
                  yes: "retain"
268
                  no: "don't retain"
269
            - search terms between searches.
270
        -
264
            - pref: BiblioItemtypeInfo
271
            - pref: BiblioItemtypeInfo
265
              choices:
272
              choices:
266
                  yes: "Display"
273
                  yes: "Display"
267
- 

Return to bug 26247