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

(-)a/installer/data/mysql/atomicupdate/bug_30077_add_syspref_IntranetAddMastheadLibraryPulldown.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "30077",
5
    description => "Add the system preference IntranetAddMastheadLibraryPulldown",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{
10
            INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) VALUES ('IntranetAddMastheadLibraryPulldown','0','','Add a library select pulldown menu on the staff header search','YesNo ')                
11
        });
12
        say $out "Finished adding system preference IntranetAddMastheadLibraryPulldown";
13
    },
14
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 267-272 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
267
('IndependentBranches','0',NULL,'If ON, increases security between libraries','YesNo'),
267
('IndependentBranches','0',NULL,'If ON, increases security between libraries','YesNo'),
268
('IndependentBranchesPatronModifications','0', NULL, 'Show only modification request for the logged in branch','YesNo'),
268
('IndependentBranchesPatronModifications','0', NULL, 'Show only modification request for the logged in branch','YesNo'),
269
('IndependentBranchesTransfers','0', NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'),
269
('IndependentBranchesTransfers','0', NULL, 'Allow non-superlibrarians to transfer items between libraries','YesNo'),
270
('IntranetAddMastheadLibraryPulldown','0', NULL, 'Add a library select pulldown menu on the staff header search','YesNo'),
270
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
271
('IntranetCatalogSearchPulldown','0', NULL, 'Show a search field pulldown for \"Search the catalog\" boxes','YesNo'),
271
('RecordedBooksClientSecret','','30','Client key for RecordedBooks integration','Free'),
272
('RecordedBooksClientSecret','','30','Client key for RecordedBooks integration','Free'),
272
('RecordedBooksDomain','','','RecordedBooks domain','Free'),
273
('RecordedBooksDomain','','','RecordedBooks domain','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue-search-box.inc (+8 lines)
Lines 1-3 Link Here
1
[% USE Branches %]
1
[% IF ( CAN_user_catalogue ) %]
2
[% IF ( CAN_user_catalogue ) %]
2
    <div id="catalog_search" class="residentsearch">
3
    <div id="catalog_search" class="residentsearch">
3
        <form action="/cgi-bin/koha/catalogue/search.pl"  method="get" id="cat-search-block">
4
        <form action="/cgi-bin/koha/catalogue/search.pl"  method="get" id="cat-search-block">
Lines 6-12 Link Here
6
                    [% INCLUDE 'search_indexes.inc' %]
7
                    [% INCLUDE 'search_indexes.inc' %]
7
                [% END %]
8
                [% END %]
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" />
10
            [% IF ( Koha.Preference('IntranetAddMastheadLibraryPulldown') ) %]
11
                <select id="select_library" name="limit" style="margin-left:5px;">
12
                    <option value="">All libraries</option>
13
                    [% PROCESS options_for_libraries libraries => Branches.all( ) %]
14
                </select>
15
            [% END %]
9
            <input type="submit" value="Submit"  class="submit" />
16
            <input type="submit" value="Submit"  class="submit" />
17
10
        </form>
18
        </form>
11
    </div>
19
    </div>
12
[% END %]
20
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-1 / +6 lines)
Lines 175-180 Staff interface: Link Here
175
                 1: "Enable"
175
                 1: "Enable"
176
                 0: "Don't enable"
176
                 0: "Don't enable"
177
            - audio alerts for events defined in the <a href="/cgi-bin/koha/admin/audio_alerts.pl">audio alerts</a> section of administration.
177
            - audio alerts for events defined in the <a href="/cgi-bin/koha/admin/audio_alerts.pl">audio alerts</a> section of administration.
178
        -
179
            - pref: IntranetAddMastheadLibraryPulldown
180
              choices:
181
                  1: Show
182
                  0: "Don't show"
183
            - a library select pulldown menu on the staff header search.
178
        -
184
        -
179
            - pref: IntranetCatalogSearchPulldown
185
            - pref: IntranetCatalogSearchPulldown
180
              choices:
186
              choices:
181
- 

Return to bug 30077