Koha/labels/label-select-pdf.pl
Paul POULAIN a502aa1c76 HTML::Template => HTML::Template::Pro
HTML::Template is no more used, some were remaining,
fixing the "use ...;" to H::T::Pro only

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-02 14:55:55 -06:00

31 lines
663 B
Perl
Executable file

#!/usr/bin/perl
use lib '/usr/local/opus-dev/intranet/modules';
use C4::Context("/etc/koha-opus-dev.conf");
use strict;
use CGI;
use C4::Labels;
use C4::Auth;
use C4::Output;
use C4::Context;
use HTML::Template::Pro;
use Data::Dumper;
# get the printing settings
my $conf_data = get_label_options();
my $cgi = new CGI;
my $papertype = $conf_data->{'papertype'};
warn $papertype;
if ( $papertype eq "Gaylord8511" ) {
warn "GAY";
print $cgi->redirect("/cgi-bin/koha/barcodes/label-print-pdf.pl");
}
elsif ( $papertype eq "OPUS-Dot Matrix" ) {
warn "OPUS labes";
print $cgi->redirect("/cgi-bin/koha/barcodes/label-print-opus-pdf.pl");
}