biblioitemnumber => $bi,
homebranch => $homebranch,
holdingbranch => $holdingbranch,
- lastdate => $lastdate ? format_date($lastdate) : $message,
+ lastdate => $lastdate ? format_date($lastdate) : 0,
count => $count,
branchloop => $branchloop,
);
);
$sth->execute($itemnumber);
my ($date) = $sth->fetchrow_array;
- return ( 0, "Item has no branch transfers record" ) if not $date;
+ return ( 0, 1 ) if not $date;
$sth = $dbh->prepare(
"SELECT * FROM branchtransfers WHERE branchtransfers.itemnumber=? and branchtransfers.datearrived=?"
);
$sth->execute( $itemnumber, $date );
my ($data) = $sth->fetchrow_hashref;
- return ( 0, "Item has no branch transfers record" ) if not $data;
+ return ( 0, 1 ) if not $data;
return ( $data, "" );
}
<tr><td>[% homebranch %]</td>
<td>[% holdingbranch %]</td>
- <td>[% lastdate %]</td>
+ <td>[% IF ( lastdate ) %][% lastdate %][% ELSE %]Item has no transfer record[% END %]</td>
<td>[% count %]</td>
</tr>
</table>
<span style="display:none;">[% branchloo.seen %][% branchloo.seentime %]</span>
<!-- invisible span for eventual use by tablesorter -->
[% branchloo.seen %] [% branchloo.seentime %]
- [% ELSE %]Never
+ [% ELSE %]
+ <span>Never</span>
[% END %]
</td>
</tr>