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

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

Return to bug 31128