Re: [Koha] Problem in running "bulkmarcimport.pl" script
I still have not received any response on this inquiry. Could someone please verify if the 2.2.7 version of bulkmarcimport.pl runs correctly on a linux system and if so what version of MARC-Record is loaded? Is anyone aware of any problems with certain versions of the MARC-Record module? Thanks much! Rob
-------Original Message------- From: Rob Weir <robweir@alum.drexel.edu> Subject: Re: [Koha] Problem in running "bulkmarcimport.pl" script Sent: 04 Jan '07 21:39
I think everyone may have been on holiday when I sent this last week, since I received no response. Is anyone around now that could help us with the bulkmarcimport.pl script?
Thanks, Rob
Rob Weir wrote:
I get the same error when running bulkmarcimport.pl on my system. I don't think I am missing any perl modules.
Is there a bug in the code (see below - Arnab includes the block of code giving the error) or is it possible that we have the wrong version of MARC-Record? I notice there is a good bit of discussion on the Evergreen list about problems with different versions of MARC-Record and some versions not being compatible with the Evergreen system. What is the recommended version of MARC-Record for best compatibility with koha?
By the way, I went back to the previous version of bulkmarcimport.pl that was included in koha 2.2.5 and it runs without any problems. It seems to be loading the data, but I'm not sure it is doing everything it should. Is the older version of the script still compatible with koha 2.2.7?
Thanks, Rob
arnab wrote:
Hi, All,
When I'm trying to run the script "bulkmarcimport.pl" it showing the error.......
C:\usr\koha227\scripts\misc\migration_tools>bulkmarcimport.pl -file t.mrc Can't locate object method "encoding" via package "MARC::Record" at C:\usr\koha227\scripts\misc\migration_tools\bulkmarcimport.pl line 218.
bulkmarcimport.pl 216 if ($marcFlavour eq 'MARC21') { 217 my $tag000_pos09; 218 if ($record->encoding() eq 'UTF-8') { 219 if ($verbose) { 220 print "\nRecord $i encoding is UTF-8\n"; 221 $tag000_pos09 = substr ($record->leader, 9, 1); 222 $ .......
Could anybody help me.
With Regards, Arnab
Rob Weir wrote:
I still have not received any response on this inquiry. Could someone please verify if the 2.2.7 version of bulkmarcimport.pl runs correctly on a linux system and if so what version of MARC-Record is loaded? Is anyone aware of any problems with certain versions of the MARC-Record module?
Hi Rob Sorry about the delay, combination of the xmas holiday break, a visiting mother in law, and an 8 week old son :) Yes it does work on linux, and yes there are problems with MARC::Record. What you want is the latest version from sourceforge, the version at CPAN is very old and has some bugs. Chris
Hi Chris: Thanks for the help with the MARC modules. Are you using the latest CVS versions of MARC-Record and MARC_Charset from the MARC.pm project at Sourceforge? Or are you using one of the earlier "stable" versions listed under the project's file download page? What about MARC-XML? Are you getting that from Sourceforge as well? If so, the CVS version? I didn't realize that the koha project was using CVS versions of some modules. I guess I just assumed the latest versions from CPAN would work. Other than the three modules that I mentioned above, are there any modules that need to use other than the latest release version available from CPAN? What about XML-SAX? Are there some tricks for getting the right version of that? I think I have the 2.2.7 bulkmarcimport.pl running using MARC-Record 2.0RC1 from the files page at Sourceforge and MARC_Charset 0.92 from the CVS at Sourceforge. Earlier, I tried the 0.92 version of MARC_Charset from CPAN and even though the version number is the same, it is missing the ignore_errors method that koha's bulkmarcrecord is calling at line #24. Thanks, Rob Chris Cormack wrote:
Hi Rob
Yes it does work on linux, and yes there are problems with MARC::Record. What you want is the latest version from sourceforge, the version at CPAN is very old and has some bugs.
Chris _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Rob Weir wrote:
Hi Chris: Thanks for the help with the MARC modules. Are you using the latest CVS versions of MARC-Record and MARC_Charset from the MARC.pm project at Sourceforge? Or are you using one of the earlier "stable" versions listed under the project's file download page?
What about MARC-XML? Are you getting that from Sourceforge as well? If so, the CVS version?
I didn't realize that the koha project was using CVS versions of some modules. I guess I just assumed the latest versions from CPAN would work.
Hi Rob It may have all changed since that last message to, the MARC::Record module has gotten a new maintainer who is updating (if he has already updated) the version on CPAN. Ideally all the modules should be the CPAN version, and I think the rest are. Joshua can correct me though. Chris -- Chris Cormack Katipo Communications Programmer www.katipo.co.nz 027 4500 789
participants (2)
-
Chris Cormack -
Rob Weir