|
Lines 351-362
sub is_suspended {
Link Here
|
| 351 |
|
351 |
|
| 352 |
=head3 cancel |
352 |
=head3 cancel |
| 353 |
|
353 |
|
| 354 |
my $cancel_hold = $hold->cancel(); |
354 |
my $cancel_hold = $hold->cancel( |
|
|
355 |
{ |
| 356 |
[ charge_cancel_fee => 1||0, ] |
| 357 |
[ cancellation_reason => $cancellation_reason, ] |
| 358 |
} |
| 359 |
); |
| 355 |
|
360 |
|
| 356 |
Cancel a hold: |
361 |
Cancel a hold: |
| 357 |
- The hold will be moved to the old_reserves table with a priority=0 |
362 |
- The hold will be moved to the old_reserves table with a priority=0 |
| 358 |
- The priority of other holds will be updated |
363 |
- The priority of other holds will be updated |
| 359 |
- The patron will be charge (see ExpireReservesMaxPickUpDelayCharge) if the charge_cancel_fee parameter is set |
364 |
- The patron will be charge (see ExpireReservesMaxPickUpDelayCharge) if the charge_cancel_fee parameter is set |
|
|
365 |
- The canceled hold will have the cancellation reason added to old_reserves.cancellation_reason if one is passed in |
| 360 |
- a CANCEL HOLDS log will be done if the pref HoldsLog is on |
366 |
- a CANCEL HOLDS log will be done if the pref HoldsLog is on |
| 361 |
|
367 |
|
| 362 |
=cut |
368 |
=cut |
| 363 |
- |
|
|