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:
parent
4ce3a882a6
commit
b3c9e95fac
|
|
@ -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 };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue