Lines 2836-2847
sub CanBookBeRenewed {
Link Here
|
2836 |
# by pushing all the elements onto an array and removing the duplicates. |
2836 |
# by pushing all the elements onto an array and removing the duplicates. |
2837 |
my @reservable; |
2837 |
my @reservable; |
2838 |
foreach my $b (@borrowernumbers) { |
2838 |
foreach my $b (@borrowernumbers) { |
2839 |
my ($borr) = C4::Members::GetMemberDetails($b); |
2839 |
my ($borr) = C4::Members::GetMember( borrowernumber => $b); |
2840 |
foreach my $i (@itemnumbers) { |
2840 |
foreach my $i (@itemnumbers) { |
2841 |
my $item = GetItem($i); |
2841 |
my $item = GetItem($i); |
2842 |
if ( IsAvailableForItemLevelRequest( $item, $borr ) |
2842 |
if ( !IsItemOnHoldAndFound($i) |
2843 |
&& CanItemBeReserved( $b, $i ) |
2843 |
&& IsAvailableForItemLevelRequest( $item, $borr ) |
2844 |
&& !IsItemOnHoldAndFound($i) ) |
2844 |
&& CanItemBeReserved( $b, $i ) ) |
2845 |
{ |
2845 |
{ |
2846 |
push( @reservable, $i ); |
2846 |
push( @reservable, $i ); |
2847 |
} |
2847 |
} |
2848 |
- |
|
|