Jonathan Druart
1393e48d8e
oops Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
15 lines
642 B
Perl
Executable file
15 lines
642 B
Perl
Executable file
use Modern::Perl;
|
|
|
|
return {
|
|
bug_number => "26302",
|
|
description => "Add system preferences OPACResultsMaxItems and OPACResultsMaxItemsUnavailable",
|
|
up => sub {
|
|
my ($args) = @_;
|
|
my ($dbh, $out) = @$args{qw(dbh out)};
|
|
$dbh->do(q|
|
|
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES
|
|
('OPACResultsMaxItems','1','','Maximum number of available items displayed in search results','Integer'),
|
|
('OPACResultsMaxItemsUnavailable','0','','Maximum number of unavailable items displayed in search results','Integer')
|
|
|);
|
|
},
|
|
}
|