[Koha-win32] Spine Label Printing

John Choo anchovies00 at yahoo.com
Wed Jan 24 02:28:58 CET 2007


Hi Rob,

Yes, we are running koha 2.2.7. (R0). This is the error from Apache log

-------------------------------------
[Wed Jan 24 08:54:11 2007] [error] [client 127.0.0.1] Premature end of
script headers: barcodesGenerator.pl, referer:
http://localhost:8080/cgi-bin/koha/barcodes/barcodes.pl
[Wed Jan 24 08:54:11 2007] [error] [client 127.0.0.1] Can't locate
PDF/API2/PDF/Utils.pm in @INC (@INC contains:
c:/usr/koha227/intranet/modules C:/usr/site/lib C:/usr/lib .) at
C:/usr/koha227/intranet/cgi-bin/koha/barcodes/barcodesGenerator.pl line 33.,
referer: http://localhost:8080/cgi-bin/koha/barcodes/barcodes.pl
[Wed Jan 24 08:54:11 2007] [error] [client 127.0.0.1] BEGIN
failed--compilation aborted at
C:/usr/koha227/intranet/cgi-bin/koha/barcodes/barcodesGenerator.pl line 33.,
referer: http://localhost:8080/cgi-bin/koha/barcodes/barcodes.pl
-------------------------------------
In which case, I updated barCodesGenerator.pl to import PDF::API2::Util;
instead of PDF::API2::PDF::Utils.

Run it again, this is what I got:
-------------------------------------
[Wed Jan 24 08:57:58 2007] [error] [client 127.0.0.1] Premature end of
script headers: barcodesGenerator.pl, referer:
http://localhost:8080/cgi-bin/koha/barcodes/barcodes.pl?error=1
[Wed Jan 24 08:57:58 2007] [error] [client 127.0.0.1] Unable to open
/tmp/183044-127.0.0.1-(From 1 to 100)-[24.1.2007]-[8:57:58].pdf for writing
at C:/usr/site/lib/PDF/API2/Basic/PDF/File.pm line 511., referer:
http://localhost:8080/cgi-bin/koha/barcodes/barcodes.pl?error=1
---------------------------------------

Now that was using the "default" template under Parameters->Barcode
Generator. Seems like there's no equivalent page to generate spine labels in
"default" template? I've tried to go directly to label-home.pl while still
in "default" template, this is the error:

---------------------------------------
[Wed Jan 24 09:20:04 2007] [error] [client 127.0.0.1] Premature end of
script headers: label-home.pl
[Wed Jan 24 09:20:04 2007] [error] [client 127.0.0.1] HTML::Template->new()
: Cannot open included file
c:\\usr\\koha227\\intranet\\htdocs\\intranet-tmpl/default/en/barcodes/label-home.tmpl
: file not found. at C:/usr/site/lib/HTML/Template.pm line 1632
[Wed Jan 24 09:20:04 2007] [error] [client 127.0.0.1]
\tHTML::Template::_init_template('HTML::Template=HASH(0x19018ec)') called at
C:/usr/site/lib/HTML/Template.pm line 1205
[Wed Jan 24 09:20:04 2007] [error] [client 127.0.0.1]
\tHTML::Template::_init('HTML::Template=HASH(0x19018ec)') called at
C:/usr/site/lib/HTML/Template.pm line 1099
[Wed Jan 24 09:20:04 2007] [error] [client 127.0.0.1]
\tHTML::Template::new('HTML::Template', 'filename',
'c:\\usr\\koha227\\intranet\\htdocs\\intranet-tmpl/default/en/barco...',
'die_on_bad_params', 0, 'global_vars', 1, 'path', 'ARRAY(0x2443d9c)', ...)
called at c:/usr/koha227/intranet/modules/C4/Output.pm line 77
[Wed Jan 24 09:20:04 2007] [error] [client 127.0.0.1]
\tC4::Output::gettemplate('barcodes/label-home.tmpl', 'intranet',
'CGI=HASH(0x225210)') called at c:/usr/koha227/intranet/modules/C4/Auth.pm
line 114
[Wed Jan 24 09:20:04 2007] [error] [client 127.0.0.1]
\tC4::Auth::get_template_and_user('HASH(0x23c9698)') called at
C:/usr/koha227/intranet/cgi-bin/koha/label-home.pl line 14
---------------------------------------

Good news is that we can generate the spine and barcodes with the "npl"
template. Looks like I've to mod some code as our call number is separated
into 050a + 050b. And the librarian would like to print a newline in between
050a and 050b with the Item Type at the top of the label.

Well, so much for my ranting. Appreciate any comments or directions.
Thanks Rob.

John


Rob Weir-2 wrote:
> 
> Hi John,
> What errors are you getting when you try to print? Does it fail to create
> the pdf file, or does it create the file and the file is not correct?
> 
> Are you running koha 2.2.7? If so the install package should have
> installed PDF-API2 version 0.55 for you. That version works to print bar
> code labels and spine labels on my system. I don't think you have to
> revert to the old version of PDF-API2.
> 
> Give me some more details and I will try to help.
> 
> Rob
> 
>>  -------Original Message-------
>>  From: John Choo <anchovies00 at yahoo.com>
>>  Subject: [Koha-win32] Spine Label Printing
>>  Sent: 23 Jan '07 04:44
>>  
>>  
>>  Hi,
>>  
>>  We would like to print the spine labels for the books, but it seems like
>> we
>>  need to install PDF 0.3r77 perl package from what I read in the other
>> posts.
>>  Is that true? As it is, we are getting error trying to generate the
>> barcodes
>>  & spine labels.
>>  
>>  If we do still need the PDF package, could anyone please send me the
>> package
>>  as I could not locate it anywhere online.
>>  
>>  Thanks,
>>  John
> 
> 
> _______________________________________________
> Koha-win32 mailing list
> Koha-win32 at nongnu.org
> http://lists.nongnu.org/mailman/listinfo/koha-win32
> 
> 

-- 
View this message in context: http://www.nabble.com/Spine-Label-Printing-tf3062290.html#a8553389
Sent from the Koha - Win32 mailing list archive at Nabble.com.






More information about the Koha-win32 mailing list