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 checkin 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 657-662 Circulation: Link Here
657
                  1: "Block"
657
                  1: "Block"
658
                  0: "Don't block"
658
                  0: "Don't block"
659
            - staff from continuing to checkin items when a transfer is triggered.
659
            - staff from continuing to checkin items when a transfer is triggered.
660
        -
661
            - pref: AutomaticConfirmTransfer
662
              choices:
663
                  1: "Do"
664
                  0: "Don't"
665
            - automatically confirm a transfer when the modal is dismissed without clicking 'Yes'.
660
        -
666
        -
661
            - pref: StoreLastBorrower
667
            - pref: StoreLastBorrower
662
              default: 0
668
              default: 0
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +10 lines)
Lines 1368-1373 Link Here
1368
                window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=checkinslip", "printwindow");
1368
                window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=checkinslip", "printwindow");
1369
            });
1369
            });
1370
1370
1371
            [% IF ( !(Koha.Preference('TransfersBlockCirc')) && Koha.Preference('AutomaticConfirmTransfer') ) %]
1372
                $("#wrong-transfer-modal").on('hidden.bs.modal',function(){
1373
                    $("#wrongtransferform").submit();
1374
                });
1375
                [% IF (transfer) %]
1376
                    $("#item-transfer-modal").on('hidden.bs.modal',function(){
1377
                        $("#mainform").submit();
1378
                    });
1379
                [% END %]
1380
            [% END %]
1371
        });
1381
        });
1372
    </script>
1382
    </script>
1373
[% END %]
1383
[% END %]
1374
- 

Return to bug 29792