use strict;
#use warnings; FIXME - Bug 2505
-BEGIN {
- # find Koha's Perl modules
- # test carefully before changing this
- use FindBin;
- eval { require "$FindBin::Bin/../kohalib.pl" };
-}
use Koha::Script -cron;
use C4::Koha;
use C4::Context;
-use C4::Biblio;
use Date::Calc;
use Time::HiRes qw(gettimeofday);
use ZOOM;
use MARC::File::USMARC;
use Getopt::Long;
use C4::Log;
+use Koha::Biblios;
my ( $input_marc_file, $number) = ('',0);
my ($version, $confirm,$field,$batch,$max_digits,$cloud_tag);
print "." unless $batch;
#now, parse the record, extract the item fields, and store them in somewhere else.
my $Koharecord;
+ my $biblio = Koha::Biblios->find($biblionumber);
eval{
- $Koharecord = GetMarcBiblio({ biblionumber => $biblionumber });
+ $Koharecord = $biblio->metadata->record
};
if($@){
warn 'pb when getting biblio '.$i.' : '.$@;