From f204651413511aadc378f49ab0aa8fa51e521d5d Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 27 Aug 2024 19:59:41 +0000 Subject: [PATCH] Bug 37639: Map items.stack as shelving_control_number in API --- Koha/Item.pm | 2 +- api/v1/swagger/definitions/item.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index ac06dd9dc07..6288b967a1e 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 => 'stack', + stack => 'shelving_control_number', 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 4c443433763..a5db31d3dbf 100644 --- a/api/v1/swagger/definitions/item.yaml +++ b/api/v1/swagger/definitions/item.yaml @@ -184,7 +184,7 @@ properties: - string - "null" description: Materials specified - stack: + shelving_control_number: type: - number - "null" -- 2.39.2