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

(-)a/circ/circulation.pl (+6 lines)
Lines 82-87 if (!C4::Context->userenv){ Link Here
82
    }
82
    }
83
}
83
}
84
84
85
if (C4::Context->preference("AutoSwitchPatron") ) {
86
    if (Koha::Patrons->search( { cardnumber => $query->param('barcode')} )->count() > 0) {
87
        print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=".$query->param('barcode'));
88
    }
89
}
90
85
my $barcodes = [];
91
my $barcodes = [];
86
my $barcode =  $query->param('barcode');
92
my $barcode =  $query->param('barcode');
87
# Barcode given by user could be '0'
93
# Barcode given by user could be '0'
(-)a/installer/data/mysql/atomicupdate/Bug15752_CircAutoSwitchPatron.sql (+2 lines)
Line 0 Link Here
1
INSERT INTO systempreferences (variable,value,options,explanation,type)
2
VALUES ('AutoSwitchPatron', '0', '', 'Auto switch to patron', 'YesNo');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 68-73 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
68
('AutoSelfCheckAllowed','0','','For corporate and special libraries which want web-based self-check available from any PC without the need for a manual staff login. Most libraries will want to leave this turned off. If on, requires self-check ID and password to be entered in AutoSelfCheckID and AutoSelfCheckPass sysprefs.','YesNo'),
68
('AutoSelfCheckAllowed','0','','For corporate and special libraries which want web-based self-check available from any PC without the need for a manual staff login. Most libraries will want to leave this turned off. If on, requires self-check ID and password to be entered in AutoSelfCheckID and AutoSelfCheckPass sysprefs.','YesNo'),
69
('AutoSelfCheckID','','','Staff ID with circulation rights to be used for automatic web-based self-check. Only applies if AutoSelfCheckAllowed syspref is turned on.','free'),
69
('AutoSelfCheckID','','','Staff ID with circulation rights to be used for automatic web-based self-check. Only applies if AutoSelfCheckAllowed syspref is turned on.','free'),
70
('AutoSelfCheckPass','','','Password to be used for automatic web-based self-check. Only applies if AutoSelfCheckAllowed syspref is turned on.','free'),
70
('AutoSelfCheckPass','','','Password to be used for automatic web-based self-check. Only applies if AutoSelfCheckAllowed syspref is turned on.','free'),
71
('AutoSwitchPatron', '0', '', 'Auto switch to patron', 'YesNo'),
71
('Babeltheque','0','','Turn ON Babeltheque content  - See babeltheque.com to subscribe to this service','YesNo'),
72
('Babeltheque','0','','Turn ON Babeltheque content  - See babeltheque.com to subscribe to this service','YesNo'),
72
('Babeltheque_url_js','','','Url for Babeltheque javascript (e.g. http://www.babeltheque.com/bw_XX.js)','Free'),
73
('Babeltheque_url_js','','','Url for Babeltheque javascript (e.g. http://www.babeltheque.com/bw_XX.js)','Free'),
73
('Babeltheque_url_update','','','Url for Babeltheque update (E.G. http://www.babeltheque.com/.../file.csv.bz2)','Free'),
74
('Babeltheque_url_update','','','Url for Babeltheque update (E.G. http://www.babeltheque.com/.../file.csv.bz2)','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +7 lines)
Lines 8-13 Circulation: Link Here
8
                  no: Deactivate
8
                  no: Deactivate
9
            - the navigation sidebar on all Circulation pages.
9
            - the navigation sidebar on all Circulation pages.
10
        -
10
        -
11
            - pref: AutoSwitchPatron
12
              choices:
13
                  yes: "Enable"
14
                  no: "Don't enable"
15
            - the automatic redirection to another patron when a patron barcode is scanned instead of a book.
16
            - This should not be enabled if you have overlapping patron and book barcodes.
17
        -
11
            - pref: CircAutocompl
18
            - pref: CircAutocompl
12
              choices:
19
              choices:
13
                  yes: Try
20
                  yes: Try
14
- 

Return to bug 15752