Lines 1894-1901
sub searchResults {
Link Here
|
1894 |
# FIXME: to avoid having the query the database like this, and to make |
1894 |
# FIXME: to avoid having the query the database like this, and to make |
1895 |
# the in transit status count as unavailable for search limiting, |
1895 |
# the in transit status count as unavailable for search limiting, |
1896 |
# should map transit status to record indexed in Zebra. |
1896 |
# should map transit status to record indexed in Zebra. |
1897 |
# |
1897 |
|
1898 |
($transfertwhen, $transfertfrom, $transfertto) = C4::Circulation::GetTransfers($item->{itemnumber}); |
1898 |
my $item_object = Koha::Items->find($item->{itemnumber}); |
|
|
1899 |
my $transfer = defined($item_object) ? $item_object->get_transfer : undef; |
1900 |
( $transfertwhen, $transfertfrom, $transfertto ) = |
1901 |
defined($transfer) |
1902 |
? ( |
1903 |
$transfer->datesent, $transfer->frombranch, |
1904 |
$transfer->tobranch |
1905 |
) |
1906 |
: ( '', '', '' ); |
1899 |
$reservestatus = C4::Reserves::GetReserveStatus( $item->{itemnumber} ); |
1907 |
$reservestatus = C4::Reserves::GetReserveStatus( $item->{itemnumber} ); |
1900 |
} |
1908 |
} |
1901 |
|
1909 |
|
1902 |
- |
|
|