From 388c60bff74c21ca0830dd4a5804b2b37a3cb0d9 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 12 Nov 2007 17:13:42 -0600 Subject: [PATCH] misc labels fixes * Corrected sample label data * Commented out debug warns and smart comments * Correct location of a template Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- installer/data/fr/2-Optionel/sample_labels.sql | 4 +++- labels/label-create-template.pl | 2 +- labels/label-edit-layout.pl | 2 +- labels/label-print-pdf.pl | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/installer/data/fr/2-Optionel/sample_labels.sql b/installer/data/fr/2-Optionel/sample_labels.sql index 65ac509093..befb293116 100644 --- a/installer/data/fr/2-Optionel/sample_labels.sql +++ b/installer/data/fr/2-Optionel/sample_labels.sql @@ -10,6 +10,8 @@ INSERT INTO `labels_templates` VALUES UNLOCK TABLES; LOCK TABLES `labels_conf` WRITE; /*!40000 ALTER TABLE `labels_conf` DISABLE KEYS */; -INSERT INTO `labels_conf` VALUES (5,'CODE39',2,3,0,0,0,0,4,1,0,0,1,'BIBBAR','biblio and barcode',1,NULL,NULL,0),(6,'CODE39',2,0,0,0,3,4,0,1,0,3,1,'BAR','alternating',1,1,NULL,0); +INSERT INTO `labels_conf` VALUES +(5,'CODE39',2,0,3,0,0,0,0,4,1,0,0,1,'BIBBAR','biblio and barcode',1,1,NULL,NULL,NULL,NULL), +(6,'CODE39',2,0,0,0,0,3,4,0,1,0,3,1,'BAR','alternating',1,1,NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `labels_conf` ENABLE KEYS */; UNLOCK TABLES; diff --git a/labels/label-create-template.pl b/labels/label-create-template.pl index 9ac01ec79e..fa7262f5cf 100755 --- a/labels/label-create-template.pl +++ b/labels/label-create-template.pl @@ -10,7 +10,7 @@ use HTML::Template; use POSIX; #use Data::Dumper; -use Smart::Comments; +#use Smart::Comments; my $dbh = C4::Context->dbh; my $query = new CGI; diff --git a/labels/label-edit-layout.pl b/labels/label-edit-layout.pl index 537afb888b..31951b5c29 100755 --- a/labels/label-edit-layout.pl +++ b/labels/label-edit-layout.pl @@ -20,7 +20,7 @@ my $layout_id = $query->param('layout_id'); my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { - template_name => "barcodes/label-edit-layout.tmpl", + template_name => "labels/label-edit-layout.tmpl", query => $query, type => "intranet", authnotrequired => 1, diff --git a/labels/label-print-pdf.pl b/labels/label-print-pdf.pl index 18769fe519..26bd0d7b66 100755 --- a/labels/label-print-pdf.pl +++ b/labels/label-print-pdf.pl @@ -19,7 +19,7 @@ print $cgi->header( -type => 'application/pdf', -attachment => 'barcode.pdf' ); my $spine_text = ""; -warn "label-print-pdf ***"; +#warn "label-print-pdf ***"; # get the printing settings my $template = GetActiveLabelTemplate(); @@ -142,7 +142,7 @@ else { } -warn "ROW COL $rowcount, $colcount"; +#warn "ROW COL $rowcount, $colcount"; #my $barcodetype; # = 'Code39'; -- 2.39.5