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

(-)a/installer/data/mysql/atomicupdate/bug_40425.pl (+20 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "40425",
6
    description => "Add a system preference ShowPatronFirstnameIfDifferentThanPreferredname",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(
12
            q{
13
           INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
14
           ('ShowPatronFirstnameIfDifferentThanPreferredname','0',NULL,'If ON, a patrons firstname will also show in search results if different than their preferred name','YesNo')
15
        }
16
        );
17
18
        say $out "Added new system preference 'ShowPatronFirstnameIfDifferentThanPreferredname'";
19
    },
20
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 750-755 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
750
('ShowHeadingUse', '0', NULL, 'Show whether MARC21 authority record contains an established heading that conforms to descriptive cataloguing rules, and can therefore be used as a main/added entry, or subject, or series title', 'YesNo'),
750
('ShowHeadingUse', '0', NULL, 'Show whether MARC21 authority record contains an established heading that conforms to descriptive cataloguing rules, and can therefore be used as a main/added entry, or subject, or series title', 'YesNo'),
751
('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'),
751
('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'),
752
('showLastPatronCount', '10', '', 'How many patrons should showLastPatron remember', 'Integer'),
752
('showLastPatronCount', '10', '', 'How many patrons should showLastPatron remember', 'Integer'),
753
('ShowPatronFirstnameIfDifferentThanPreferredname','0','','If ON, a patrons firstname will also show in search results if different than their preferred name','YesNo'),
753
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
754
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
754
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
755
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
755
('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'),
756
('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +6 lines)
Lines 138-143 Patrons: Link Here
138
           class: integer
138
           class: integer
139
         - days. Leave empty to disable this behavior.
139
         - days. Leave empty to disable this behavior.
140
         - "<br><strong>NOTE:</strong> This system preference requires the misc/cronjobs/cleanup_database.pl cronjob. Ask your system administrator to schedule it."
140
         - "<br><strong>NOTE:</strong> This system preference requires the misc/cronjobs/cleanup_database.pl cronjob. Ask your system administrator to schedule it."
141
     -
142
         - pref: ShowPatronFirstnameIfDifferentThanPreferredname
143
           choices:
144
               1: Show
145
               0: "Don't show"
146
         - "a patron's firstname in search results if their preferred name is different."
141
147
142
    Membership expiry:
148
    Membership expiry:
143
     -
149
     -
144
- 

Return to bug 40245