fix for #380
This commit is contained in:
parent
427bbdcf6d
commit
e46bf8e102
|
|
@ -9,7 +9,6 @@ use MARC::Record;
|
|||
use MARC::Batch;
|
||||
use C4::Context;
|
||||
use C4::Biblio;
|
||||
use Time::HiRes qw(gettimeofday);
|
||||
|
||||
use Getopt::Long;
|
||||
my ( $input_marc_file, $number) = ('',0);
|
||||
|
|
@ -37,7 +36,7 @@ die;
|
|||
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $i=0;
|
||||
my $starttime = gettimeofday;
|
||||
my $starttime = time();
|
||||
#1st of all, find item MARC tag.
|
||||
my ($tagfield,$tagsubfield) = &MARCfind_marc_from_kohafield($dbh,"items.itemnumber");
|
||||
# $dbh->do("lock tables biblio write, biblioitems write, items write, marc_biblio write, marc_subfield_table write, marc_blob_subfield write, marc_word write, marc_subfield_structure write, stopwords write");
|
||||
|
|
@ -71,5 +70,5 @@ while (my ($bibid)= $sth->fetchrow) {
|
|||
}
|
||||
}
|
||||
# $dbh->do("unlock tables");
|
||||
my $timeneeded = gettimeofday - $starttime;
|
||||
my $timeneeded = time() - $starttime;
|
||||
print "$i MARC record done in $timeneeded seconds\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue