Lines 89-95
$template->param(
Link Here
|
89 |
biblioitemnumber => $bi, |
89 |
biblioitemnumber => $bi, |
90 |
homebranch => $homebranch, |
90 |
homebranch => $homebranch, |
91 |
holdingbranch => $holdingbranch, |
91 |
holdingbranch => $holdingbranch, |
92 |
lastdate => $lastdate ? format_date($lastdate) : $message, |
92 |
lastdate => $lastdate ? format_date($lastdate) : 0, |
93 |
count => $count, |
93 |
count => $count, |
94 |
branchloop => $branchloop, |
94 |
branchloop => $branchloop, |
95 |
); |
95 |
); |
Lines 112-124
sub lastmove {
Link Here
|
112 |
); |
112 |
); |
113 |
$sth->execute($itemnumber); |
113 |
$sth->execute($itemnumber); |
114 |
my ($date) = $sth->fetchrow_array; |
114 |
my ($date) = $sth->fetchrow_array; |
115 |
return ( 0, "Item has no branch transfers record" ) if not $date; |
115 |
return ( 0, 1 ) if not $date; |
116 |
$sth = $dbh->prepare( |
116 |
$sth = $dbh->prepare( |
117 |
"SELECT * FROM branchtransfers WHERE branchtransfers.itemnumber=? and branchtransfers.datearrived=?" |
117 |
"SELECT * FROM branchtransfers WHERE branchtransfers.itemnumber=? and branchtransfers.datearrived=?" |
118 |
); |
118 |
); |
119 |
$sth->execute( $itemnumber, $date ); |
119 |
$sth->execute( $itemnumber, $date ); |
120 |
my ($data) = $sth->fetchrow_hashref; |
120 |
my ($data) = $sth->fetchrow_hashref; |
121 |
return ( 0, "Item has no branch transfers record" ) if not $data; |
121 |
return ( 0, 1 ) if not $data; |
122 |
return ( $data, "" ); |
122 |
return ( $data, "" ); |
123 |
} |
123 |
} |
124 |
|
124 |
|