View | Details | Raw Unified | Return to bug 7299
Collapse All | Expand All

(-)a/C4/ILSDI/Services.pm (-5 / +4 lines)
Lines 676-683 sub HoldItem { Link Here
676
    return { code => 'RecordNotFound' } if $$item{biblionumber} ne $$biblio{biblionumber};
676
    return { code => 'RecordNotFound' } if $$item{biblionumber} ne $$biblio{biblionumber};
677
677
678
    # Check for item disponibility
678
    # Check for item disponibility
679
    my $canitembereserved = CanItemBeReserved( $borrowernumber, $itemnumber );
679
    my $canitembereserved = C4::Reserves::CanItemBeReserved( $borrowernumber, $itemnumber );
680
    my $canbookbereserved = CanBookBeReserved( $borrowernumber, $biblionumber );
680
    my $canbookbereserved = C4::Reserves::CanBookBeReserved( $borrowernumber, $biblionumber );
681
    return { code => 'NotHoldable' } unless $canbookbereserved and $canitembereserved;
681
    return { code => 'NotHoldable' } unless $canbookbereserved and $canitembereserved;
682
682
683
    my $branch;
683
    my $branch;
Lines 701-708 sub HoldItem { Link Here
701
    }
701
    }
702
702
703
    # Add the reserve
703
    # Add the reserve
704
    #          $branch, $borrowernumber, $biblionumber, $constraint, $bibitems,  $priority, $notes, $title, $checkitem,  $found
704
    # $branch,$borrowernumber,$biblionumber,$constraint,$bibitems,$priority,$resdate,$expdate,$notes,$title,$checkitem,$found
705
    AddReserve( $branch, $borrowernumber, $biblionumber, 'a', undef, $rank, undef, $title, $itemnumber, $found );
705
    AddReserve( $branch, $borrowernumber, $biblionumber, 'a', undef, $rank, '', '', '', $title, $itemnumber, $found );
706
706
707
    # Hashref building
707
    # Hashref building
708
    my $out;
708
    my $out;
709
- 

Return to bug 7299