Lines 357-362
sub CanItemBeReserved {
Link Here
|
357 |
$branchfield = "items.homebranch"; |
357 |
$branchfield = "items.homebranch"; |
358 |
$branchcode = $item->homebranch; |
358 |
$branchcode = $item->homebranch; |
359 |
} |
359 |
} |
|
|
360 |
elsif ( $controlbranch eq "ItemHoldingLibrary" ) { |
361 |
$branchfield = "items.holdingbranch"; |
362 |
$branchcode = $item->{holdingbranch}; |
363 |
} |
360 |
elsif ( $controlbranch eq "PatronLibrary" ) { |
364 |
elsif ( $controlbranch eq "PatronLibrary" ) { |
361 |
$branchfield = "borrowers.branchcode"; |
365 |
$branchfield = "borrowers.branchcode"; |
362 |
$branchcode = $borrower->{branchcode}; |
366 |
$branchcode = $borrower->{branchcode}; |
Lines 2019-2024
sub GetReservesControlBranch {
Link Here
|
2019 |
|
2023 |
|
2020 |
my $branchcode = |
2024 |
my $branchcode = |
2021 |
( $reserves_control eq 'ItemHomeLibrary' ) ? $item->{'homebranch'} |
2025 |
( $reserves_control eq 'ItemHomeLibrary' ) ? $item->{'homebranch'} |
|
|
2026 |
: ( $reserves_control eq 'ItemHoldingLibrary' ) ? $item->{'holdingbranch'} |
2022 |
: ( $reserves_control eq 'PatronLibrary' ) ? $borrower->{'branchcode'} |
2027 |
: ( $reserves_control eq 'PatronLibrary' ) ? $borrower->{'branchcode'} |
2023 |
: undef; |
2028 |
: undef; |
2024 |
|
2029 |
|
Lines 2123-2128
sub GetMaxPatronHoldsForRecord {
Link Here
|
2123 |
my $itemtype = $item->effective_itemtype(); |
2128 |
my $itemtype = $item->effective_itemtype(); |
2124 |
|
2129 |
|
2125 |
$branchcode = $item->homebranch if ( $controlbranch eq "ItemHomeLibrary" ); |
2130 |
$branchcode = $item->homebranch if ( $controlbranch eq "ItemHomeLibrary" ); |
|
|
2131 |
$branchcode = $item->holdingbranch if ( $controlbranch eq "ItemHoldingLibrary" ); |
2126 |
|
2132 |
|
2127 |
my $rule = GetHoldRule( $categorycode, $itemtype, $branchcode ); |
2133 |
my $rule = GetHoldRule( $categorycode, $itemtype, $branchcode ); |
2128 |
my $holds_per_record = $rule ? $rule->{holds_per_record} : 0; |
2134 |
my $holds_per_record = $rule ? $rule->{holds_per_record} : 0; |