@@ -, +, @@ --- C4/ILSDI/Services.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/C4/ILSDI/Services.pm +++ a/C4/ILSDI/Services.pm @@ -115,7 +115,6 @@ sub GetAvailability { foreach my $id ( split( / /, $cgi->param('id') ) ) { if ( $cgi->param('id_type') eq "item" ) { my ( $biblionumber, $status, $msg, $location ) = _availability($id); - $out .= " \n"; $out .= " \n"; $out .= " \n"; @@ -125,6 +124,7 @@ sub GetAvailability { $out .= " " . $status . "\n"; if ($msg) { $out .= " " . $msg . "\n"; } if ($location) { $out .= " " . $location . "\n"; } + if ($duedate) { $out .= " " . $duedate . "\n"; } $out .= " \n"; $out .= " \n"; $out .= " \n"; @@ -782,7 +782,10 @@ sub _availability { if ( $item->{'notforloan'} ) { return ( $biblionumber, 'not available', 'Not for loan', $location ); } elsif ( $item->{'onloan'} ) { - return ( $biblionumber, 'not available', 'Checked out', $location ); + return ( + $biblionumber, 'not available', 'Checked out', + $location, $item->{'onloan'} + ); } elsif ( $item->{'itemlost'} ) { return ( $biblionumber, 'not available', 'Item lost', $location ); } elsif ( $item->{'wthdrawn'} ) { --