Bugzilla – Attachment 137594 Details for
Bug 31128
Add effective_not_for_loan_status to API item objects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31128: Add effective_not_for_loan_status into items response
Bug-31128-Add-effectivenotforloanstatus-into-items.patch (text/plain), 1.47 KB, created by
David Nind
on 2022-07-11 22:59:12 UTC
(
hide
)
Description:
Bug 31128: Add effective_not_for_loan_status into items response
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-07-11 22:59:12 UTC
Size:
1.47 KB
patch
obsolete
>From 0b00342c1a7baf61acd3da78d2c692e2290c5ae0 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 11 Jul 2022 13:07:28 +0100 >Subject: [PATCH] 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> >--- > Koha/Item.pm | 1 + > api/v1/swagger/definitions/item.yaml | 3 +++ > 2 files changed, 4 insertions(+) > >diff --git a/Koha/Item.pm b/Koha/Item.pm >index e15f5e6ec1..e558f2e2a0 100644 >--- a/Koha/Item.pm >+++ b/Koha/Item.pm >@@ -1310,6 +1310,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 }; > } >diff --git a/api/v1/swagger/definitions/item.yaml b/api/v1/swagger/definitions/item.yaml >index 48bd53647e..e67b53813e 100644 >--- a/api/v1/swagger/definitions/item.yaml >+++ b/api/v1/swagger/definitions/item.yaml >@@ -59,6 +59,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 >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31128
:
137507
|
137508
|
137574
|
137575
|
137576
|
137577
|
137593
|
137594
|
138023
|
138024