Lines 510-520
sub CanItemBeReserved{
Link Here
|
510 |
} |
510 |
} |
511 |
|
511 |
|
512 |
# we check if it's ok or not |
512 |
# we check if it's ok or not |
513 |
if( $reservecount < $allowedreserves ){ |
513 |
if( $reservecount >= $allowedreserves ){ |
514 |
return 1; |
|
|
515 |
}else{ |
516 |
return 0; |
514 |
return 0; |
517 |
} |
515 |
} |
|
|
516 |
|
517 |
# If reservecount is ok, we check item branch if IndependentBranches is ON |
518 |
# and canreservefromotherbranches is OFF |
519 |
if ( C4::Context->preference('IndependentBranches') |
520 |
and !C4::Context->preference('canreservefromotherbranches') ) |
521 |
{ |
522 |
my $itembranch = $item->{homebranch}; |
523 |
if ($itembranch ne $borrower->{branchcode}) { |
524 |
return 0; |
525 |
} |
526 |
} |
527 |
|
528 |
return 1; |
518 |
} |
529 |
} |
519 |
#-------------------------------------------------------------------------------- |
530 |
#-------------------------------------------------------------------------------- |
520 |
=head2 GetReserveCount |
531 |
=head2 GetReserveCount |
521 |
- |
|
|