|
Lines 511-517
sub handle_checkout {
Link Here
|
| 511 |
|
511 |
|
| 512 |
$patron_id = $fields->{(FID_PATRON_ID)}; |
512 |
$patron_id = $fields->{(FID_PATRON_ID)}; |
| 513 |
$item_id = $fields->{(FID_ITEM_ID)}; |
513 |
$item_id = $fields->{(FID_ITEM_ID)}; |
| 514 |
|
514 |
my $sc_fee_acknowledged = $fields->{ (FID_FEE_ACK) } eq 'Y'; |
| 515 |
|
515 |
|
| 516 |
if ($no_block eq 'Y') { |
516 |
if ($no_block eq 'Y') { |
| 517 |
# Off-line transactions need to be recorded, but there's |
517 |
# Off-line transactions need to be recorded, but there's |
|
Lines 525-531
sub handle_checkout {
Link Here
|
| 525 |
} else { |
525 |
} else { |
| 526 |
# Does the transaction date really matter for items that are |
526 |
# Does the transaction date really matter for items that are |
| 527 |
# checkout out while the terminal is online? I'm guessing 'no' |
527 |
# checkout out while the terminal is online? I'm guessing 'no' |
| 528 |
$status = $ils->checkout($patron_id, $item_id, $sc_renewal_policy); |
528 |
$status = $ils->checkout( $patron_id, $item_id, $sc_renewal_policy, $sc_fee_acknowledged ); |
| 529 |
} |
529 |
} |
| 530 |
|
530 |
|
| 531 |
$item = $status->item; |
531 |
$item = $status->item; |
|
Lines 585-590
sub handle_checkout {
Link Here
|
| 585 |
$resp .= add_field(FID_INST_ID, $inst); |
585 |
$resp .= add_field(FID_INST_ID, $inst); |
| 586 |
$resp .= add_field(FID_PATRON_ID, $patron_id); |
586 |
$resp .= add_field(FID_PATRON_ID, $patron_id); |
| 587 |
$resp .= add_field(FID_ITEM_ID, $item_id); |
587 |
$resp .= add_field(FID_ITEM_ID, $item_id); |
|
|
588 |
$resp .= maybe_add( FID_FEE_AMT, $status->fee() ); |
| 588 |
|
589 |
|
| 589 |
# If the item is valid, provide the title, otherwise |
590 |
# If the item is valid, provide the title, otherwise |
| 590 |
# leave it blank |
591 |
# leave it blank |
| 591 |
- |
|
|