From e20a6578b4c0ffceab2d10aba22e82ec6cf2dc53 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 --- 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 7047142ba3..62d7199614 100644 --- a/Koha/Schema/Result/Deleteditem.pm +++ b/Koha/Schema/Result/Deleteditem.pm @@ -210,6 +210,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' @@ -444,6 +451,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 980ea046c4..5bebb98400 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -213,6 +213,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' @@ -458,6 +465,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 fc1cc718f4..308394d59d 100644 --- a/api/v1/swagger/definitions/item.yaml +++ b/api/v1/swagger/definitions/item.yaml @@ -110,6 +110,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.34.1