From a0ee9c466e879add346d5bc34fd028f5800c5650 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 7 Apr 2023 16:51:01 +0000 Subject: [PATCH] Bug 16122: API and Schema updates Signed-off-by: Christopher Brannon Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Andrew Fuerste Henry --- Koha/Schema/Result/Deleteditem.pm | 9 +++++++++ Koha/Schema/Result/Item.pm | 9 +++++++++ api/v1/swagger/definitions/item.yaml | 5 +++++ 3 files changed, 23 insertions(+) diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm index a30646271c9..be3319cd1e3 100644 --- a/Koha/Schema/Result/Deleteditem.pm +++ b/Koha/Schema/Result/Deleteditem.pm @@ -218,6 +218,13 @@ number of times this item has been checked out number of times this item has been renewed +=head2 localuse + + data_type: 'smallint' + is_nullable: 1 + +number of times this item has been recorded for localuse + =head2 reserves data_type: 'smallint' @@ -454,6 +461,8 @@ __PACKAGE__->add_columns( "issues", { data_type => "smallint", default_value => 0, is_nullable => 1 }, "renewals", + { data_type => "smallint", default_value => 0, is_nullable => 1 }, + "localuse", { data_type => "smallint", is_nullable => 1 }, "reserves", { data_type => "smallint", is_nullable => 1 }, diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index 8320ce4c761..46dc909e92d 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -221,6 +221,13 @@ number of times this item has been checked out/issued number of times this item has been renewed +=head2 localuse + + data_type: 'smallint' + is_nullable: 1 + +number of times this item has been recorded for localuse + =head2 reserves data_type: 'smallint' @@ -468,6 +475,8 @@ __PACKAGE__->add_columns( "issues", { data_type => "smallint", default_value => 0, is_nullable => 1 }, "renewals", + { data_type => "smallint", default_value => 0, is_nullable => 1 }, + "localuse", { data_type => "smallint", is_nullable => 1 }, "reserves", { data_type => "smallint", is_nullable => 1 }, diff --git a/api/v1/swagger/definitions/item.yaml b/api/v1/swagger/definitions/item.yaml index 1d0ed7ac95f..b719043dc5a 100644 --- a/api/v1/swagger/definitions/item.yaml +++ b/api/v1/swagger/definitions/item.yaml @@ -113,6 +113,11 @@ properties: - integer - "null" description: Number of times this item has been renewed + localuse: + type: + - integer + - "null" + description: Number of times this item has been recorded for localuse holds_count: type: - integer -- 2.30.2