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 ShowFirstIfDifferentThanPreferred",
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
           ('ShowFirstIfDifferentThanPreferred','0',NULL,'If ON, a patrons firstname will also show in results if different than their preferred name','YesNo')
15
        }
16
        );
17
18
        say $out "Added new system preference 'ShowFirstIfDifferentThanPreferred'";
19
    },
20
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 745-750 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
745
('ShelfBrowserUsesLocation','1','1','Use the item location when finding items for the shelf browser.','YesNo'),
745
('ShelfBrowserUsesLocation','1','1','Use the item location when finding items for the shelf browser.','YesNo'),
746
('ShowAllCheckins', '0', '', 'Show all checkins', 'YesNo'),
746
('ShowAllCheckins', '0', '', 'Show all checkins', 'YesNo'),
747
('ShowComponentRecords', 'nowhere', 'nowhere|staff|opac|both','In which record detail pages to show list of the component records, as linked via 773','Choice'),
747
('ShowComponentRecords', 'nowhere', 'nowhere|staff|opac|both','In which record detail pages to show list of the component records, as linked via 773','Choice'),
748
('ShowFirstIfDifferentThanPreferred','0','','If ON, a patrons firstname will also show in results if different than their preferred name','YesNo'),
748
('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'),
749
('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'),
749
('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'),
750
('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'),
750
('showLastPatronCount', '10', '', 'How many patrons should showLastPatron remember', 'Integer'),
751
('showLastPatronCount', '10', '', 'How many patrons should showLastPatron remember', 'Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +6 lines)
Lines 136-141 Patrons: Link Here
136
           class: integer
136
           class: integer
137
         - days. Leave empty to disable this behavior.
137
         - days. Leave empty to disable this behavior.
138
         - "<br><strong>NOTE:</strong> This system preference requires the misc/cronjobs/cleanup_database.pl cronjob. Ask your system administrator to schedule it."
138
         - "<br><strong>NOTE:</strong> This system preference requires the misc/cronjobs/cleanup_database.pl cronjob. Ask your system administrator to schedule it."
139
     -
140
         - pref: ShowFirstIfDifferentThanPreferred
141
           choices:
142
               1: Show
143
               0: Hide
144
         - "a patron's firstname in search results if their preferred name is different."
139
145
140
    Membership expiry:
146
    Membership expiry:
141
     -
147
     -
142
- 

Return to bug 40245