fixing typo error
authortgarip1957 <tgarip1957>
Fri, 19 May 2006 23:17:42 +0000 (23:17 +0000)
committertgarip1957 <tgarip1957>
Fri, 19 May 2006 23:17:42 +0000 (23:17 +0000)
misc/marc_into_authority.pl

index 9c679bb..1df7f36 100644 (file)
@@ -47,7 +47,7 @@ while (my ($authid,$authtypecode)=$sth->fetchrow ){
 my ($authidfield,$authidsubfield)=AUTHfind_marc_from_kohafield($dbh,"auth_header.authid",$authtypecode);
 my ($authidfield,$authtypesubfield)=AUTHfind_marc_from_kohafield($dbh,"auth_header.authtypecode",$authtypecode);
 ##Both authid and authtypecode is expected to be in the same field. Modify if other requirements arise
-       $record->add_fields($authfield,'','',$authidsubfield=>$authid,$authtypesubfield=>$authtypecode);
+       $record->add_fields($authidfield,'','',$authidsubfield=>$authid,$authtypesubfield=>$authtypecode);
 $sth2->execute($record->as_usmarc,$authid);
 $timeneeded = gettimeofday - $starttime unless ($i % 1000);
        print "$i in $timeneeded s\n" unless ($i % 1000);