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

(-)a/installer/data/mysql/atomicupdate/bug-16606_AddCheckoutSettingsVisibilitysyspref.sql (+1 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('CheckoutSettingsVisibility', '0', NULL, 'If on Checkout settings will always be visible', 'YesNo');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 97-102 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
97
('CatalogModuleRelink','0',NULL,'If OFF the linker will never replace the authids that are set in the cataloging module.','YesNo'),
97
('CatalogModuleRelink','0',NULL,'If OFF the linker will never replace the authids that are set in the cataloging module.','YesNo'),
98
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
98
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
99
('checkdigit','none','none|katipo','If ON, enable checks on patron cardnumber: none or \"Katipo\" style checks','Choice'),
99
('checkdigit','none','none|katipo','If ON, enable checks on patron cardnumber: none or \"Katipo\" style checks','Choice'),
100
('CheckoutSettingsVisibility', '0', NULL, 'If on Checkout settings will always be visible', 'YesNo'),
100
('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'),
101
('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'),
101
('CircAutocompl','1',NULL,'If ON, autocompletion is enabled for the Circulation input','YesNo'),
102
('CircAutocompl','1',NULL,'If ON, autocompletion is enabled for the Circulation input','YesNo'),
102
('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'),
103
('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+6 lines)
Lines 2-7 Circulation: Link Here
2
# FIXME: printcirculationslips is also omitted. It _technically_ could work, but C4::Print is HLT specific and needs a little bit of refactoring.
2
# FIXME: printcirculationslips is also omitted. It _technically_ could work, but C4::Print is HLT specific and needs a little bit of refactoring.
3
    Interface:
3
    Interface:
4
        -
4
        -
5
            - pref: CheckoutSettingsVisibility
6
              choices:
7
                yes: Always show
8
                no: Hide 
9
            - checkout settings by default.
10
        -
5
            - pref: CircAutocompl
11
            - pref: CircAutocompl
6
              choices:
12
              choices:
7
                  yes: Try
13
                  yes: Try
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +4 lines)
Lines 88-93 function Dopop(link) { Link Here
88
    var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
88
    var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
89
}
89
}
90
$(document).ready(function() {
90
$(document).ready(function() {
91
92
    [% IF Koha.Preference("CheckoutSettingsVisibility") %]
93
    $(".checkout-settings").show();
94
    [% END %]
91
    $('#mainform').on('submit',function() {
95
    $('#mainform').on('submit',function() {
92
        if ($("#barcode") && $("#barcode").val()) {
96
        if ($("#barcode") && $("#barcode").val()) {
93
            $('#barcode').on('keypress',function(event) {
97
            $('#barcode').on('keypress',function(event) {
94
- 

Return to bug 16606