|
Lines 290-295
sub CanBookBeReserved{
Link Here
|
| 290 |
cannotReserveFromOtherBranches, if syspref 'canreservefromotherbranches' is OK. |
290 |
cannotReserveFromOtherBranches, if syspref 'canreservefromotherbranches' is OK. |
| 291 |
tooManyReserves, if the borrower has exceeded his maximum reserve amount. |
291 |
tooManyReserves, if the borrower has exceeded his maximum reserve amount. |
| 292 |
notReservable, if holds on this item are not allowed |
292 |
notReservable, if holds on this item are not allowed |
|
|
293 |
expired, if patron is expired and expired patrons are not allowed to place holds |
| 293 |
|
294 |
|
| 294 |
=cut |
295 |
=cut |
| 295 |
|
296 |
|
|
Lines 308-313
sub CanItemBeReserved {
Link Here
|
| 308 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
309 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
| 309 |
my $borrower = $patron->unblessed; |
310 |
my $borrower = $patron->unblessed; |
| 310 |
|
311 |
|
|
|
312 |
if ($patron->category->effective_BlockExpiredPatronOpacActions && $patron->is_expired) { |
| 313 |
return 'expired'; |
| 314 |
} |
| 315 |
|
| 311 |
# If an item is damaged and we don't allow holds on damaged items, we can stop right here |
316 |
# If an item is damaged and we don't allow holds on damaged items, we can stop right here |
| 312 |
return 'damaged' |
317 |
return 'damaged' |
| 313 |
if ( $item->{damaged} |
318 |
if ( $item->{damaged} |
| 314 |
- |
|
|