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

(-)a/installer/data/mysql/atomicupdate/bug_33945.pl (+15 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "33945",
5
    description => "Add system preference LoadCheckoutsTableDelay",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        # Do you stuffs here
10
        $dbh->do(q{
11
            INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
12
            VALUES ('LoadCheckoutsTableDelay','0','','Delay before auto-loading checkouts table on checkouts screen','Integer')
13
        });
14
    },
15
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 350-355 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
350
('LinkerRelink','1',NULL,'If ON the authority linker will relink headings that have previously been linked every time it runs.','YesNo'),
350
('LinkerRelink','1',NULL,'If ON the authority linker will relink headings that have previously been linked every time it runs.','YesNo'),
351
('ListOwnerDesignated', NULL, NULL, 'Designated list owner at patron deletion', 'Free'),
351
('ListOwnerDesignated', NULL, NULL, 'Designated list owner at patron deletion', 'Free'),
352
('ListOwnershipUponPatronDeletion', 'delete', 'delete|transfer', 'Defines the action on their public or shared lists when patron is deleted', 'Choice'),
352
('ListOwnershipUponPatronDeletion', 'delete', 'delete|transfer', 'Defines the action on their public or shared lists when patron is deleted', 'Choice'),
353
('LoadCheckoutsTableDelay','0','','Delay before auto-loading checkouts table on checkouts screen','Integer'),
353
('LoadSearchHistoryToTheFirstLoggedUser', '1', NULL, 'If ON, the next user will automatically get the last searches in their history', 'YesNo'),
354
('LoadSearchHistoryToTheFirstLoggedUser', '1', NULL, 'If ON, the next user will automatically get the last searches in their history', 'YesNo'),
354
('LocalCoverImages','0','1','Display local cover images on intranet details pages.','YesNo'),
355
('LocalCoverImages','0','1','Display local cover images on intranet details pages.','YesNo'),
355
('LocalHoldsPriority',  '0', NULL,  'Enables the LocalHoldsPriority feature',  'YesNo'),
356
('LocalHoldsPriority',  '0', NULL,  'Enables the LocalHoldsPriority feature',  'YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+5 lines)
Lines 171-176 Circulation: Link Here
171
            - circulation desks with circulation.
171
            - circulation desks with circulation.
172
172
173
    Checkout policy:
173
    Checkout policy:
174
        -
175
            - Delay the automatic loading of the checkouts table on the checkouts page by
176
            - pref: LoadCheckoutsTableDelay
177
              class: integer
178
            - seconds when "Always show checkouts immediately" is enabled.
174
        -
179
        -
175
            - pref: OnSiteCheckoutAutoCheck
180
            - pref: OnSiteCheckoutAutoCheck
176
              choices:
181
              choices:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (+1 lines)
Lines 1039-1044 Link Here
1039
1039
1040
    <script>
1040
    <script>
1041
        /* Set some variable needed in circulation.js */
1041
        /* Set some variable needed in circulation.js */
1042
        const LoadCheckoutsTableDelay = [% Koha.Preference('LoadCheckoutsTableDelay') | html %];
1042
        var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1043
        var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1043
        var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
1044
        var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
1044
        var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
1045
        var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (+1 lines)
Lines 919-924 Link Here
919
    [% Asset.js("js/members-menu.js") | $raw %]
919
    [% Asset.js("js/members-menu.js") | $raw %]
920
    [% Asset.js("js/recalls.js") | $raw %]
920
    [% Asset.js("js/recalls.js") | $raw %]
921
    <script>
921
    <script>
922
        const LoadCheckoutsTableDelay = 0;
922
923
923
        table_settings_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'issues-table', 'json' ) | $raw %]
924
        table_settings_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'issues-table', 'json' ) | $raw %]
924
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'relatives-issues-table', 'json' ) | $raw %]
925
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'relatives-issues-table', 'json' ) | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-2 / +8 lines)
Lines 1-6 Link Here
1
/* global __ */
1
/* global __ */
2
2
3
$(document).ready(function() {
3
$(document).ready(function() {
4
    var loadIssuesTableDelayTimeoutId;
5
4
    var barcodefield = $("#barcode");
6
    var barcodefield = $("#barcode");
5
7
6
    var onHoldDueDateSet = false;
8
    var onHoldDueDateSet = false;
Lines 242-247 $(document).ready(function() { Link Here
242
        barcodefield.focus();
244
        barcodefield.focus();
243
    });
245
    });
244
    $('#issues-table-load-now-button').click(function(){
246
    $('#issues-table-load-now-button').click(function(){
247
        if ( loadIssuesTableDelayTimeoutId ) clearTimeout(loadIssuesTableDelayTimeoutId);
245
        LoadIssuesTable();
248
        LoadIssuesTable();
246
        barcodefield.focus();
249
        barcodefield.focus();
247
        return false;
250
        return false;
Lines 252-258 $(document).ready(function() { Link Here
252
    });
255
    });
253
256
254
    if ( Cookies.get("issues-table-load-immediately-" + script) == "true" ) {
257
    if ( Cookies.get("issues-table-load-immediately-" + script) == "true" ) {
255
        LoadIssuesTable();
258
        if ( LoadCheckoutsTableDelay ) {
259
            loadIssuesTableDelayTimeoutId = setTimeout( function(){ LoadIssuesTable() }, LoadCheckoutsTableDelay * 1000);
260
        } else {
261
            LoadIssuesTable();
262
        }
256
        $('#issues-table-load-immediately').prop('checked', true);
263
        $('#issues-table-load-immediately').prop('checked', true);
257
    }
264
    }
258
    $('#issues-table-load-immediately').on( "change", function(){
265
    $('#issues-table-load-immediately').on( "change", function(){
259
- 

Return to bug 33945