[Koha-cvs] koha/barcodes label-manager.pl [dev_week]

Mason James szrj1m at yahoo.com
Tue Jul 10 07:32:35 CEST 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Mason James <sushi>	07/07/10 05:32:35

Modified files:
	barcodes       : label-manager.pl 

Log message:
	 adding active-table code, tooo

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/barcodes/label-manager.pl?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.1.2.8&r2=1.1.2.1.2.9

Patches:
Index: label-manager.pl
===================================================================
RCS file: /sources/koha/koha/barcodes/label-manager.pl,v
retrieving revision 1.1.2.1.2.8
retrieving revision 1.1.2.1.2.9
diff -u -b -r1.1.2.1.2.8 -r1.1.2.1.2.9
--- label-manager.pl	9 Jul 2007 18:08:42 -0000	1.1.2.1.2.8
+++ label-manager.pl	10 Jul 2007 05:32:34 -0000	1.1.2.1.2.9
@@ -37,9 +37,18 @@
 my $printingtype   = $query->param('printingtype');
 my $guidebox       = $query->param('guidebox');
 my $fontsize       = $query->param('fontsize');
-my $batch_id   =     $query->param('batch_id');
 my @itemnumber     = $query->param('itemnumber');
 
+
+# little block for displaying active layout/template/batch in templates
+# ----------
+my $batch_id     = $query->param('batch_id');
+my $active_layout = get_active_layout();
+my $active_template = GetActiveLabelTemplate();
+my $active_layout_name = $active_layout->{'layoutname'};
+my $active_template_name = $active_template->{'tmpl_code'};
+# ----------
+
 $batch_id = 1 if !$batch_id;
 
 my ($itemnumber) = @itemnumber if (scalar(@itemnumber) == 1);
@@ -147,6 +156,10 @@
 #my $labels_remaining = ( $tot_labels - $start_results );
 
 $template->param(
+    batch_id => $batch_id,
+    active_layout_name => $active_layout_name,
+    active_template_name => $active_template_name,
+
     resultsloop => \@resultsloop,
     batches => \@batches,
 batch_id => $batch_id,





More information about the Koha-cvs mailing list