View | Details | Raw Unified | Return to bug 30648
Collapse All | Expand All

(-)a/Koha/Hold.pm (-18 / +19 lines)
Lines 1027-1051 on the API. Link Here
1027
1027
1028
sub to_api_mapping {
1028
sub to_api_mapping {
1029
    return {
1029
    return {
1030
        reserve_id       => 'hold_id',
1030
        reserve_id             => 'hold_id',
1031
        borrowernumber   => 'patron_id',
1031
        borrowernumber         => 'patron_id',
1032
        reservedate      => 'hold_date',
1032
        reservedate            => 'hold_date',
1033
        biblionumber     => 'biblio_id',
1033
        biblionumber           => 'biblio_id',
1034
        branchcode       => 'pickup_library_id',
1034
        deleted_biblionumber   => 'deleted_biblio_id',
1035
        notificationdate => undef,
1035
        branchcode             => 'pickup_library_id',
1036
        reminderdate     => undef,
1036
        notificationdate       => undef,
1037
        cancellationdate => 'cancellation_date',
1037
        reminderdate           => undef,
1038
        reservenotes     => 'notes',
1038
        cancellationdate       => 'cancellation_date',
1039
        found            => 'status',
1039
        reservenotes           => 'notes',
1040
        itemnumber       => 'item_id',
1040
        found                  => 'status',
1041
        waitingdate      => 'waiting_date',
1041
        itemnumber             => 'item_id',
1042
        expirationdate   => 'expiration_date',
1042
        waitingdate            => 'waiting_date',
1043
        expirationdate         => 'expiration_date',
1043
        patron_expiration_date => undef,
1044
        patron_expiration_date => undef,
1044
        lowestPriority   => 'lowest_priority',
1045
        lowestPriority         => 'lowest_priority',
1045
        suspend          => 'suspended',
1046
        suspend                => 'suspended',
1046
        suspend_until    => 'suspended_until',
1047
        suspend_until          => 'suspended_until',
1047
        itemtype         => 'item_type',
1048
        itemtype               => 'item_type',
1048
        item_level_hold  => 'item_level',
1049
        item_level_hold        => 'item_level',
1049
    };
1050
    };
1050
}
1051
}
1051
1052
(-)a/api/v1/swagger/definitions/hold.yaml (-1 / +3 lines)
Lines 16-21 properties: Link Here
16
  biblio_id:
16
  biblio_id:
17
    type: integer
17
    type: integer
18
    description: Internal biblio identifier
18
    description: Internal biblio identifier
19
  deleted_biblio_id:
20
    type: integer
21
    description: Internal deleted biblio identifier
19
  item_group_id:
22
  item_group_id:
20
    type:
23
    type:
21
      - string
24
      - string
22
- 

Return to bug 30648