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

(-)a/C4/Reserves.pm (+2 lines)
Lines 192-197 sub AddReserve { Link Here
192
    my $found          = $params->{found};
192
    my $found          = $params->{found};
193
    my $itemtype       = $params->{itemtype};
193
    my $itemtype       = $params->{itemtype};
194
    my $non_priority   = $params->{non_priority};
194
    my $non_priority   = $params->{non_priority};
195
    my $item_group_id  = $params->{item_group_id};
195
196
196
    $resdate ||= dt_from_string;
197
    $resdate ||= dt_from_string;
197
198
Lines 240-245 sub AddReserve { Link Here
240
        {
241
        {
241
            borrowernumber => $borrowernumber,
242
            borrowernumber => $borrowernumber,
242
            biblionumber   => $biblionumber,
243
            biblionumber   => $biblionumber,
244
            item_group_id  => $item_group_id,
243
            reservedate    => $resdate,
245
            reservedate    => $resdate,
244
            branchcode     => $branch,
246
            branchcode     => $branch,
245
            priority       => $priority,
247
            priority       => $priority,
(-)a/Koha/REST/V1/Holds.pm (+2 lines)
Lines 70-75 sub add { Link Here
70
        my $item;
70
        my $item;
71
71
72
        my $biblio_id         = $body->{biblio_id};
72
        my $biblio_id         = $body->{biblio_id};
73
        my $item_group_id     = $body->{item_group_id};
73
        my $pickup_library_id = $body->{pickup_library_id};
74
        my $pickup_library_id = $body->{pickup_library_id};
74
        my $item_id           = $body->{item_id};
75
        my $item_id           = $body->{item_id};
75
        my $patron_id         = $body->{patron_id};
76
        my $patron_id         = $body->{patron_id};
Lines 197-202 sub add { Link Here
197
                found            => undef,                # TODO: Why not?
198
                found            => undef,                # TODO: Why not?
198
                itemtype         => $item_type,
199
                itemtype         => $item_type,
199
                non_priority     => $non_priority,
200
                non_priority     => $non_priority,
201
                item_group_id    => $item_group_id,
200
            }
202
            }
201
        );
203
        );
202
204
(-)a/api/v1/swagger/definitions/hold.yaml (+5 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
  item_group_id:
20
    type:
21
      - string
22
      - "null"
23
    description: Internal item_group identifier
19
  pickup_library_id:
24
  pickup_library_id:
20
    type:
25
    type:
21
      - string
26
      - string
(-)a/api/v1/swagger/paths/holds.yaml (-1 / +9 lines)
Lines 24-29 Link Here
24
        in: query
24
        in: query
25
        description: Internal biblio identifier
25
        description: Internal biblio identifier
26
        type: integer
26
        type: integer
27
      - name: item_group_id
28
        in: query
29
        description: Internal item group identifier
30
        type: integer
27
      - name: pickup_library_id
31
      - name: pickup_library_id
28
        in: query
32
        in: query
29
        description: Internal library identifier for the pickup library
33
        description: Internal library identifier for the pickup library
Lines 140-145 Link Here
140
              type:
144
              type:
141
                - integer
145
                - integer
142
                - "null"
146
                - "null"
147
            item_group_id:
148
              description: Internal item group identifier
149
              type:
150
                - integer
151
                - "null"
143
            hold_date:
152
            hold_date:
144
              description: The date the hold was placed
153
              description: The date the hold was placed
145
              type:
154
              type:
146
- 

Return to bug 24860