use strict;
use CGI;
+use C4::Debug;
use C4::Context;
use C4::Circulation;
use C4::Output;
my $lastdate;
my $count;
if ( not $lastmove ) {
- $lastdate = $message;
+# $lastdate = $message;
$count = issuessince( $itm, 0 );
}
else {
push( @branchloop, \%linebranch );
}
+### $lastdate
+
$template->param(
biblionumber => $biblionumber,
title => $data->{'title'},
biblioitemnumber => $bi,
homebranch => $homebranch,
holdingbranch => $holdingbranch,
- lastdate => format_date($lastdate),
+ lastdate => $lastdate ? format_date($lastdate) : $message,
count => $count,
branchloop => \@branchloop,
);