Lines 71-77
for ( C4::Context->preference("OPACShowHoldQueueDetails") ) {
Link Here
|
71 |
m/priority/ and $show_priority = 1; |
71 |
m/priority/ and $show_priority = 1; |
72 |
} |
72 |
} |
73 |
|
73 |
|
74 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
74 |
my $patron = Koha::Patrons->find( $borrowernumber, { prefetch => ['categorycode'] } ); |
75 |
my $category = $patron->category; |
75 |
my $category = $patron->category; |
76 |
|
76 |
|
77 |
my $can_place_hold_if_available_at_pickup = C4::Context->preference('OPACHoldsIfAvailableAtPickup'); |
77 |
my $can_place_hold_if_available_at_pickup = C4::Context->preference('OPACHoldsIfAvailableAtPickup'); |
Lines 84-90
unless ( $can_place_hold_if_available_at_pickup ) {
Link Here
|
84 |
} |
84 |
} |
85 |
|
85 |
|
86 |
# check if this user can place a reserve, -1 means use sys pref, 0 means dont block, 1 means block |
86 |
# check if this user can place a reserve, -1 means use sys pref, 0 means dont block, 1 means block |
87 |
if ( $patron->category->effective_BlockExpiredPatronOpacActions ) { |
87 |
if ( $category->effective_BlockExpiredPatronOpacActions ) { |
88 |
|
88 |
|
89 |
if ( $patron->is_expired ) { |
89 |
if ( $patron->is_expired ) { |
90 |
|
90 |
|
Lines 96-102
if ( $patron->category->effective_BlockExpiredPatronOpacActions ) {
Link Here
|
96 |
} |
96 |
} |
97 |
|
97 |
|
98 |
# Pass through any reserve charge |
98 |
# Pass through any reserve charge |
99 |
my $reservefee = $patron->category->reservefee; |
99 |
my $reservefee = $category->reservefee; |
100 |
if ( $reservefee > 0){ |
100 |
if ( $reservefee > 0){ |
101 |
$template->param( RESERVE_CHARGE => $reservefee); |
101 |
$template->param( RESERVE_CHARGE => $reservefee); |
102 |
} |
102 |
} |
103 |
- |
|
|