From cae7c5a2ed93c401476bd87f908552815213ef82 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 --- 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 8ccb4d4499..e58dd66e1d 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' @@ -440,6 +447,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 55d33e4a19..62c3611284 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' @@ -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/api/v1/swagger/definitions/item.yaml b/api/v1/swagger/definitions/item.yaml index 21963d1ca4..f89a3e1941 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.30.2