From 8bacd7a06cd3ba9413a620333f643df9b4e67089 Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Thu, 25 Sep 2025 17:54:35 +0000 Subject: [PATCH] Bug 40879: New syspref for enabling and disabling Cite in OPAC --- .../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..3932561247 --- /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/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'"; + + }, +}; -- 2.39.5