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

(-)a/C4/Reserves.pm (+2 lines)
Lines 185-190 sub AddReserve { Link Here
185
    my $checkitem      = $params->{itemnumber};
185
    my $checkitem      = $params->{itemnumber};
186
    my $found          = $params->{found};
186
    my $found          = $params->{found};
187
    my $itemtype       = $params->{itemtype};
187
    my $itemtype       = $params->{itemtype};
188
    my $volume_id      = $params->{volume_id};
188
189
189
    $resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' })
190
    $resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' })
190
        or output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' });
191
        or output_pref({ dt => dt_from_string, dateonly => 1, dateformat => 'iso' });
Lines 238-243 sub AddReserve { Link Here
238
        {
239
        {
239
            borrowernumber => $borrowernumber,
240
            borrowernumber => $borrowernumber,
240
            biblionumber   => $biblionumber,
241
            biblionumber   => $biblionumber,
242
            volume_id      => $volume_id,
241
            reservedate    => $resdate,
243
            reservedate    => $resdate,
242
            branchcode     => $branch,
244
            branchcode     => $branch,
243
            priority       => $priority,
245
            priority       => $priority,
(-)a/Koha/REST/V1/Holds.pm (+2 lines)
Lines 67-72 sub add { Link Here
67
        my $biblio;
67
        my $biblio;
68
68
69
        my $biblio_id         = $body->{biblio_id};
69
        my $biblio_id         = $body->{biblio_id};
70
        my $volume_id         = $body->{volume_id};
70
        my $pickup_library_id = $body->{pickup_library_id};
71
        my $pickup_library_id = $body->{pickup_library_id};
71
        my $item_id           = $body->{item_id};
72
        my $item_id           = $body->{item_id};
72
        my $patron_id         = $body->{patron_id};
73
        my $patron_id         = $body->{patron_id};
Lines 174-179 sub add { Link Here
174
                itemnumber       => $item_id,
175
                itemnumber       => $item_id,
175
                found            => undef,                # TODO: Why not?
176
                found            => undef,                # TODO: Why not?
176
                itemtype         => $item_type,
177
                itemtype         => $item_type,
178
                volume_id        => $volume_id,
177
            }
179
            }
178
        );
180
        );
179
181
(-)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