Lines 8-16
return {
Link Here
|
8 |
my ($args) = @_; |
8 |
my ($args) = @_; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
10 |
|
10 |
|
11 |
$dbh->do(q{UPDATE creator_layouts SET scale_width = '0.800000' WHERE scale_width = '0.080000';}); |
11 |
my $affected = $dbh->do(q{UPDATE creator_layouts SET scale_width = '0.800000' WHERE scale_width = '0.080000';}); |
12 |
|
|
|
13 |
say $out "Changed the barcode width in patron card creator default layout to 80% if it was 8%"; |
14 |
|
12 |
|
|
|
13 |
if ($affected) { |
14 |
say_warning( |
15 |
$out, "Changed the barcode width in patron card creator default layout from 8% to 80%"; |
16 |
); |
17 |
} else { |
18 |
say_info( $out, "No patron card creator layouts found with 8% width, no changes required" ); |
19 |
} |
15 |
}, |
20 |
}, |
16 |
}; |
21 |
}; |
17 |
- |
|
|