[Koha-win32] Win32 Patch & bulkmarcimport results

m.mason at people.net.au m.mason at people.net.au
Mon Jan 22 17:06:09 CET 2007


Dear Rob and all

Win32 patch applied with no errors.
When import first attempted, received error message:
C:\usr\koha227\scripts\misc\migration_tools>bulkmarcimport.pl
Can't locate object method "ignore_errors" via package 
"MARC::Charset" at 
C:\usr\koha227\scripts\misc\migration_tools\bulkmarcimport.pl line 24.

I had received this error message also before applying patch.
Had previously tried commenting out this line 24; then (in past), 
received the error message about not finding method 'encoding' in MARC::Record.

But this time, after applying patch, receiving 'ingore_errors' error 
message, and commenting out this line,
import proceeded!

4015 records imported.
When an author is searched in the OPAC and records examined, they look OK!!!

So the 'encoding' error when importing is solved.  Users need to 
solve the 'ignore_errors' error themselves by commenting out line 24.

I'm curious as to why Rob did not comment out line 24 as part of his patch.
He must have had a reason; since he recommended that Dave should 
comment it out.

Note also that in bulkmarcimport.pl at lines 7-23, a previous author 
("thd") inserted the section quoted below:
-- does it perhaps imply that  the line:
use MARC::Record;
and maybe also other lines like:
use MARC::Batch;
use MARC::Charset;
may be a kind of workaround, adopted because MARC::File::XML was not 
working properly?
Perhaps it works now??


Lines 7-24:
# Koha modules used
use MARC::File::USMARC;
# Uncomment the line below and use MARC::File::XML again when it works better.
# -- thd
# use MARC::File::XML;
use MARC::Record;
use MARC::Batch;
use MARC::Charset;

# According to kados, an undocumented feature of setting MARC::Charset to
# ignore_errors(1) is that errors are not ignored.  Instead of deleting the
# whole subfield when a character does not translate properly from MARC8 into
# UTF-8, just the problem characters are deleted.  This should solve at least
# some of the fixme problems for fMARC8ToUTF8().
#
# Problems remain if there are MARC 21 records where 000/09 is set 
incorrectly.
# -- thd.
#MARC::Charset->ignore_errors(1);

This seems to have a bearing on that troublesome line 24!


Thanks again Rob.


         Michael Mason.

(Rev. Dr.) Michael Mason C.Ss.R. S.T.M. M.Phil. Ph.D.
Research Fellow, Institute for the Advancement of Research
Director, ACBC-ACU Office of Pastoral Research
AUSTRALIAN CATHOLIC UNIVERSITY
115 Victoria Pde., Fitzroy 3065
Melbourne, Victoria, AUSTRALIA
Phone (ACU): +61 (3) 9953 3161
Fax: +61 (3) 9816 9805
Email:   m.mason at patrick.acu.edu.au
Website: http://dlibrary.acu.edu.au/research/ccls/home.htm
Australian Catholic University Limited ABN 15 050 192 660

Personal address (please use for postal mail):
10 Majella Court, Kew, Vic. 3101, Australia
Phone:+61 (3) 9817 9758
Fax:    +61 (3) 9816 9805
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-win32/attachments/20070123/2cce7a80/attachment-0001.htm>


More information about the Koha-win32 mailing list