From ce4c61a5002bd92f5f51fbbd3e026e6dfd4fe351 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 Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- 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 a30646271c..be3319cd1e 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 cc428b0a83..b547fd3fdf 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 d2b9d16d0e..ba1a8a890e 100644 --- a/api/v1/swagger/definitions/item.yaml +++ b/api/v1/swagger/definitions/item.yaml @@ -112,6 +112,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.39.5