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

(-)a/Koha/Item.pm (+1 lines)
Lines 1342-1347 sub to_api { Link Here
1342
    my $overrides = {};
1342
    my $overrides = {};
1343
1343
1344
    $overrides->{effective_item_type_id} = $self->effective_itemtype;
1344
    $overrides->{effective_item_type_id} = $self->effective_itemtype;
1345
    $overrides->{effective_not_for_loan_status} = $self->notforloan ? $self->notforloan : $self->itemtype->notforloan;
1345
1346
1346
    return { %$response, %$overrides };
1347
    return { %$response, %$overrides };
1347
}
1348
}
(-)a/api/v1/swagger/definitions/item.yaml (-1 / +3 lines)
Lines 60-65 properties: Link Here
60
  not_for_loan_status:
60
  not_for_loan_status:
61
    type: integer
61
    type: integer
62
    description: Authorized value defining why this item is not for loan
62
    description: Authorized value defining why this item is not for loan
63
  effective_not_for_loan_status:
64
    type: integer
65
    description: Authorized value defining why this item is not for not_for_loan_status
63
  damaged_status:
66
  damaged_status:
64
    type: integer
67
    type: integer
65
    description: Authorized value defining this item as damaged
68
    description: Authorized value defining this item as damaged
66
- 

Return to bug 31128