Bug 7299 pass itemnumber in ILSDI holditem service

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit bc42bf97cb)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Alex Arnaud 2012-06-09 12:36:55 +02:00 committed by Jared Camins-Esakov
parent 3c958ab16f
commit ec46db8009
1 changed files with 4 additions and 4 deletions

View File

@ -675,8 +675,8 @@ sub HoldItem {
return { code => 'RecordNotFound' } if $$item{biblionumber} ne $$biblio{biblionumber};
# Check for item disponibility
my $canitembereserved = CanItemBeReserved( $borrowernumber, $itemnumber );
my $canbookbereserved = CanBookBeReserved( $borrowernumber, $biblionumber );
my $canitembereserved = C4::Reserves::CanItemBeReserved( $borrowernumber, $itemnumber );
my $canbookbereserved = C4::Reserves::CanBookBeReserved( $borrowernumber, $biblionumber );
return { code => 'NotHoldable' } unless $canbookbereserved and $canitembereserved;
my $branch;
@ -700,8 +700,8 @@ sub HoldItem {
}
# Add the reserve
# $branch, $borrowernumber, $biblionumber, $constraint, $bibitems, $priority, $notes, $title, $checkitem, $found
AddReserve( $branch, $borrowernumber, $biblionumber, 'a', undef, $rank, undef, $title, $itemnumber, $found );
# $branch,$borrowernumber,$biblionumber,$constraint,$bibitems,$priority,$resdate,$expdate,$notes,$title,$checkitem,$found
AddReserve( $branch, $borrowernumber, $biblionumber, 'a', undef, $rank, '', '', '', $title, $itemnumber, $found );
# Hashref building
my $out;