koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Mason James
Subject: [Koha-cvs] koha/barcodes label-templates.pl [dev_week]
Date: Tue, 10 Jul 2007 05:31:48 +0000

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

Modified files:
        barcodes       : label-templates.pl 

Log message:
        adding active-table code

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

Patches:
Index: label-templates.pl
===================================================================
RCS file: /sources/koha/koha/barcodes/Attic/label-templates.pl,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -b -r1.1.2.3 -r1.1.2.4
--- label-templates.pl  10 Jul 2007 02:53:28 -0000      1.1.2.3
+++ label-templates.pl  10 Jul 2007 05:31:48 -0000      1.1.2.4
@@ -39,6 +39,19 @@
     }
 );
 
+
+# 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'};
+# ----------
+
+
+
+
 my @resultsloop;
 
 
@@ -57,6 +70,11 @@
     @resultsloop = GetAllLabelTemplates();
 
 $template->param(
+
+    batch_id => $batch_id,
+    active_layout_name => $active_layout_name,
+    active_template_name => $active_template_name,
+
     resultsloop => address@hidden,
 
     intranetcolorstylesheet =>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]