Koha/installer/data/mysql/db_revs/231200030.pl
Katrin Fischer 6a18121ef8
Bug 35728: DBRev 23.12.00.030
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-26 18:06:06 +02:00

16 lines
615 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "35728",
description => "Add option to NOT redirect to result when search returns only one record",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RedirectToSoleResult', '1', NULL, 'When a catalog search via the staff interface or the OPAC returns only one record, redirect to the result.', 'YesNo') }
);
say $out "Added system preference 'RedirectToSoleResult'";
},
};