X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=labels%2Flabel-edit-layout.pl;h=299cd407ad56bc55d78719cd02ad608625f34bf0;hb=4bc2303598883b45a6198003ae160c393f8a5b8c;hp=0ed39a8b5163cd0816962fb0a88fe4b689a9a93a;hpb=a502aa1c76029927d1c3403b2430c86d75acf7c0;p=koha_gimpoz diff --git a/labels/label-edit-layout.pl b/labels/label-edit-layout.pl index 0ed39a8b51..299cd407ad 100755 --- a/labels/label-edit-layout.pl +++ b/labels/label-edit-layout.pl @@ -29,19 +29,19 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -my $layout = get_layout($layout_id); - my @barcode_types = get_barcode_types($layout_id); -my @printingtypes = get_printingtypes($layout_id); +my $layout = get_layout($layout_id); +my @barcode_types = get_barcode_types($layout_id); +my @printingtypes = get_printingtypes($layout_id); ### @printingtypes ### $layout -my $layoutname = $layout->{'layoutname'}; -my $layout_id = $layout->{'id'}; -my $guidebox = $layout->{'guidebox'}; -my $startlabel = $layout->{'startlabel'}; + $layout_id = $layout->{'id'}; # has it changed since we set it above? --joe +my $layoutname = $layout->{'layoutname'}; +my $guidebox = $layout->{'guidebox'}; +my $startlabel = $layout->{'startlabel'}; my @title = build_text_dropbox( $layout->{'title'} ); -my @subtitle = build_text_dropbox( $layout->{'subtitle'} ); +my @subtitle = build_text_dropbox( $layout->{'subtitle'} ); my @author = build_text_dropbox( $layout->{'author'} ); my @barcode = build_text_dropbox( $layout->{'barcode'} ); my @isbn = build_text_dropbox( $layout->{'isbn'} ); @@ -52,21 +52,18 @@ my @class = build_text_dropbox( $layout->{'class'} ); my @subclass = build_text_dropbox( $layout->{'subclass'} ); my @itemcallnumber = build_text_dropbox( $layout->{'itemcallnumber'} ); - ### @subclass $template->param( - barcode_types => \@barcode_types, - printingtypes => \@printingtypes, - - layoutname => $layoutname, - layout_id => $layout_id, - -guidebox => $guidebox, -startlabel => $startlabel, + barcode_types => \@barcode_types, + printingtypes => \@printingtypes, + layoutname => $layoutname, + layout_id => $layout_id, + guidebox => $guidebox, + startlabel => $startlabel, tx_title => \@title, - tx_subtitle => \@subtitle, + tx_subtitle => \@subtitle, tx_author => \@author, tx_isbn => \@isbn, tx_issn => \@issn,