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 276-281 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
276
('FallbackToSMSIfNoEmail', 0, 'Enable|Disable', 'Send messages by SMS if no patron email is defined', 'YesNo'),
276
('FallbackToSMSIfNoEmail', 0, 'Enable|Disable', 'Send messages by SMS if no patron email is defined', 'YesNo'),
277
('FeeOnChangePatronCategory','1','','If set, when a patron changes to a category with enrolment fee, a fee is charged','YesNo'),
277
('FeeOnChangePatronCategory','1','','If set, when a patron changes to a category with enrolment fee, a fee is charged','YesNo'),
278
('FilterBeforeOverdueReport','0','','Do not run overdue report until filter selected','YesNo'),
278
('FilterBeforeOverdueReport','0','','Do not run overdue report until filter selected','YesNo'),
279
('FilterSearchResultsByLoggedInBranch','0','','Option to filter location column on staff search results by logged in branch','YesNo'),
279
('FineNotifyAtCheckin','0',NULL,'If ON notify librarians of overdue fines on the items they are checking in.','YesNo'),
280
('FineNotifyAtCheckin','0',NULL,'If ON notify librarians of overdue fines on the items they are checking in.','YesNo'),
280
('FinePaymentAutoPopup','0',NULL,'If enabled, automatically display a print dialog for a payment receipt when making a payment.','YesNo'),
281
('FinePaymentAutoPopup','0',NULL,'If enabled, automatically display a print dialog for a payment receipt when making a payment.','YesNo'),
281
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
282
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
Lines 873-876 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
873
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
874
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
874
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
875
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
875
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
876
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
876
;
877
;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-2 / +7 lines)
Lines 134-139 Staff interface: Link Here
134
            - Open Document Spreadsheet (ODS) as download format in reports.
134
            - Open Document Spreadsheet (ODS) as download format in reports.
135
135
136
    Options:
136
    Options:
137
        -
138
            - pref: FilterSearchResultsByLoggedInBranch
139
              choices:
140
                  1: Do
141
                  0: "Don't"
142
            - add a filter to the location column on staff interface search results to filter items by the logged in user branch.
137
        -
143
        -
138
            - pref: viewMARC
144
            - pref: viewMARC
139
              choices:
145
              choices:
Lines 216-219 Staff interface: Link Here
216
                  "enforced": Enforce
222
                  "enforced": Enforce
217
                  "enabled": Enable
223
                  "enabled": Enable
218
                  "disabled": "Don't enable"
224
                  "disabled": "Don't enable"
219
            - two-factor authentication (2FA) for staff members.
225
            - two-factor authentication (2FA) for staff members.
220
- 

Return to bug 37883