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

(-)a/installer/data/mysql/atomicupdate/bug_36868_add_AutoDeleteFromCartWhenHoldPlaced_syspref.pl (+21 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "36868",
6
    description => "Add system preference AutoDeleteFromCartWhenHoldPlaced",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do your stuff here
12
        $dbh->do(
13
            q{
14
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
15
            ('AutoDeleteFromCartWhenHoldPlaced', '','', 'Automatically delete items from cart when a hold is placed','Choice')
16
        }
17
        );
18
19
        say $out "Added new system preference 'AutoDeleteFromCartWhenHoldPlaced'";
20
    },
21
};
(-)a/installer/data/mysql/atomicupdate/skeleton.pl (-1 / +1 lines)
Lines 8-14 return { Link Here
8
        my ($args) = @_;
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
10
11
        # Do you stuffs here
11
        # Do your stuff here
12
        $dbh->do(q{});
12
        $dbh->do(q{});
13
13
14
        # Print useful stuff here
14
        # Print useful stuff here
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 94-99 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
94
('autoControlNumber','OFF','biblionumber|OFF','Used to autogenerate a Control Number: biblionumber will be as biblionumber, OFF will leave the field as it is;','Choice'),
94
('autoControlNumber','OFF','biblionumber|OFF','Used to autogenerate a Control Number: biblionumber will be as biblionumber, OFF will leave the field as it is;','Choice'),
95
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
95
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
96
('AutoCreditNumber', '', NULL, 'Automatically generate a number for account credits', 'Choice'),
96
('AutoCreditNumber', '', NULL, 'Automatically generate a number for account credits', 'Choice'),
97
('AutoDeleteFromCartWhenHoldPlaced', '', '', 'Automatically delete items from cart when a hold is placed', 'Choice'),
97
('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'),
98
('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'),
98
('AutoILLBackendPriority','',NULL,'Set the automatic backend selection priority','ill-backends'),
99
('AutoILLBackendPriority','',NULL,'Set the automatic backend selection priority','ill-backends'),
99
('AutoLinkBiblios','0',NULL,'If enabled, link biblio to authorities on creation and edit','YesNo'),
100
('AutoLinkBiblios','0',NULL,'If enabled, link biblio to authorities on creation and edit','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +6 lines)
Lines 782-787 Circulation: Link Here
782
            - pref: HoldRatioDefault
782
            - pref: HoldRatioDefault
783
              class: integer
783
              class: integer
784
            - .
784
            - .
785
        -
786
            - Automatically delete items from cart when placing on hold on the
787
            - pref: AutoDeleteFromCartWhenHoldPlaced
788
              multiple:
789
                  staff: staff interface
790
                  opac: OPAC
785
        -
791
        -
786
            - In the staff interface, split the holds queue into separate tables by
792
            - In the staff interface, split the holds queue into separate tables by
787
            - pref: HoldsSplitQueue
793
            - pref: HoldsSplitQueue
788
- 

Return to bug 36868