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

(-)a/C4/Reserves.pm (+2 lines)
Lines 193-198 sub AddReserve { Link Here
193
    my $found          = $params->{found};
193
    my $found          = $params->{found};
194
    my $itemtype       = $params->{itemtype};
194
    my $itemtype       = $params->{itemtype};
195
    my $non_priority   = $params->{non_priority};
195
    my $non_priority   = $params->{non_priority};
196
    my $item_group_id  = $params->{item_group_id};
196
197
197
    $resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' })
198
    $resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' })
198
        or output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' });
199
        or output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' });
Lines 244-249 sub AddReserve { Link Here
244
        {
245
        {
245
            borrowernumber => $borrowernumber,
246
            borrowernumber => $borrowernumber,
246
            biblionumber   => $biblionumber,
247
            biblionumber   => $biblionumber,
248
            item_group_id  => $item_group_id,
247
            reservedate    => $resdate,
249
            reservedate    => $resdate,
248
            branchcode     => $branch,
250
            branchcode     => $branch,
249
            priority       => $priority,
251
            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 202-207 sub add { Link Here
202
                found            => undef,                # TODO: Why not?
203
                found            => undef,                # TODO: Why not?
203
                itemtype         => $item_type,
204
                itemtype         => $item_type,
204
                non_priority     => $non_priority,
205
                non_priority     => $non_priority,
206
                item_group_id    => $item_group_id,
205
            }
207
            }
206
        );
208
        );
207
209
(-)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