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

Mason James szrj1m at yahoo.com
Sat Oct 20 18:00:20 CEST 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Mason James <sushi>	07/10/20 16:00:19

Modified files:
	barcodes       : label-print-pdf.pl 

Log message:
	replaced other  DrawSpineText() calls with draw_text_block_manual()

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/barcodes/label-print-pdf.pl?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.2.2.16&r2=1.1.2.2.2.17

Patches:
Index: label-print-pdf.pl
===================================================================
RCS file: /sources/koha/koha/barcodes/label-print-pdf.pl,v
retrieving revision 1.1.2.2.2.16
retrieving revision 1.1.2.2.2.17
diff -u -b -r1.1.2.2.2.16 -r1.1.2.2.2.17
--- label-print-pdf.pl	20 Oct 2007 06:45:07 -0000	1.1.2.2.2.16
+++ label-print-pdf.pl	20 Oct 2007 16:00:19 -0000	1.1.2.2.2.17
@@ -160,8 +160,13 @@
 
         DrawBarcode( $x_pos, $barcode_y, $barcode_height, $label_width,
             $barcode, $barcodetype );
-        DrawSpineText( $y_pos, $text_height, $fontsize, $x_pos,
-            $left_text_margin, $text_wrap_cols, \$item, \$conf_data );
+
+
+
+  draw_text_block_manual(
+        $x_pos ,   $y_pos ,   $label_width,   $label_height,
+        $fontsize, 0,  $left_text_margin , 'l',   @fields
+    );
 
         CalcNextLabelPos();
 
@@ -171,8 +176,11 @@
         my $barcode_height = $label_height / 2;
         DrawBarcode( $x_pos, $y_pos, $barcode_height, $label_width, $barcode,
             $barcodetype );
-        DrawSpineText( $y_pos, $label_height, $fontsize, $x_pos,
-            $left_text_margin, $text_wrap_cols, \$item, \$conf_data );
+
+  draw_text_block_manual(
+        $x_pos ,   $y_pos ,   $label_width,   $label_height,
+        $fontsize, 0,  $left_text_margin , 'l',   @fields
+    );
 
         CalcNextLabelPos();
     }
@@ -183,8 +191,14 @@
             $barcodetype );
         CalcNextLabelPos();
         drawbox( $x_pos, $y_pos, $label_width, $label_height ) if $guidebox;
-        DrawSpineText( $y_pos, $label_height, $fontsize, $x_pos,
-            $left_text_margin, $text_wrap_cols, \$item, \$conf_data );
+#        DrawSpineText( $y_pos, $label_height, $fontsize, $x_pos,
+#            $left_text_margin, $text_wrap_cols, \$item, \$conf_data );
+
+  draw_text_block_manual(
+        $x_pos ,   $y_pos ,   $label_width,   $label_height,
+        $fontsize, 0,  $left_text_margin , 'l',   @fields
+    );
+
 
         CalcNextLabelPos();
     }
@@ -205,15 +219,8 @@
 =cut
 
   draw_text_block_manual(
-        $x_pos ,
-         $y_pos ,
-         $label_width,
-        $label_height,
-        $fontsize,
-        0,
-        $left_text_margin ,
-        'l',
-        @fields
+        $x_pos ,   $y_pos ,   $label_width,   $label_height,
+        $fontsize, 0,  $left_text_margin , 'l',   @fields
     );
 
 





More information about the Koha-cvs mailing list