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

(-)a/Koha/Schema/Result/Virtualshelve.pm (-1 / +3 lines)
Lines 210-216 sub koha_objects_class { Link Here
210
}
210
}
211
211
212
__PACKAGE__->add_columns(
212
__PACKAGE__->add_columns(
213
    '+public' => { is_boolean => 1 },
213
    '+allow_change_from_others' => { is_boolean => 1 },
214
    '+allow_change_from_owner'  => { is_boolean => 1 },
215
    '+public'                   => { is_boolean => 1 },
214
);
216
);
215
217
216
1;
218
1;
(-)a/Koha/Virtualshelf.pm (+17 lines)
Lines 255-260 sub can_biblios_be_removed { Link Here
255
    # Same answer since bug 18228
255
    # Same answer since bug 18228
256
}
256
}
257
257
258
=head3 to_api_mapping
259
260
This method returns the mapping for representing a Koha::Virtualshelf object
261
on the API.
262
263
=cut
264
265
sub to_api_mapping {
266
    return {
267
        created_on   => 'creation_date',
268
        lastmodified => 'updated_on_date',
269
        owner        => 'owner_id',
270
        shelfname    => 'name',
271
        shelfnumber  => 'list_id',
272
    };
273
}
274
258
=head2 Internal methods
275
=head2 Internal methods
259
276
260
=head3 _type
277
=head3 _type
(-)a/api/v1/swagger/paths.json (-1 / +3 lines)
Lines 155-160 Link Here
155
  "/import_batch_profiles/{import_batch_profile_id}": {
155
  "/import_batch_profiles/{import_batch_profile_id}": {
156
    "$ref": "paths/import_batch_profiles.json#/~1import_batch_profiles~1{import_batch_profile_id}"
156
    "$ref": "paths/import_batch_profiles.json#/~1import_batch_profiles~1{import_batch_profile_id}"
157
  },
157
  },
158
  "/lists": {
159
    "$ref": "paths/lists.yaml#/~1lists"
160
  },
158
  "/rotas/{rota_id}/stages/{stage_id}/position": {
161
  "/rotas/{rota_id}/stages/{stage_id}/position": {
159
    "$ref": "paths/rotas.json#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position"
162
    "$ref": "paths/rotas.json#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position"
160
  },
163
  },
161
- 

Return to bug 28959