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

(-)a/installer/data/mysql/atomicupdate/bug_37883.pl (+19 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "37883",
6
    description => "Add system preference FilterSearchResultsByLoggedInBranch",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(q{
13
            INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
14
            VALUES ('FilterSearchResultsByLoggedInBranch','0','','Option to filter location column on staff search results by logged in branch','YesNo')
15
        });
16
17
        say $out "Added new system preference 'FilterSearchResultsByLoggedInBranch'";
18
    },
19
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 274-279 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
274
('FallbackToSMSIfNoEmail', 0, 'Enable|Disable', 'Send messages by SMS if no patron email is defined', 'YesNo'),
274
('FallbackToSMSIfNoEmail', 0, 'Enable|Disable', 'Send messages by SMS if no patron email is defined', 'YesNo'),
275
('FeeOnChangePatronCategory','1','','If set, when a patron changes to a category with enrolment fee, a fee is charged','YesNo'),
275
('FeeOnChangePatronCategory','1','','If set, when a patron changes to a category with enrolment fee, a fee is charged','YesNo'),
276
('FilterBeforeOverdueReport','0','','Do not run overdue report until filter selected','YesNo'),
276
('FilterBeforeOverdueReport','0','','Do not run overdue report until filter selected','YesNo'),
277
('FilterSearchResultsByLoggedInBranch','0','','Option to filter location column on staff search results by logged in branch','YesNo'),
277
('FineNotifyAtCheckin','0',NULL,'If ON notify librarians of overdue fines on the items they are checking in.','YesNo'),
278
('FineNotifyAtCheckin','0',NULL,'If ON notify librarians of overdue fines on the items they are checking in.','YesNo'),
278
('FinePaymentAutoPopup','0',NULL,'If enabled, automatically display a print dialog for a payment receipt when making a payment.','YesNo'),
279
('FinePaymentAutoPopup','0',NULL,'If enabled, automatically display a print dialog for a payment receipt when making a payment.','YesNo'),
279
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
280
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-1 / +6 lines)
Lines 127-132 Staff interface: Link Here
127
                  0: Don't highlight
127
                  0: Don't highlight
128
            - words searched for in the staff interface search results pages.
128
            - words searched for in the staff interface search results pages.
129
    Options:
129
    Options:
130
        -
131
            - pref: FilterSearchResultsByLoggedInBranch
132
              choices:
133
                  1: Do
134
                  0: "Don't"
135
            - add a filter to the location column on staff interface search results to filter items by the logged in user branch.
130
        -
136
        -
131
            - pref: viewMARC
137
            - pref: viewMARC
132
              choices:
138
              choices:
133
- 

Return to bug 37883