Bug 31391: Update the UseRecalls system preference to have choices

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Aleisha Amohia 2026-06-15 23:57:15 +00:00 committed by Pedro Amorim
parent 0ebf8a632e
commit f9c159e0a3
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
3 changed files with 25 additions and 4 deletions

View File

@ -0,0 +1,18 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => "31391",
description => "Staff-side recalls",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
try {
$dbh->do(q{UPDATE systempreferences SET value = "off" WHERE variable = "UseRecalls" AND value = "0"});
$dbh->do(q{UPDATE systempreferences SET value = "opac" WHERE variable = "UseRecalls" AND value = "1"});
say_success( $out, "Updated system preference 'UseRecalls' to describe interface choice instead of YesNo" );
} catch {
say_failure( $out, "Database modification failed with errors: $_" );
};
},
};

View File

@ -909,7 +909,7 @@ INSERT INTO systempreferences ( `variable`, `value` ) VALUES
('UseLibraryFloatLimits', '0'),
('UseLocationAsAQInSIP', '0'),
('UseOCLCEncodingLevels','0'),
('UseRecalls','0'),
('UseRecalls','off'),
('UseTransportCostMatrix','0'),
('UseWYSIWYGinSystemPreferences','0'),
('viewISBD','1'),

View File

@ -1587,11 +1587,14 @@ Circulation:
class: integer
- days.
-
- Recalls
- pref: UseRecalls
choices:
1: Use
0: "Don't use"
- recalls. Make sure you configure <a href="/cgi-bin/koha/admin/smart-rules.pl">circulation and fine rules</a> for recalls once enabled.
off: are disabled
opac: can be placed through the OPAC only
staff: can be placed through the staff interface only
opac_and_staff: can be placed through both the OPAC and staff interface
- . Make sure you configure <a href="/cgi-bin/koha/admin/smart-rules.pl">circulation and fine rules</a> for recalls once enabled.
SIP2:
-