9 use HTML::Template::Pro;
15 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
17 template_name => "labels/label-create-layout.tmpl",
21 flagsrequired => { catalogue => 1 },
26 my $data = get_label_options();
27 my $op = $query->param('op');
29 my $active_template = GetActiveLabelTemplate();
30 my @label_templates = GetAllLabelTemplates();
31 my @printingtypes = get_printingtypes();
32 my @layouts = get_layouts();
33 my @barcode_types = get_barcode_types();
34 my @batches = get_batches();
38 $template->param( guidebox => 1 ) if ( $data->{'guidebox'} );
39 $template->param( "papertype_$data->{'papertype'}" => 1 );
40 $template->param( "$data->{'barcodetype'}_checked" => 1 );
41 $template->param( "startrow" . $data->{'startrow'} . "_checked" => 1 );
45 active_template => $data->{'active_template'},
46 label_templates => \@label_templates,
47 barcode_types => \@barcode_types,
48 printingtypes => \@printingtypes,
49 layout_loop => \@layouts,
53 barcodetype => $data->{'barcodetype'},
54 papertype => $data->{'papertype'},
55 tx_author => $data->{'author'},
56 tx_barcode => $data->{'barcode'},
57 tx_title => $data->{'title'},
58 tx_subtitle => $data->{'subtitle'},
59 tx_isbn => $data->{'isbn'},
60 tx_issn => $data->{'issn'},
61 tx_itemtype => $data->{'itemtype'},
62 tx_dewey => $data->{'dewey'},
63 tx_class => $data->{'class'},
64 tx_subclass => $data->{'subclass'},
65 tx_itemcallnumber => $data->{'itemcallnumber'},
66 startlabel => $data->{'startlabel'},
68 fontsize => $active_template->{'fontsize'},
71 output_html_with_http_headers $query, $cookie, $template->output;