[Koha] koha barcode labels - too much space between text and barcode

Mason James mason.loves.sushi at gmail.com
Fri Jan 16 21:18:40 NZDT 2009


On 2009/01/16, at 4:33 PM, Jeffrey LePage wrote:

>  Hello all,
>
> I'm trying to print out barcodes labels.  The problem is that,  
> whatever I try, I get labels with too much space between the text  
> (title, call number, etc.) and the actual barcode.  They all look  
> like this:
>
> title
> call number
> <blank line>
> <blank line>
> <blank line>
> <barcode>
>
> As a result, the text does not fit on our labels.
>
> Has anyone run into this problem?
>
> We're running Koha 3.0.



Yes, i have experienced this bug recently too.

FYI: heres the patch - which i've just mailed to patches at koha.org

---
  C4/Labels.pm |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/C4/Labels.pm b/C4/Labels.pm
index 79d5251..65c62a7 100644
--- a/C4/Labels.pm
+++ b/C4/Labels.pm
@@ -1098,6 +1098,7 @@ sub DrawSpineText {
              }
              # loop for each string line
              foreach my $str (@strings) {
+                next if $str eq '';
                  my $hPos = 0;
                  my $stringwidth = prStrWidth($str, $fontname,  
$fontsize);
                  if ( $$conf_data->{'text_justify'} eq 'R' ) {
-- 
1.5.6.5


More information about the Koha mailing list