Bugzilla – Attachment 170396 Details for
Bug 37639
items.stack ( shelving control number ) not included in items API endpoint
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37639: Add items.stack to items endpoint
Bug-37639-Add-itemsstack-to-items-endpoint.patch (text/plain), 1.62 KB, created by
Paul Derscheid
on 2024-08-15 16:14:35 UTC
(
hide
)
Description:
Bug 37639: Add items.stack to items endpoint
Filename:
MIME Type:
Creator:
Paul Derscheid
Created:
2024-08-15 16:14:35 UTC
Size:
1.62 KB
patch
obsolete
>From 66dc044a0a3a943a80e219ef3f993faebde7f480 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 13 Aug 2024 21:01:51 +0000 >Subject: [PATCH] Bug 37639: Add items.stack to items endpoint > >To test: >1. Apply patch and restart_all, and yarn api:bundle >2. Check the items endpoint for items.stack ( http://localhost:8081/api/v1/items/144 ) >3. The data is there, and correct. > >Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> >--- > Koha/Item.pm | 2 +- > api/v1/swagger/definitions/item.yaml | 5 +++++ > 2 files changed, 6 insertions(+), 1 deletion(-) > >diff --git a/Koha/Item.pm b/Koha/Item.pm >index b9e35ae352..ac06dd9dc0 100644 >--- a/Koha/Item.pm >+++ b/Koha/Item.pm >@@ -1770,7 +1770,7 @@ sub to_api_mapping { > replacementpricedate => 'replacement_price_date', > datelastborrowed => 'last_checkout_date', > datelastseen => 'last_seen_date', >- stack => undef, >+ stack => 'stack', > notforloan => 'not_for_loan_status', > damaged => 'damaged_status', > damaged_on => 'damaged_date', >diff --git a/api/v1/swagger/definitions/item.yaml b/api/v1/swagger/definitions/item.yaml >index ba1a8a890e..4c44343376 100644 >--- a/api/v1/swagger/definitions/item.yaml >+++ b/api/v1/swagger/definitions/item.yaml >@@ -184,6 +184,11 @@ properties: > - string > - "null" > description: Materials specified >+ stack: >+ type: >+ - number >+ - "null" >+ description: Shelving control number > uri: > type: > - string >-- >2.46.0
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 37639
:
170299
|
170328
|
170329
|
170396
|
170397
|
170458
|
170782
|
172980
|
172988
|
173615
|
173616