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

(-)a/C4/Reserves.pm (-1 / +3 lines)
Lines 160-166 sub AddReserve { Link Here
160
    my (
160
    my (
161
        $branch,   $borrowernumber, $biblionumber, $bibitems,
161
        $branch,   $borrowernumber, $biblionumber, $bibitems,
162
        $priority, $resdate,        $expdate,      $notes,
162
        $priority, $resdate,        $expdate,      $notes,
163
        $title,    $checkitem,      $found,        $itemtype
163
        $title,    $checkitem,      $found,        $itemtype,
164
        $volume_id
164
    ) = @_;
165
    ) = @_;
165
166
166
    $resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' })
167
    $resdate = output_pref( { str => dt_from_string( $resdate ), dateonly => 1, dateformat => 'iso' })
Lines 215-220 sub AddReserve { Link Here
215
        {
216
        {
216
            borrowernumber => $borrowernumber,
217
            borrowernumber => $borrowernumber,
217
            biblionumber   => $biblionumber,
218
            biblionumber   => $biblionumber,
219
            volume_id      => $volume_id,
218
            reservedate    => $resdate,
220
            reservedate    => $resdate,
219
            branchcode     => $branch,
221
            branchcode     => $branch,
220
            priority       => $priority,
222
            priority       => $priority,
(-)a/Koha/REST/V1/Holds.pm (-1 / +3 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 172-178 sub add { Link Here
172
            $biblio->title,
173
            $biblio->title,
173
            $item_id,
174
            $item_id,
174
            undef,    # TODO: Why not?
175
            undef,    # TODO: Why not?
175
            $item_type
176
            $item_type,
177
            $volume_id,
176
        );
178
        );
177
179
178
        unless ($hold_id) {
180
        unless ($hold_id) {
(-)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