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

(-)a/installer/data/mysql/atomicupdate/bug_39372.pl (+20 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "39372",
6
    description => "Add system preference OpacAllowPrivateListCreation",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(
12
            q{
13
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
14
            VALUES ('OpacAllowPrivateListCreation','1',NULL,'Allow OPAC users to create private lists','YesNo');
15
        }
16
        );
17
18
        say_success( $out, "Added new system preference 'OpacAllowPrivateListCreation'" );
19
    },
20
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 469-474 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
469
('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'),
469
('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'),
470
('OpacAdvSearchOptions','pubdate,itemtype,language,sorting,location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'),
470
('OpacAdvSearchOptions','pubdate,itemtype,language,sorting,location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'),
471
('OPACAllowHoldDateInFuture','0','','If set, along with the AllowHoldDateInFuture system preference, OPAC users can set the date of a hold to be in the future.','YesNo'),
471
('OPACAllowHoldDateInFuture','0','','If set, along with the AllowHoldDateInFuture system preference, OPAC users can set the date of a hold to be in the future.','YesNo'),
472
('OpacAllowPrivateListCreation','1',NULL,'If set, allow OPAC users to create private lists','YesNo'),
472
('OpacAllowPublicListCreation','1',NULL,'If set, allows opac users to create public lists','YesNo'),
473
('OpacAllowPublicListCreation','1',NULL,'If set, allows opac users to create public lists','YesNo'),
473
('OpacAllowSharingPrivateLists','0',NULL,'If set, allows opac users to share private lists with other patrons','YesNo'),
474
('OpacAllowSharingPrivateLists','0',NULL,'If set, allows opac users to share private lists with other patrons','YesNo'),
474
('OPACAllowUserToChangeBranch','','Pending, In-Transit, Suspended','Allow users to change the library to pick up a hold for these statuses:','multiple'),
475
('OPACAllowUserToChangeBranch','','Pending, In-Transit, Suspended','Allow users to change the library to pick up a hold for these statuses:','multiple'),
475
- 

Return to bug 39372