-
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "40879",
description => "Add system preference to enable/disable the “Cite” option in the OPAC",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(
q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, VALUES ('OpacCiteModal','1', NULL, 'Enable or disable the Cite option in the OPAC record view.', 'YesNo')}
);
# sysprefs
say $out "Added new system preference 'Added system preference OpacCiteModal'";
},
};