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 93-98 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
93
('autoControlNumber','OFF','biblionumber|OFF','Used to autogenerate a Control Number: biblionumber will be as biblionumber, OFF will leave the field as it is;','Choice'),
93
('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
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
94
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
95
('AutoCreditNumber', '', '', 'Automatically generate a number for account credits', 'Choice'),
95
('AutoCreditNumber', '', '', 'Automatically generate a number for account credits', 'Choice'),
96
('AutoDeleteFromCartWhenHoldPlaced', '', '', 'Automatically delete items from cart when a hold is placed', 'Choice'),
96
('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'),
97
('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'),
97
('AutoILLBackendPriority','',NULL,'Set the automatic backend selection priority','ill-backends'),
98
('AutoILLBackendPriority','',NULL,'Set the automatic backend selection priority','ill-backends'),
98
('AutoLinkBiblios','0',NULL,'If enabled, link biblio to authorities on creation and edit','YesNo'),
99
('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 770-775 Circulation: Link Here
770
            - pref: HoldRatioDefault
770
            - pref: HoldRatioDefault
771
              class: integer
771
              class: integer
772
            - .
772
            - .
773
        -
774
            - Automatically delete items from cart when placing on hold on the
775
            - pref: AutoDeleteFromCartWhenHoldPlaced
776
              multiple:
777
                  staff: staff interface
778
                  opac: OPAC
773
        -
779
        -
774
            - In the staff interface, split the holds queue into separate tables by
780
            - In the staff interface, split the holds queue into separate tables by
775
            - pref: HoldsSplitQueue
781
            - pref: HoldsSplitQueue
776
- 

Return to bug 36868