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

(-)a/installer/data/mysql/atomicupdate/bug_29792_add_AutomaticConfirmTransfer_preference.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "29792",
5
    description => "Add AutomaticConfirmTransfer system preference",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{
10
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
11
            ('AutomaticConfirmTransfer','0',NULL,'Defines whether transfers should be automatically confirmed at checkin if modal dismissed','YesNo')
12
        });
13
        # Print useful stuff here
14
        say $out "AutomaticConfirmTransfer system preference added";
15
    },
16
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 82-87 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
82
('AutoLocation','0',NULL,'If ON, IP authentication is enabled, blocking access to the staff interface from unauthorized IP addresses','YesNo'),
82
('AutoLocation','0',NULL,'If ON, IP authentication is enabled, blocking access to the staff interface from unauthorized IP addresses','YesNo'),
83
('AutomaticItemReturn','1',NULL,'If ON, Koha will automatically set up a transfer of this item to its homebranch','YesNo'),
83
('AutomaticItemReturn','1',NULL,'If ON, Koha will automatically set up a transfer of this item to its homebranch','YesNo'),
84
('AutoLinkBiblios','0',NULL,'If enabled, link biblio to authorities on creation and edit','YesNo'),
84
('AutoLinkBiblios','0',NULL,'If enabled, link biblio to authorities on creation and edit','YesNo'),
85
('AutomaticWrongTransfer','0',NULL,'Defines whether transfers should be automatically confirmed at checkin if modal dismissed','YesNo'),
85
('autoMemberNum','0','','If ON, patron number is auto-calculated','YesNo'),
86
('autoMemberNum','0','','If ON, patron number is auto-calculated','YesNo'),
86
('AutoRemoveOverduesRestrictions','0',NULL,'Defines whether an OVERDUES debarment should be lifted automatically if all overdue items are returned by the patron.','YesNo'),
87
('AutoRemoveOverduesRestrictions','0',NULL,'Defines whether an OVERDUES debarment should be lifted automatically if all overdue items are returned by the patron.','YesNo'),
87
('AutoRenewalNotices','cron','cron|preferences|never','How should Koha determine whether to end autorenewal notices','Choice'),
88
('AutoRenewalNotices','cron','cron|preferences|never','How should Koha determine whether to end autorenewal notices','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+6 lines)
Lines 647-652 Circulation: Link Here
647
                  1: "Block"
647
                  1: "Block"
648
                  0: "Don't block"
648
                  0: "Don't block"
649
            - staff from continuing to checkin items when a transfer is triggered.
649
            - staff from continuing to checkin items when a transfer is triggered.
650
        -
651
            - pref: AutomaticConfirmTransfer
652
              choices:
653
                  1: "Do"
654
                  0: "Don't"
655
            - automatically confirm a transfer when the modal is dismissed without clicking 'Yes'.
650
        -
656
        -
651
            - pref: StoreLastBorrower
657
            - pref: StoreLastBorrower
652
              default: 0
658
              default: 0
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +10 lines)
Lines 1609-1614 Link Here
1609
            $('.printModal').click(function() {
1609
            $('.printModal').click(function() {
1610
                window.print();
1610
                window.print();
1611
            });
1611
            });
1612
            [% IF ( !(Koha.Preference('TransfersBlockCirc')) && Koha.Preference('AutomaticConfirmTransfer') ) %]
1613
                $("#wrong-transfer-modal").on('hidden.bs.modal',function(){
1614
                    $("#wrongtransferform").submit();
1615
                });
1616
                [% IF (transfer) %]
1617
                    $("#item-transfer-modal").on('hidden.bs.modal',function(){
1618
                        $("#mainform").submit();
1619
                    });
1620
                [% END %]
1621
            [% END %]
1612
        });
1622
        });
1613
    </script>
1623
    </script>
1614
1624
1615
- 

Return to bug 29792