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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-print.tt (-1 / +1 lines)
Lines 22-28 Link Here
22
                        <fieldset>
22
                        <fieldset>
23
                            [% IF ( batche.label_ids ) %]
23
                            [% IF ( batche.label_ids ) %]
24
                                <legend>[% IF ( batche.label_count == 1 ) %][% batche.label_count | html %] single label[% ELSE %][% batche.label_count | html %] single labels[% END %]</legend>
24
                                <legend>[% IF ( batche.label_count == 1 ) %][% batche.label_count | html %] single label[% ELSE %][% batche.label_count | html %] single labels[% END %]</legend>
25
                                <a class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=0&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %]&amp;start_label=[% batche.start_label | html %]&amp;from=[% batche.from | html %]&amp;to=[% batche.to | html %]&amp;barcode_length=[% batche.barcode_length| html %]">Download as PDF</a>
25
                                <a class="document pdf" href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.label_ids | html %]">Download as PDF</a>
26
26
27
                                    <p><a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.label_ids | html %]">Download as CSV</a></p>
27
                                    <p><a class="document csv" href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id | html %]&amp;template_id=[% batche.template_id | html %]&amp;layout_id=[% batche.layout_id | html %][% batche.label_ids | html %]">Download as CSV</a></p>
28
28
(-)a/labels/label-create-pdf.pl (-1 / +2 lines)
Lines 56-62 print $cgi->header( -type => 'application/pdf', Link Here
56
                  );
56
                  );
57
57
58
our $pdf = C4::Creators::PDF->new(InitVars => 0);
58
our $pdf = C4::Creators::PDF->new(InitVars => 0);
59
warn Data::Dumper::Dumper( $batch_id );
59
my $batch = C4::Labels::Batch->retrieve(batch_id => $batch_id);
60
my $batch = C4::Labels::Batch->retrieve(batch_id => $batch_id);
61
warn Data::Dumper::Dumper( $batch );
60
our $template = C4::Labels::Template->retrieve(template_id => $template_id, profile_id => 1);
62
our $template = C4::Labels::Template->retrieve(template_id => $template_id, profile_id => 1);
61
my $layout = C4::Labels::Layout->retrieve(layout_id => $layout_id);
63
my $layout = C4::Labels::Layout->retrieve(layout_id => $layout_id);
62
64
63
- 

Return to bug 31220