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

(-)a/installer/data/mysql/atomicupdate/bug_37883.pl (+21 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(
13
            q{
14
            INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
15
            VALUES ('FilterSearchResultsByLoggedInBranch','0','','Option to filter location column on staff search results by logged in branch','YesNo')
16
        }
17
        );
18
19
        say $out "Added new system preference 'FilterSearchResultsByLoggedInBranch'";
20
    },
21
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +2 lines)
Lines 282-287 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
282
('FallbackToSMSIfNoEmail', 0, 'Enable|Disable', 'Send messages by SMS if no patron email is defined', 'YesNo'),
282
('FallbackToSMSIfNoEmail', 0, 'Enable|Disable', 'Send messages by SMS if no patron email is defined', 'YesNo'),
283
('FeeOnChangePatronCategory','1','','If set, when a patron changes to a category with enrolment fee, a fee is charged','YesNo'),
283
('FeeOnChangePatronCategory','1','','If set, when a patron changes to a category with enrolment fee, a fee is charged','YesNo'),
284
('FilterBeforeOverdueReport','0','','Do not run overdue report until filter selected','YesNo'),
284
('FilterBeforeOverdueReport','0','','Do not run overdue report until filter selected','YesNo'),
285
('FilterSearchResultsByLoggedInBranch','0','','Option to filter location column on staff search results by logged in branch','YesNo'),
285
('FineNotifyAtCheckin','0',NULL,'If ON notify librarians of overdue fines on the items they are checking in.','YesNo'),
286
('FineNotifyAtCheckin','0',NULL,'If ON notify librarians of overdue fines on the items they are checking in.','YesNo'),
286
('FinePaymentAutoPopup','0',NULL,'If enabled, automatically display a print dialog for a payment receipt when making a payment.','YesNo'),
287
('FinePaymentAutoPopup','0',NULL,'If enabled, automatically display a print dialog for a payment receipt when making a payment.','YesNo'),
287
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
288
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
Lines 887-890 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
887
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
888
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
888
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
889
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
889
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
890
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
890
;
891
;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-2 / +7 lines)
Lines 128-133 Staff interface: Link Here
128
            - Open Document Spreadsheet (ODS) as download format in reports.
128
            - Open Document Spreadsheet (ODS) as download format in reports.
129
129
130
    Options:
130
    Options:
131
        -
132
            - pref: FilterSearchResultsByLoggedInBranch
133
              choices:
134
                  1: Do
135
                  0: "Don't"
136
            - add a filter to the location column on staff interface search results to filter items by the logged in user branch.
131
        -
137
        -
132
            - pref: viewMARC
138
            - pref: viewMARC
133
              choices:
139
              choices:
Lines 210-213 Staff interface: Link Here
210
                  "enforced": Enforce
216
                  "enforced": Enforce
211
                  "enabled": Enable
217
                  "enabled": Enable
212
                  "disabled": "Don't enable"
218
                  "disabled": "Don't enable"
213
            - two-factor authentication (2FA) for staff members.
219
            - two-factor authentication (2FA) for staff members.
214
- 

Return to bug 37883