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

(-)a/installer/data/mysql/atomicupdate/bug_8352.sql (+1 lines)
Lines 1-4 Link Here
1
ALTER TABLE reserves ADD printed DATETIME NULL AFTER suspend_until;
1
ALTER TABLE reserves ADD printed DATETIME NULL AFTER suspend_until;
2
ALTER TABLE old_reserves ADD printed DATETIME NULL AFTER suspend_until;
2
3
3
INSERT INTO  letter ( module, code,  branchcode, name, is_html, title, content ) VALUES (
4
INSERT INTO  letter ( module, code,  branchcode, name, is_html, title, content ) VALUES (
4
    'reserves',  'HOLD_PLACED_PRINT',  '',  'Hold Placed ( Auto-Print )',  '0',  'Hold Placed ( Auto-Print )',  'Hold to pull at <<branches.branchname>>
5
    'reserves',  'HOLD_PLACED_PRINT',  '',  'Hold Placed ( Auto-Print )',  '0',  'Hold Placed ( Auto-Print )',  'Hold to pull at <<branches.branchname>>
(-)a/misc/cronjobs/holds/print_holds.pl (-1 / +12 lines)
Lines 39-53 use Koha::Database; Link Here
39
my $help    = 0;
39
my $help    = 0;
40
my $test    = 0;
40
my $test    = 0;
41
my $verbose = 0;
41
my $verbose = 0;
42
my $confirm = 0;
42
my @printers;
43
my @printers;
43
GetOptions(
44
GetOptions(
44
    "help|?"      => \$help,
45
    "help|?"      => \$help,
45
    "verbose|v"   => \$verbose,
46
    "verbose|v"   => \$verbose,
46
    "test|t"      => \$test,
47
    "test|t"      => \$test,
48
    "confirm|c"   => \$confirm,
47
    "printer|p=s" => \@printers,
49
    "printer|p=s" => \@printers,
48
);
50
);
49
pod2usage(1) if $help;
51
pod2usage(1) if $help;
50
pod2usage(1) unless @printers;
52
pod2usage(1) unless @printers;
53
pod2usage(1) unless ( $test || $confirm );
54
pod2usage(1) if ( $test && $confirm );
51
55
52
my $schema = Koha::Database->new()->schema();
56
my $schema = Koha::Database->new()->schema();
53
57
Lines 151-156 e.g. print_holds.pl --printer MPL:1 --printer CPL:2 Link Here
151
would add printers for branchcodes MPL and CPL. If a printer is not defined for a given branch, notices for
155
would add printers for branchcodes MPL and CPL. If a printer is not defined for a given branch, notices for
152
that branch will not be printed.
156
that branch will not be printed.
153
157
158
=item B<--test>
159
160
Run in test mode. Holds will not actually be printed.
161
162
=item B<--confirm>
163
164
Run in production mode. Holds will be printed to printers.
165
154
=head1 DESCRIPTION
166
=head1 DESCRIPTION
155
167
156
B<This program> will print on-demand notices for items in the holds queue as they appear.
168
B<This program> will print on-demand notices for items in the holds queue as they appear.
157
- 

Return to bug 8352