Lines 1931-1938
sub searchResults {
Link Here
|
1931 |
# FIXME: to avoid having the query the database like this, and to make |
1931 |
# FIXME: to avoid having the query the database like this, and to make |
1932 |
# the in transit status count as unavailable for search limiting, |
1932 |
# the in transit status count as unavailable for search limiting, |
1933 |
# should map transit status to record indexed in Zebra. |
1933 |
# should map transit status to record indexed in Zebra. |
1934 |
# |
1934 |
|
1935 |
($transfertwhen, $transfertfrom, $transfertto) = C4::Circulation::GetTransfers($item->{itemnumber}); |
1935 |
my $item_object = Koha::Items->find($item->{itemnumber}); |
|
|
1936 |
my $transfer = defined($item_object) ? $item_object->get_transfer : undef; |
1937 |
( $transfertwhen, $transfertfrom, $transfertto ) = |
1938 |
defined($transfer) |
1939 |
? ( |
1940 |
$transfer->datesent, $transfer->frombranch, |
1941 |
$transfer->tobranch |
1942 |
) |
1943 |
: ( '', '', '' ); |
1936 |
$reservestatus = C4::Reserves::GetReserveStatus( $item->{itemnumber} ); |
1944 |
$reservestatus = C4::Reserves::GetReserveStatus( $item->{itemnumber} ); |
1937 |
} |
1945 |
} |
1938 |
|
1946 |
|
1939 |
- |
|
|