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

(-)a/C4/Reserves.pm (+2 lines)
Lines 184-189 sub AddReserve { Link Here
184
    my $checkitem      = $params->{itemnumber};
184
    my $checkitem      = $params->{itemnumber};
185
    my $found          = $params->{found};
185
    my $found          = $params->{found};
186
    my $itemtype       = $params->{itemtype};
186
    my $itemtype       = $params->{itemtype};
187
    my $volume_id      = $params->{volume_id};
187
188
188
    $resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' })
189
    $resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' })
189
        or output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' });
190
        or output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' });
Lines 237-242 sub AddReserve { Link Here
237
        {
238
        {
238
            borrowernumber => $borrowernumber,
239
            borrowernumber => $borrowernumber,
239
            biblionumber   => $biblionumber,
240
            biblionumber   => $biblionumber,
241
            volume_id      => $volume_id,
240
            reservedate    => $resdate,
242
            reservedate    => $resdate,
241
            branchcode     => $branch,
243
            branchcode     => $branch,
242
            priority       => $priority,
244
            priority       => $priority,
(-)a/Koha/REST/V1/Holds.pm (+2 lines)
Lines 78-83 sub add { Link Here
78
        my $biblio;
78
        my $biblio;
79
79
80
        my $biblio_id         = $body->{biblio_id};
80
        my $biblio_id         = $body->{biblio_id};
81
        my $volume_id         = $body->{volume_id};
81
        my $pickup_library_id = $body->{pickup_library_id};
82
        my $pickup_library_id = $body->{pickup_library_id};
82
        my $item_id           = $body->{item_id};
83
        my $item_id           = $body->{item_id};
83
        my $patron_id         = $body->{patron_id};
84
        my $patron_id         = $body->{patron_id};
Lines 173-178 sub add { Link Here
173
                itemnumber       => $item_id,
174
                itemnumber       => $item_id,
174
                found            => undef,                # TODO: Why not?
175
                found            => undef,                # TODO: Why not?
175
                itemtype         => $item_type,
176
                itemtype         => $item_type,
177
                volume_id        => $volume_id,
176
            }
178
            }
177
        );
179
        );
178
180
(-)a/api/v1/swagger/definitions/hold.json (+4 lines)
Lines 18-23 Link Here
18
      "type": "integer",
18
      "type": "integer",
19
      "description": "Internal biblio identifier"
19
      "description": "Internal biblio identifier"
20
    },
20
    },
21
    "volume_id": {
22
      "type": ["integer", "null"],
23
      "description": "Internal volume identifier for the volume to place on hold"
24
    },
21
    "pickup_library_id": {
25
    "pickup_library_id": {
22
      "type": ["string", "null"],
26
      "type": ["string", "null"],
23
      "description": "Internal library identifier for the pickup library"
27
      "description": "Internal library identifier for the pickup library"
(-)a/api/v1/swagger/paths/holds.json (-1 / +10 lines)
Lines 30-35 Link Here
30
          "description": "Internal biblio identifier",
30
          "description": "Internal biblio identifier",
31
          "type": "integer"
31
          "type": "integer"
32
        },
32
        },
33
        {
34
          "name": "volume_id",
35
          "in": "query",
36
          "description": "Internal volume identifier for the volume to place on hold",
37
          "type": "integer"
38
        },
33
        {
39
        {
34
          "name": "pickup_library_id",
40
          "name": "pickup_library_id",
35
          "in": "query",
41
          "in": "query",
Lines 181-186 Link Here
181
                "description": "Internal biblio identifier",
187
                "description": "Internal biblio identifier",
182
                "type": [ "integer", "null" ]
188
                "type": [ "integer", "null" ]
183
              },
189
              },
190
              "volume_id": {
191
                "description": "Internal volume identifier for the volume to place on hold",
192
                "type": [ "integer", "null" ]
193
              },
184
              "item_id": {
194
              "item_id": {
185
                "description": "Internal item identifier",
195
                "description": "Internal item identifier",
186
                "type": [ "integer", "null" ]
196
                "type": [ "integer", "null" ]
187
- 

Return to bug 24860