Lines 1-15
Link Here
|
1 |
use Modern::Perl; |
1 |
use Modern::Perl; |
2 |
|
2 |
|
3 |
return { |
3 |
return { |
4 |
bug_number => 35131, |
4 |
bug_number => 35131, |
5 |
description => "Add preference ShowBarcodeOnPatronRecord", |
5 |
description => "Add preference ShowBarcodeOnPatronRecord", |
6 |
up => sub { |
6 |
up => sub { |
7 |
my ($args) = @_; |
7 |
my ($args) = @_; |
8 |
my ($dbh, $out) = @$args{qw(dbh out)}; |
8 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
9 |
$dbh->do(q{ |
9 |
$dbh->do( |
|
|
10 |
q{ |
10 |
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type` ) VALUES |
11 |
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 |
('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 |
} |
|
|
14 |
); |
13 |
say $out "Added new system preference 'ShowBarcodeOnPatronRecord'"; |
15 |
say $out "Added new system preference 'ShowBarcodeOnPatronRecord'"; |
14 |
}, |
16 |
}, |
15 |
}; |
17 |
}; |