From a0f4cfd85c358d424b662d30849871ac413c267d Mon Sep 17 00:00:00 2001 From: Mason James Date: Sun, 15 Mar 2009 18:52:35 +1300 Subject: [PATCH] fixes error below... bookcount.pl: Illegal Date 'Item has no branch transfers record' does not match 'iso' format: yyyy-mm-dd at /home/mason/git/kap-k3-2/circ/bookcount.pl line 88 tested on 3.0.x Signed-off-by: Galen Charlton --- circ/bookcount.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/circ/bookcount.pl b/circ/bookcount.pl index 3f0743a782..4b2479b623 100755 --- a/circ/bookcount.pl +++ b/circ/bookcount.pl @@ -23,6 +23,7 @@ use strict; use CGI; +use C4::Debug; use C4::Context; use C4::Circulation; use C4::Output; @@ -49,7 +50,7 @@ my ( $lastmove, $message ) = lastmove($itm); my $lastdate; my $count; if ( not $lastmove ) { - $lastdate = $message; +# $lastdate = $message; $count = issuessince( $itm, 0 ); } else { @@ -81,6 +82,8 @@ foreach my $branchcode ( keys %$branches ) { push( @branchloop, \%linebranch ); } +### $lastdate + $template->param( biblionumber => $biblionumber, title => $data->{'title'}, @@ -89,7 +92,7 @@ $template->param( biblioitemnumber => $bi, homebranch => $homebranch, holdingbranch => $holdingbranch, - lastdate => format_date($lastdate), + lastdate => $lastdate ? format_date($lastdate) : $message, count => $count, branchloop => \@branchloop, ); -- 2.39.5