Bug 31128: Add effective_not_for_loan_status into items response

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-07-11 13:07:28 +01:00 committed by Tomas Cohen Arazi
parent 4ce3a882a6
commit b3c9e95fac
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 0 deletions

View File

@ -1342,6 +1342,7 @@ sub to_api {
my $overrides = {};
$overrides->{effective_item_type_id} = $self->effective_itemtype;
$overrides->{effective_not_for_loan_status} = $self->notforloan ? $self->notforloan : $self->itemtype->notforloan;
return { %$response, %$overrides };
}

View File

@ -60,6 +60,9 @@ properties:
not_for_loan_status:
type: integer
description: Authorized value defining why this item is not for loan
effective_not_for_loan_status:
type: integer
description: Authorized value defining why this item is not for not_for_loan_status
damaged_status:
type: integer
description: Authorized value defining this item as damaged