From 0ebf8a632e7207c24efd50b7126b30d5326e577a Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Mon, 15 Jun 2026 23:46:09 +0000 Subject: [PATCH] Bug 31391: Recalled authorised value for hold cancellation Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Pedro Amorim --- ...LD_CANCELLATION-RECALLED_authorised_value.pl | 17 +++++++++++++++++ installer/data/mysql/en/optional/auth_val.yml | 4 ++++ 2 files changed, 21 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_31391_-_add_HOLD_CANCELLATION-RECALLED_authorised_value.pl diff --git a/installer/data/mysql/atomicupdate/bug_31391_-_add_HOLD_CANCELLATION-RECALLED_authorised_value.pl b/installer/data/mysql/atomicupdate/bug_31391_-_add_HOLD_CANCELLATION-RECALLED_authorised_value.pl new file mode 100755 index 0000000000..1c63224b4d --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_31391_-_add_HOLD_CANCELLATION-RECALLED_authorised_value.pl @@ -0,0 +1,17 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); + +return { + bug_number => "31391", + description => "Staff-side recalls", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + $dbh->do( + q{INSERT IGNORE INTO authorised_values (category, authorised_value, lib) VALUES ('HOLD_CANCELLATION','RECALLED','Hold was converted to a recall')} + ); + + say_success( $out, "Add new RECALLED value to HOLD_CANCELLATION authorised value category" ); + }, +}; diff --git a/installer/data/mysql/en/optional/auth_val.yml b/installer/data/mysql/en/optional/auth_val.yml index 94f3ad9099..5100680071 100644 --- a/installer/data/mysql/en/optional/auth_val.yml +++ b/installer/data/mysql/en/optional/auth_val.yml @@ -321,6 +321,10 @@ tables: authorised_value: "DAMAGED" lib: "Item was found to be too damaged to fill hold" + - category: "HOLD_CANCELLATION" + authorised_value: "RECALLED" + lib: "Hold was converted to a recall" + # article request cancellations - category: "AR_CANCELLATION" authorised_value: "NOT_FOUND"