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 you stuffs 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/mandatory/sysprefs.sql (+1 lines)
Lines 88-93 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
88
('autoControlNumber','OFF','biblionumber|OFF','Used to autogenerate a Control Number: biblionumber will be as biblionumber, OFF will leave the field as it is;','Choice'),
88
('autoControlNumber','OFF','biblionumber|OFF','Used to autogenerate a Control Number: biblionumber will be as biblionumber, OFF will leave the field as it is;','Choice'),
89
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
89
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
90
('AutoCreditNumber', '', '', 'Automatically generate a number for account credits', 'Choice'),
90
('AutoCreditNumber', '', '', 'Automatically generate a number for account credits', 'Choice'),
91
('AutoDeleteFromCartWhenHoldPlaced', '', '', 'Automatically delete items from cart when a hold is placed', 'Choice'),
91
('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'),
92
('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'),
92
('AutoLinkBiblios','0',NULL,'If enabled, link biblio to authorities on creation and edit','YesNo'),
93
('AutoLinkBiblios','0',NULL,'If enabled, link biblio to authorities on creation and edit','YesNo'),
93
('AutomaticCheckinAutoFill','0',NULL,'Automatically fill the next hold with an automatic check in.','YesNo'),
94
('AutomaticCheckinAutoFill','0',NULL,'Automatically fill the next hold with an automatic check in.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +6 lines)
Lines 738-743 Circulation: Link Here
738
            - pref: HoldRatioDefault
738
            - pref: HoldRatioDefault
739
              class: integer
739
              class: integer
740
            - "."
740
            - "."
741
        -
742
            - Automatically delete items from cart when placing on hold on the
743
            - pref: AutoDeleteFromCartWhenHoldPlaced
744
              multiple:
745
                  staff: staff interface
746
                  opac: OPAC
741
        -
747
        -
742
            - In the staff interface, split the holds queue into separate tables by
748
            - In the staff interface, split the holds queue into separate tables by
743
            - pref: HoldsSplitQueue
749
            - pref: HoldsSplitQueue
744
- 

Return to bug 36868