Lines 744-752
sub HoldItem {
Link Here
|
744 |
return { code => 'RecordNotFound' } if $$item{biblionumber} ne $biblio->biblionumber; |
744 |
return { code => 'RecordNotFound' } if $$item{biblionumber} ne $biblio->biblionumber; |
745 |
|
745 |
|
746 |
# Check for item disponibility |
746 |
# Check for item disponibility |
747 |
my $canitembereserved = C4::Reserves::CanItemBeReserved( $borrowernumber, $itemnumber )->{status}; |
747 |
# CanItemBeReserved codes are passed back too. |
748 |
my $canbookbereserved = C4::Reserves::CanBookBeReserved( $borrowernumber, $biblionumber )->{status}; |
748 |
my $canbookbereserved = C4::Reserves::CanBookBeReserved( $borrowernumber, $biblionumber )->{status}; |
749 |
return { code => $canitembereserved } unless $canitembereserved eq 'OK'; |
|
|
750 |
return { code => $canbookbereserved } unless $canbookbereserved eq 'OK'; |
749 |
return { code => $canbookbereserved } unless $canbookbereserved eq 'OK'; |
751 |
|
750 |
|
752 |
# Pickup branch management |
751 |
# Pickup branch management |