projects
/
srvgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 28553: (QA follow-up) default to auto renew email when cron switched used
[srvgit]
/
misc
/
cronjobs
/
build_browser_and_cloud.pl
diff --git
a/misc/cronjobs/build_browser_and_cloud.pl
b/misc/cronjobs/build_browser_and_cloud.pl
index
d6df1be
..
c8b1261
100755
(executable)
--- a/
misc/cronjobs/build_browser_and_cloud.pl
+++ b/
misc/cronjobs/build_browser_and_cloud.pl
@@
-3,23
+3,17
@@
use strict;
#use warnings; FIXME - Bug 2505
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 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 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);
my ( $input_marc_file, $number) = ('',0);
my ($version, $confirm,$field,$batch,$max_digits,$cloud_tag);
@@
-91,8
+85,9
@@
while ((my ($biblionumber)= $sth->fetchrow)) {
print "." unless $batch;
#now, parse the record, extract the item fields, and store them in somewhere else.
my $Koharecord;
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{
eval{
- $Koharecord =
GetMarcBiblio({ biblionumber => $biblionumber });
+ $Koharecord =
$biblio->metadata->record
};
if($@){
warn 'pb when getting biblio '.$i.' : '.$@;
};
if($@){
warn 'pb when getting biblio '.$i.' : '.$@;