Lines 976-988
sub CheckReserves {
Link Here
|
976 |
if ( $res->{'itemnumber'} == $itemnumber && $res->{'priority'} == 0) { |
976 |
if ( $res->{'itemnumber'} == $itemnumber && $res->{'priority'} == 0) { |
977 |
return ( "Waiting", $res, \@reserves ); # Found it |
977 |
return ( "Waiting", $res, \@reserves ); # Found it |
978 |
} else { |
978 |
} else { |
979 |
# Lazy fetch for borrower and item. We only need to know about the patron and item |
|
|
980 |
# each and every time if we are using LocalHoldsPriority. This is a great place to |
981 |
# leverage the inherent lazy fetching of DBIx::Class. |
982 |
my $borrowerinfo; |
979 |
my $borrowerinfo; |
983 |
my $iteminfo; |
980 |
my $iteminfo; |
984 |
|
|
|
985 |
my $local_hold_match; |
981 |
my $local_hold_match; |
|
|
982 |
|
986 |
if ($LocalHoldsPriority) { |
983 |
if ($LocalHoldsPriority) { |
987 |
$borrowerinfo = C4::Members::GetMember( borrowernumber => $res->{'borrowernumber'} ); |
984 |
$borrowerinfo = C4::Members::GetMember( borrowernumber => $res->{'borrowernumber'} ); |
988 |
$iteminfo = C4::Items::GetItem($itemnumber); |
985 |
$iteminfo = C4::Items::GetItem($itemnumber); |