|
Lines 297-303
sub CanBookBeReserved{
Link Here
|
| 297 |
$canReserve = &CanItemBeReserved($borrowernumber, $itemnumber, $branchcode) |
297 |
$canReserve = &CanItemBeReserved($borrowernumber, $itemnumber, $branchcode) |
| 298 |
if ($canReserve->{status} eq 'OK') { #We can reserve this Item! } |
298 |
if ($canReserve->{status} eq 'OK') { #We can reserve this Item! } |
| 299 |
|
299 |
|
| 300 |
<<<<<<< HEAD |
|
|
| 301 |
@RETURNS { status => OK }, if the Item can be reserved. |
300 |
@RETURNS { status => OK }, if the Item can be reserved. |
| 302 |
{ status => ageRestricted }, if the Item is age restricted for this borrower. |
301 |
{ status => ageRestricted }, if the Item is age restricted for this borrower. |
| 303 |
{ status => damaged }, if the Item is damaged. |
302 |
{ status => damaged }, if the Item is damaged. |
|
Lines 306-322
sub CanBookBeReserved{
Link Here
|
| 306 |
{ status => notReservable }, if holds on this item are not allowed |
305 |
{ status => notReservable }, if holds on this item are not allowed |
| 307 |
{ status => libraryNotFound }, if given branchcode is not an existing library |
306 |
{ status => libraryNotFound }, if given branchcode is not an existing library |
| 308 |
{ status => libraryNotPickupLocation }, if given branchcode is not configured to be a pickup location |
307 |
{ status => libraryNotPickupLocation }, if given branchcode is not configured to be a pickup location |
| 309 |
======= |
308 |
{ status => cannotBeTransferred }, if branch transfer limit applies on given item and branchcode |
| 310 |
@RETURNS OK, if the Item can be reserved. |
|
|
| 311 |
ageRestricted, if the Item is age restricted for this borrower. |
| 312 |
damaged, if the Item is damaged. |
| 313 |
cannotReserveFromOtherBranches, if syspref 'canreservefromotherbranches' is OK. |
| 314 |
tooManyReserves, if the borrower has exceeded his maximum reserve amount. |
| 315 |
notReservable, if holds on this item are not allowed |
| 316 |
libraryNotFound if given branchcode is not an existing library |
| 317 |
libraryNotPickupLocation if given branchcode is not configured to be a pickup location |
| 318 |
cannotBeTransferred if branch transfer limit applies on given item and branchcode |
| 319 |
>>>>>>> Bug 7614: Check transfer limit in CanBookBeReserved and CanItemBeReserved |
| 320 |
|
309 |
|
| 321 |
=cut |
310 |
=cut |
| 322 |
|
311 |
|
| 323 |
- |
|
|