View | Details | Raw Unified | Return to bug 40879
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_40879.pl (-1 / +20 lines)
Line 0 Link Here
0
- 
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "40879",
6
    description => "Add system preference to enable or disable the Cite option in the OPAC",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(
13
            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')}
14
        );
15
16
        # sysprefs
17
        say $out "Added new system preference 'OpacCiteModal'";
18
19
    },
20
};

Return to bug 40879