|
Lines 400-406
sub _move_to_old {
Link Here
|
| 400 |
return Koha::Old::Hold->new( $hold_infos )->store; |
400 |
return Koha::Old::Hold->new( $hold_infos )->store; |
| 401 |
} |
401 |
} |
| 402 |
|
402 |
|
| 403 |
=head3 type |
403 |
=head3 to_api_mapping |
|
|
404 |
|
| 405 |
This method returns the mapping for representing a Koha::Hold object |
| 406 |
on the API. |
| 407 |
|
| 408 |
=cut |
| 409 |
|
| 410 |
sub to_api_mapping { |
| 411 |
return { |
| 412 |
reserve_id => 'hold_id', |
| 413 |
borrowernumber => 'patron_id', |
| 414 |
reservedate => 'hold_date', |
| 415 |
biblionumber => 'biblio_id', |
| 416 |
branchcode => 'pickup_library_id', |
| 417 |
notificationdate => undef, |
| 418 |
reminderdate => undef, |
| 419 |
cancellationdate => 'cancelation_date', |
| 420 |
reservenotes => 'notes', |
| 421 |
found => 'status', |
| 422 |
itemnumber => 'item_id', |
| 423 |
waitingdate => 'waiting_date', |
| 424 |
expirationdate => 'expiration_date', |
| 425 |
lowestPriority => 'lowest_priority', |
| 426 |
suspend => 'suspended', |
| 427 |
suspend_until => 'suspended_until', |
| 428 |
itemtype => 'item_type', |
| 429 |
item_level_hold => 'item_level', |
| 430 |
}; |
| 431 |
} |
| 432 |
|
| 433 |
=head2 Internal methods |
| 434 |
|
| 435 |
=head3 _type |
| 404 |
|
436 |
|
| 405 |
=cut |
437 |
=cut |
| 406 |
|
438 |
|