Lines 392-397
sub CanItemBeReserved {
Link Here
|
392 |
$branchfield = "items.homebranch"; |
392 |
$branchfield = "items.homebranch"; |
393 |
$branchcode = $item->homebranch; |
393 |
$branchcode = $item->homebranch; |
394 |
} |
394 |
} |
|
|
395 |
elsif ( $controlbranch eq "ItemHoldingLibrary" ) { |
396 |
$branchfield = "items.holdingbranch"; |
397 |
$branchcode = $item->holdingbranch; |
398 |
} |
395 |
elsif ( $controlbranch eq "PatronLibrary" ) { |
399 |
elsif ( $controlbranch eq "PatronLibrary" ) { |
396 |
$branchfield = "borrowers.branchcode"; |
400 |
$branchfield = "borrowers.branchcode"; |
397 |
$branchcode = $borrower->{branchcode}; |
401 |
$branchcode = $borrower->{branchcode}; |
Lines 2098-2103
sub GetReservesControlBranch {
Link Here
|
2098 |
|
2102 |
|
2099 |
my $branchcode = |
2103 |
my $branchcode = |
2100 |
( $reserves_control eq 'ItemHomeLibrary' ) ? $item->{'homebranch'} |
2104 |
( $reserves_control eq 'ItemHomeLibrary' ) ? $item->{'homebranch'} |
|
|
2105 |
: ( $reserves_control eq 'ItemHoldingLibrary' ) ? $item->{'holdingbranch'} |
2101 |
: ( $reserves_control eq 'PatronLibrary' ) ? $borrower->{'branchcode'} |
2106 |
: ( $reserves_control eq 'PatronLibrary' ) ? $borrower->{'branchcode'} |
2102 |
: undef; |
2107 |
: undef; |
2103 |
|
2108 |
|
Lines 2202-2207
sub GetMaxPatronHoldsForRecord {
Link Here
|
2202 |
my $itemtype = $item->effective_itemtype(); |
2207 |
my $itemtype = $item->effective_itemtype(); |
2203 |
|
2208 |
|
2204 |
$branchcode = $item->homebranch if ( $controlbranch eq "ItemHomeLibrary" ); |
2209 |
$branchcode = $item->homebranch if ( $controlbranch eq "ItemHomeLibrary" ); |
|
|
2210 |
$branchcode = $item->holdingbranch if ( $controlbranch eq "ItemHoldingLibrary" ); |
2205 |
|
2211 |
|
2206 |
my $rule = GetHoldRule( $categorycode, $itemtype, $branchcode ); |
2212 |
my $rule = GetHoldRule( $categorycode, $itemtype, $branchcode ); |
2207 |
my $holds_per_record = $rule ? $rule->{holds_per_record} : 0; |
2213 |
my $holds_per_record = $rule ? $rule->{holds_per_record} : 0; |