projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 14402: (QA followup) Add notes to usage text about --fees
[koha.git]
/
misc
/
cronjobs
/
serialsUpdate.pl
diff --git
a/misc/cronjobs/serialsUpdate.pl
b/misc/cronjobs/serialsUpdate.pl
index
ff26ce9
..
9cc3014
100755
(executable)
--- a/
misc/cronjobs/serialsUpdate.pl
+++ b/
misc/cronjobs/serialsUpdate.pl
@@
-32,6
+32,7
@@
use C4::Context;
use C4::Dates qw/format_date format_date_in_iso/;
use C4::Debug;
use C4::Serials;
use C4::Dates qw/format_date format_date_in_iso/;
use C4::Debug;
use C4::Serials;
+use C4::Log;
use Date::Calc qw/Date_to_Days check_date/;
use Getopt::Long;
use Date::Calc qw/Date_to_Days check_date/;
use Getopt::Long;
@@
-77,6
+78,8
@@
GetOptions(
pod2usage(1) if $help;
pod2usage( -verbose => 2 ) if $man;
pod2usage(1) if $help;
pod2usage( -verbose => 2 ) if $man;
+cronlogaction();
+
$verbose and !$confirm and print "### Database will not be modified ###\n";
if ( $note && $nonote ) {
$verbose and !$confirm and print "### Database will not be modified ###\n";
if ( $note && $nonote ) {
@@
-128,7
+131,7
@@
while ( my $issue = $sth->fetchrow_hashref ) {
{
$confirm
and ModSerialStatus( $issue->{serialid}, $issue->{serialseq},
{
$confirm
and ModSerialStatus( $issue->{serialid}, $issue->{serialseq},
- $issue->{planneddate}, $issue->{publisheddate},
+ $issue->{planneddate}, $issue->{publisheddate},
$issue->{publisheddatetext},
3, $note );
$verbose
and print "Serial issue with id=" . $issue->{serialid} . " updated\n";
3, $note );
$verbose
and print "Serial issue with id=" . $issue->{serialid} . " updated\n";