[Koha] Problem in running "bulkmarcimport.pl" script

Rob Weir robweir at alum.drexel.edu
Fri Jan 5 10:39:53 NZDT 2007


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
>>   
>


More information about the Koha mailing list