Lines 407-413
foreach my $biblioNum (@biblionumbers) {
Link Here
|
407 |
my $ItemBorrowerReserveInfo = GetMemberDetails( $reservedfor, 0); |
407 |
my $ItemBorrowerReserveInfo = GetMemberDetails( $reservedfor, 0); |
408 |
|
408 |
|
409 |
# the item could be reserved for this borrower vi a host record, flag this |
409 |
# the item could be reserved for this borrower vi a host record, flag this |
410 |
if ($reservedfor eq $borrowernumber){ |
410 |
if ($reservedfor && $reservedfor eq $borrowernumber){ |
411 |
$itemLoopIter->{already_reserved} = 1; |
411 |
$itemLoopIter->{already_reserved} = 1; |
412 |
} |
412 |
} |
413 |
|
413 |
|
Lines 472-478
foreach my $biblioNum (@biblionumbers) {
Link Here
|
472 |
$policy_holdallowed = 0; |
472 |
$policy_holdallowed = 0; |
473 |
} |
473 |
} |
474 |
|
474 |
|
475 |
if (IsAvailableForItemLevelRequest($itemNum) and $policy_holdallowed and CanItemBeReserved($borrowernumber,$itemNum) and ($itemLoopIter->{already_reserved} ne 1)) { |
475 |
if (IsAvailableForItemLevelRequest($itemNum) and $policy_holdallowed and CanItemBeReserved($borrowernumber,$itemNum) and !$itemLoopIter->{already_reserved}) { |
476 |
$itemLoopIter->{available} = 1; |
476 |
$itemLoopIter->{available} = 1; |
477 |
$numCopiesAvailable++; |
477 |
$numCopiesAvailable++; |
478 |
} |
478 |
} |
479 |
- |
|
|