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

(-)a/installer/data/mysql/atomicupdate/bug_26247-add_RetainCatalogSearchTerms_syspref.pl (+12 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "26247",
5
    description => "Add new system preference RetainCatalogSearchTerms",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RetainCatalogSearchTerms', '1', NULL, 'If enabled, searches entered into the catalog search bar will be retained', 'YesNo') });
11
    },
12
};
(-)a/installer/data/mysql/atomicupdate/bug_26247-add_RetainPatronsSearchTerms_syspref.pl (+12 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "26247",
5
    description => "Add new system preference RetainPatronsSearchTerms",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RetainPatronSearchTerms', '1', NULL, 'If enabled, searches entered into the checkout and patrons search bars will be retained', 'YesNo') });
11
    },
12
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+2 lines)
Lines 592-597 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
592
('RestrictionBlockRenewing','0',NULL,'If patron is restricted, should renewal be allowed or blocked','YesNo'),
592
('RestrictionBlockRenewing','0',NULL,'If patron is restricted, should renewal be allowed or blocked','YesNo'),
593
('OPACResultsMaxItems','1','','Maximum number of available items displayed in search results','Integer'),
593
('OPACResultsMaxItems','1','','Maximum number of available items displayed in search results','Integer'),
594
('OPACResultsMaxItemsUnavailable','0','','Maximum number of unavailable items displayed in search results','Integer'),
594
('OPACResultsMaxItemsUnavailable','0','','Maximum number of unavailable items displayed in search results','Integer'),
595
('RetainCatalogSearchTerms', '1', NULL, 'If enabled, searches entered into the catalog search bar will be retained', 'YesNo'),
596
('RetainPatronsSearchTerms', '1', NULL, 'If enabled, searches entered into the checkout and patrons search bar will be retained', 'YesNo'),
595
('ReturnBeforeExpiry','0',NULL,'If ON, checkout will be prevented if returndate is after patron card expiry','YesNo'),
597
('ReturnBeforeExpiry','0',NULL,'If ON, checkout will be prevented if returndate is after patron card expiry','YesNo'),
596
('ReturnLog','1',NULL,'If ON, enables the circulation (returns) log','YesNo'),
598
('ReturnLog','1',NULL,'If ON, enables the circulation (returns) log','YesNo'),
597
('ReturnpathDefault','',NULL,'Use this email address as return path or bounce address for undeliverable emails','Free'),
599
('ReturnpathDefault','',NULL,'Use this email address as return path or bounce address for undeliverable emails','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue-search-box.inc (-1 / +5 lines)
Lines 5-12 Link Here
5
                [% IF ( Koha.Preference('IntranetCatalogSearchPulldown') ) %]
5
                [% IF ( Koha.Preference('IntranetCatalogSearchPulldown') ) %]
6
                    [% INCLUDE 'search_indexes.inc' %]
6
                    [% INCLUDE 'search_indexes.inc' %]
7
                [% END %]
7
                [% END %]
8
                [% IF ( Koha.Preference('RetainCatalogSearchTerms') ) %]
8
            <input type="text" name="q" id="search-form" size="40" value="[% ms_value | html %]" title="Enter the terms you wish to search for." class="query form-text head-searchbox" />
9
            <input type="text" name="q" id="search-form" size="40" value="[% ms_value | html %]" title="Enter the terms you wish to search for." class="query form-text head-searchbox" />
9
            <input type="submit" value="Submit"  class="submit" />
10
                [% ELSE %]
11
             <input type="text" name="q" id="search-form" size="40" title="Enter the terms you wish to search for." class="query form-text head-searchbox" />
12
               [% END %]
13
             <input type="submit" value="Submit"  class="submit" />
10
        </form>
14
        </form>
11
    </div>
15
    </div>
12
[% END %]
16
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-header.inc (+4 lines)
Lines 11-17 Link Here
11
    <form action="/cgi-bin/koha/members/member.pl" method="post">
11
    <form action="/cgi-bin/koha/members/member.pl" method="post">
12
        <label class="tip" for="searchmember">Enter patron card number or partial name:</label>
12
        <label class="tip" for="searchmember">Enter patron card number or partial name:</label>
13
    <div class="autocomplete">
13
    <div class="autocomplete">
14
        [% IF ( Koha.Preference('RetainPatronsSearchTerms') ) %]
14
        <input id="searchmember" data-toggle="tooltip" size="25" class="head-searchbox" name="searchmember" type="text" value="[% searchmember | html %]" autocomplete="off" />
15
        <input id="searchmember" data-toggle="tooltip" size="25" class="head-searchbox" name="searchmember" type="text" value="[% searchmember | html %]" autocomplete="off" />
16
        [% ELSE %]
17
        <input id="searchmember" data-toggle="tooltip" size="25" class="head-searchbox" name="searchmember" type="text" autocomplete="off" />
18
        [% END %]
15
        <input type="hidden" name="quicksearch" value="1" />
19
        <input type="hidden" name="quicksearch" value="1" />
16
        <span class="filteraction" id="filteraction_off"> <a href="#">[-]</a></span>
20
        <span class="filteraction" id="filteraction_off"> <a href="#">[-]</a></span>
17
        <span class="filteraction" id="filteraction_on"> <a href="#">[+]</a></span>
21
        <span class="filteraction" id="filteraction_on"> <a href="#">[+]</a></span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-1 / +12 lines)
Lines 269-274 Searching: Link Here
269
                  1: "search"
269
                  1: "search"
270
                  0: "don't search"
270
                  0: "don't search"
271
            - on all variations of the ISBN.
271
            - on all variations of the ISBN.
272
        -
273
            - pref: RetainCatalogSearchTerms
274
              choices:
275
                  0: "Don't retain"
276
                  1: "Retain"
277
            - search terms between searches when searching from the 'search the catalog' tab in the staff interface header.
278
        -
279
            - pref: RetainPatronsSearchTerms
280
              choices:
281
                  0: "Don't retain"
282
                  1: "Retain"
283
            - search terms between searches when searching from the 'checkout' and 'search patrons' tab in the staff interface header.
272
        -
284
        -
273
            - pref: BiblioItemtypeInfo
285
            - pref: BiblioItemtypeInfo
274
              choices:
286
              choices:
275
- 

Return to bug 26247