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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +1 lines)
Lines 1007-1013 Link Here
1007
        var theme = "[% theme | html %]";
1007
        var theme = "[% theme | html %]";
1008
        var borrowernumber = "[% patron.borrowernumber | html %]";
1008
        var borrowernumber = "[% patron.borrowernumber | html %]";
1009
        var branchcode = "[% branch | html %]";
1009
        var branchcode = "[% branch | html %]";
1010
        var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1010
        var exports_enabled = [% Koha.Preference('ExportCircHistory') ? 1 : 0 | html %];
1011
        var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1011
        var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1012
        var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1012
        var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1013
        var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1013
        var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-5 / +18 lines)
Lines 32-37 function LoadIssuesTable() { Link Here
32
    $('#issues-table').show();
32
    $('#issues-table').show();
33
    $('#issues-table-actions').show();
33
    $('#issues-table-actions').show();
34
    var msg_loading = __('Loading... you may continue scanning.');
34
    var msg_loading = __('Loading... you may continue scanning.');
35
    if (!AllowCirculate) {
36
        table_settings_issues_table.columns.find(
37
            c => c.columnname == "renew"
38
        ).is_hidden = 42;
39
        table_settings_issues_table.columns.find(
40
            c => c.columnname == "checkin"
41
        ).is_hidden = 1;
42
    }
43
    if (!ClaimReturnedLostValue) {
44
        table_settings_issues_table.columns.find(
45
            c => c.columnname == "claims_returned"
46
        ).is_hidden = 1;
47
    }
48
    if (!exports_enabled) {
49
        table_settings_issues_table.columns.find(
50
            c => c.columnname == "export"
51
        ).is_hidden = 1;
52
    }
35
    issuesTable = KohaTable("issues-table", {
53
    issuesTable = KohaTable("issues-table", {
36
        "language":  {
54
        "language":  {
37
            "emptyTable":  msg_loading,
55
            "emptyTable":  msg_loading,
Lines 224-230 function LoadIssuesTable() { Link Here
224
            },
242
            },
225
            {
243
            {
226
                "orderable":  false,
244
                "orderable":  false,
227
                "visible":  AllowCirculate ? true : false,
228
                "data": function ( oObj ) {
245
                "data": function ( oObj ) {
229
                    var content = "";
246
                    var content = "";
230
                    var msg = "";
247
                    var msg = "";
Lines 363-369 function LoadIssuesTable() { Link Here
363
            },
380
            },
364
            {
381
            {
365
                "orderable":  false,
382
                "orderable":  false,
366
                "visible":  AllowCirculate ? true : false,
367
                "data": function ( oObj ) {
383
                "data": function ( oObj ) {
368
                    if ( oObj.can_renew_error == "recalled" ) {
384
                    if ( oObj.can_renew_error == "recalled" ) {
369
                        return "<a href='/cgi-bin/koha/recalls/request.pl?biblionumber=" + oObj.biblionumber + "'>" + __("Recalled") + "</a>";
385
                        return "<a href='/cgi-bin/koha/recalls/request.pl?biblionumber=" + oObj.biblionumber + "'>" + __("Recalled") + "</a>";
Lines 377-383 function LoadIssuesTable() { Link Here
377
                }
393
                }
378
            },
394
            },
379
            {
395
            {
380
                "visible":  ClaimReturnedLostValue ? true : false,
381
                "orderable":  false,
396
                "orderable":  false,
382
                "data": function ( oObj ) {
397
                "data": function ( oObj ) {
383
                    let content = "";
398
                    let content = "";
Lines 393-399 function LoadIssuesTable() { Link Here
393
                }
408
                }
394
            },
409
            },
395
            {
410
            {
396
                "visible":  exports_enabled == 1 ? true : false,
397
                "orderable":  false,
411
                "orderable":  false,
398
                "data": function ( oObj ) {
412
                "data": function ( oObj ) {
399
                    var s = "<input type='checkbox' name='itemnumbers' value='" + oObj.itemnumber + "' style='visibility:hidden;' />";
413
                    var s = "<input type='checkbox' name='itemnumbers' value='" + oObj.itemnumber + "' style='visibility:hidden;' />";
400
- 

Return to bug 33484