From 91451904e8c9dad0e76f343cfde6ffb654e6c122 Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Thu, 25 Sep 2025 18:57:32 +0000 Subject: [PATCH] Bug 40879: Added OpacCiteModal system preference --- .../data/mysql/atomicupdate/bug_40879.pl | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_40879.pl diff --git a/installer/data/mysql/atomicupdate/bug_40879.pl b/installer/data/mysql/atomicupdate/bug_40879.pl new file mode 100644 index 0000000000..26649b4c18 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_40879.pl @@ -0,0 +1,20 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); + +return { + bug_number => "40879", + description => "Add system preference to enable or 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, type) VALUES ('OpacCiteModal', '1', NULL, 'Enable or disable the Cite option in the OPAC record view.', 'YesNo')} + ); + + # sysprefs + say $out "Added new system preference 'OpacCiteModal'"; + + }, +}; -- 2.39.5