[Koha-cvs] koha/C4 Labels.pm [dev_week]

Mason James szrj1m at yahoo.com
Fri Nov 17 03:16:36 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Mason James <sushi>	06/11/17 02:16:36

Modified files:
	C4             : Labels.pm 

Log message:
	Code39 barcodes need to have string enclosed with leading/trailing '*'s
	http://search.cpan.org/~larslund/PDF-Reuse-Barcode-0.05/Barcode.pm#Code39

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Labels.pm?cvsroot=koha&only_with_tag=dev_week&r1=1.3.4.4&r2=1.3.4.5

Patches:
Index: Labels.pm
===================================================================
RCS file: /sources/koha/koha/C4/Labels.pm,v
retrieving revision 1.3.4.4
retrieving revision 1.3.4.5
diff -u -b -r1.3.4.4 -r1.3.4.5
--- Labels.pm	6 Oct 2006 01:55:11 -0000	1.3.4.4
+++ Labels.pm	17 Nov 2006 02:16:36 -0000	1.3.4.5
@@ -392,9 +392,10 @@
             PDF::Reuse::Barcode::Code39(
                 x => ( $x_pos + ( $width / 10 ) ),
                 y => ( $y_pos + ( $height / 10 ) ),
-                value => $barcode,
+                value => "*$barcode*",
                 ySize => ( .02 * $height ),
                 xSize => $xsize_ratio,
+                hide_asterisk => $xsize_ratio,
             );
         };
         if ($@) {





More information about the Koha-cvs mailing list