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();
36 if ($op = 'add_layout') {
44 $template->param( guidebox => 1 ) if ( $data->{'guidebox'} );
45 $template->param( "papertype_$data->{'papertype'}" => 1 );
46 $template->param( "$data->{'barcodetype'}_checked" => 1 );
47 $template->param( "startrow" . $data->{'startrow'} . "_checked" => 1 );
52 active_template => $data->{'active_template'},
53 label_templates => \@label_templates,
54 barcode_types => \@barcode_types,
55 printingtypes => \@printingtypes,
56 layout_loop => \@layouts,
60 barcodetype => $data->{'barcodetype'},
61 papertype => $data->{'papertype'},
63 tx_author => $data->{'author'},
64 tx_barcode => $data->{'barcode'},
65 tx_title => $data->{'title'},
66 tx_subtitle => $data->{'subtitle'},
67 tx_isbn => $data->{'isbn'},
68 tx_issn => $data->{'issn'},
69 tx_itemtype => $data->{'itemtype'},
70 tx_dewey => $data->{'dewey'},
71 tx_class => $data->{'class'},
72 tx_subclass => $data->{'subclass'},
73 tx_itemcallnumber => $data->{'itemcallnumber'},
75 startlabel => $data->{'startlabel'},
76 fontsize => $active_template->{'fontsize'},
78 intranetcolorstylesheet =>
79 C4::Context->preference("intranetcolorstylesheet"),
80 intranetstylesheet => C4::Context->preference("intranetstylesheet"),
81 IntranetNav => C4::Context->preference("IntranetNav"),
84 output_html_with_http_headers $query, $cookie, $template->output;