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 / +2 lines)
Lines 91-96 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
91
('autoControlNumber','OFF','biblionumber|OFF','Used to autogenerate a Control Number: biblionumber will be as biblionumber, OFF will leave the field as it is;','Choice'),
91
('autoControlNumber','OFF','biblionumber|OFF','Used to autogenerate a Control Number: biblionumber will be as biblionumber, OFF will leave the field as it is;','Choice'),
92
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
92
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
93
('AutoCreditNumber', '', '', 'Automatically generate a number for account credits', 'Choice'),
93
('AutoCreditNumber', '', '', 'Automatically generate a number for account credits', 'Choice'),
94
('AutoDeleteFromCartWhenHoldPlaced', '', '', 'Automatically delete items from cart when a hold is placed', 'Choice'),
94
('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'),
95
('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'),
95
('AutoLinkBiblios','0',NULL,'If enabled, link biblio to authorities on creation and edit','YesNo'),
96
('AutoLinkBiblios','0',NULL,'If enabled, link biblio to authorities on creation and edit','YesNo'),
96
('AutomaticCheckinAutoFill','0',NULL,'Automatically fill the next hold with an automatic check in.','YesNo'),
97
('AutomaticCheckinAutoFill','0',NULL,'Automatically fill the next hold with an automatic check in.','YesNo'),
Lines 873-876 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
873
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
874
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
874
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
875
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
875
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
876
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
876
;
877
;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-2 / +7 lines)
Lines 763-768 Circulation: Link Here
763
            - pref: HoldRatioDefault
763
            - pref: HoldRatioDefault
764
              class: integer
764
              class: integer
765
            - .
765
            - .
766
        -
767
            - Automatically delete items from cart when placing on hold on the
768
            - pref: AutoDeleteFromCartWhenHoldPlaced
769
              multiple:
770
                  staff: staff interface
771
                  opac: OPAC
766
        -
772
        -
767
            - In the staff interface, split the holds queue into separate tables by
773
            - In the staff interface, split the holds queue into separate tables by
768
            - pref: HoldsSplitQueue
774
            - pref: HoldsSplitQueue
Lines 1514-1517 Circulation: Link Here
1514
              choices:
1520
              choices:
1515
                  1: Enable
1521
                  1: Enable
1516
                  0: Disable
1522
                  0: Disable
1517
            - "the curbside pickup module."
1523
            - "the curbside pickup module."
1518
- 

Return to bug 36868