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 81-86 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
81
('AutoShareWithMana','subscription','','defines datas automatically shared with mana','multiple'),
81
('AutoShareWithMana','subscription','','defines datas automatically shared with mana','multiple'),
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
('AutomaticWrongTransfer','0',NULL,'Defines whether transfers should be automatically confirmed at checin if modal dismissed','YesNo'),
84
('autoMemberNum','0','','If ON, patron number is auto-calculated','YesNo'),
85
('autoMemberNum','0','','If ON, patron number is auto-calculated','YesNo'),
85
('AutoRemoveOverduesRestrictions','0',NULL,'Defines whether an OVERDUES debarment should be lifted automatically if all overdue items are returned by the patron.','YesNo'),
86
('AutoRemoveOverduesRestrictions','0',NULL,'Defines whether an OVERDUES debarment should be lifted automatically if all overdue items are returned by the patron.','YesNo'),
86
('AutoRenewalNotices','cron','cron|preferences|never','How should Koha determine whether to end autorenewal notices','Choice'),
87
('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 1608-1613 Link Here
1608
            $('.printModal').click(function() {
1608
            $('.printModal').click(function() {
1609
                window.print();
1609
                window.print();
1610
            });
1610
            });
1611
            [% IF ( !(Koha.Preference('TransfersBlockCirc')) && Koha.Preference('AutomaticConfirmTransfer') ) %]
1612
                $("#wrong-transfer-modal").on('hidden.bs.modal',function(){
1613
                    $("#wrongtransferform").submit();
1614
                });
1615
                [% IF (transfer) %]
1616
                    $("#item-transfer-modal").on('hidden.bs.modal',function(){
1617
                        $("#mainform").submit();
1618
                    });
1619
                [% END %]
1620
            [% END %]
1611
        });
1621
        });
1612
    </script>
1622
    </script>
1613
1623
1614
- 

Return to bug 29792