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

(-)a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css (+15 lines)
Lines 385-390 legend { Link Here
385
    width: auto;
385
    width: auto;
386
}
386
}
387
387
388
details > summary {
389
    cursor: pointer;
390
}
391
392
details > summary::before {
393
    content: "\f0da";
394
    display: inline-block;
395
    font-family: FontAwesome;
396
    width: 1em;
397
}
398
399
details[open] > summary::before {
400
    content: "\f0d7";
401
}
402
388
#floating-save {
403
#floating-save {
389
    background-color: rgba(185, 216, 217, 0.6);
404
    background-color: rgba(185, 216, 217, 0.6);
390
    bottom: 3%;
405
    bottom: 3%;
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-2 / +18 lines)
Lines 475-481 $(document).ready(function() { Link Here
475
                    fnCallback(json)
475
                    fnCallback(json)
476
                } );
476
                } );
477
            },
477
            },
478
            "fnInitComplete": function(oSettings) {
478
            "fnInitComplete": function(oSettings, json) {
479
                // Disable rowGrouping plugin after first use
479
                // Disable rowGrouping plugin after first use
480
                // so any sorting on the table doesn't use it
480
                // so any sorting on the table doesn't use it
481
                var oSettings = issuesTable.fnSettings();
481
                var oSettings = issuesTable.fnSettings();
Lines 488-493 $(document).ready(function() { Link Here
488
                }
488
                }
489
489
490
                oSettings.aaSortingFixed = null;
490
                oSettings.aaSortingFixed = null;
491
492
                // Build a summary of checkouts grouped by itemtype
493
                var checkoutsByItype = json.aaData.reduce(function (obj, row) {
494
                    obj[row.itemtype_description] = (obj[row.itemtype_description] || 0) + 1;
495
                    return obj;
496
                }, {});
497
                var ul = $('<ul>');
498
                Object.keys(checkoutsByItype).sort().forEach(function (itype) {
499
                    var li = $('<li>')
500
                        .append($('<strong>').html(itype || _("No itemtype")))
501
                        .append(': ' + checkoutsByItype[itype]);
502
                    ul.append(li);
503
                })
504
                $('<details>')
505
                    .append($('<summary>').html(_("Number of checkouts by item type")))
506
                    .append(ul)
507
                    .insertBefore(oSettings.nTableWrapper)
491
            },
508
            },
492
        }, columns_settings).rowGrouping(
509
        }, columns_settings).rowGrouping(
493
            {
510
            {
494
- 

Return to bug 20343