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

(-)a/installer/data/mysql/atomicupdate/bug_35131.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => 35131,
5
    description => "Add preference ShowBarcodeOnPatronRecord",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{
10
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type` ) VALUES
11
('ShowBarcodeOnPatronRecord', '0', '|0|Code39|COOP2of5|EAN13|EAN8|IATA2of5|Industrial2of5|ITF|Matrix2of5|NW7|QRcode|UPCA|UPCE', 'Show a patron carnumber as a barcode on the patron record ', 'Choice')
12
        });
13
        say $out "Added new system preference 'ShowBarcodeOnPatronRecord'";
14
    },
15
};
16
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 681-686 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
681
('MaxComponentRecords', '300', '','Max number of component records to display','Integer'),
681
('MaxComponentRecords', '300', '','Max number of component records to display','Integer'),
682
('ShowHeadingUse', '0', NULL, 'Show whether 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'),
682
('ShowHeadingUse', '0', NULL, 'Show whether 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'),
683
('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'),
683
('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'),
684
('ShowBarcodeOnPatronRecord','|0|Code39|COOP2of5|EAN13|EAN8|IATA2of5|Industrial2of5|ITF|Matrix2of5|NW7|QRcode|UPCA|UPCE','0','Show a patron\'s carnumber as a barcode on the patron record','Choice'),
684
('showLastPatronCount', '10', '', 'How many patrons should showLastPatron remember', 'Integer'),
685
('showLastPatronCount', '10', '', 'How many patrons should showLastPatron remember', 'Integer'),
685
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
686
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
686
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
687
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
687
- 

Return to bug 35131