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

(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 429-432 INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) V Link Here
429
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('CalculateFinesOnReturn','1','Switch to control if overdue fines are calculated on return or not', '', 'YesNo');
429
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('CalculateFinesOnReturn','1','Switch to control if overdue fines are calculated on return or not', '', 'YesNo');
430
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AcqWarnOnDuplicateInvoice','0','Warn librarians when they try to create a duplicate invoice', '', 'YesNo');
430
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AcqWarnOnDuplicateInvoice','0','Warn librarians when they try to create a duplicate invoice', '', 'YesNo');
431
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowTooManyOverride', '1', 'If on, allow staff to override and check out items when the patron has reached the maximum number of allowed checkouts', '', 'YesNo');
431
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowTooManyOverride', '1', 'If on, allow staff to override and check out items when the patron has reached the maximum number of allowed checkouts', '', 'YesNo');
432
INSERT INTO systempreferences (variable, value, explanation, options, type) VALUES ('StaffDetailItemSelection', '0', 'Enable item selection in record detail page', NULL, 'YesNo');
432
INSERT INTO systempreferences (variable, value, explanation, options, type) VALUES ('StaffDetailItemSelection', '1', 'Enable item selection in record detail page', NULL, 'YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +1 lines)
Lines 7062-7068 $DBversion = "XXX"; Link Here
7062
if (C4::Context->preference('Version') < TransformToNum($DBversion)) {
7062
if (C4::Context->preference('Version') < TransformToNum($DBversion)) {
7063
    $dbh->do(qq{
7063
    $dbh->do(qq{
7064
        INSERT INTO systempreferences (variable, value, explanation, options, type)
7064
        INSERT INTO systempreferences (variable, value, explanation, options, type)
7065
        VALUES ('StaffDetailItemSelection', '0', 'Enable item selection in record detail page', NULL, 'YesNo')
7065
        VALUES ('StaffDetailItemSelection', '1', 'Enable item selection in record detail page', NULL, 'YesNo')
7066
    });
7066
    });
7067
    print "Upgrade to $DBversion done (Add system preference StaffDetailItemSelection)\n";
7067
    print "Upgrade to $DBversion done (Add system preference StaffDetailItemSelection)\n";
7068
    SetVersion($DBversion);
7068
    SetVersion($DBversion);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +8 lines)
Lines 114-119 function verify_images() { Link Here
114
            if (table.find('thead tr.columnFilter').length == 0) {
114
            if (table.find('thead tr.columnFilter').length == 0) {
115
                table.dataTable().columnFilter({
115
                table.dataTable().columnFilter({
116
                    'sPlaceHolder': 'head:after'
116
                    'sPlaceHolder': 'head:after'
117
                    [% IF StaffDetailItemSelection %]
118
                    ,   aoColumns: [ null, 'text', 'text', 'text', 'text', 'text', 'text', 'text' ]
119
                    [% END %]
117
                });
120
                });
118
                filters_row.addClass('columnFilter');
121
                filters_row.addClass('columnFilter');
119
            }
122
            }
Lines 163-168 function verify_images() { Link Here
163
                'sDom': 't',
166
                'sDom': 't',
164
                'bPaginate': false,
167
                'bPaginate': false,
165
                'bAutoWidth': false
168
                'bAutoWidth': false
169
                [% IF StaffDetailItemSelection %]
170
                ,   "aoColumnDefs": [
171
                        { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
172
                    ]
173
                [% END %]
166
            }));
174
            }));
167
175
168
            // Show a link to activate filtering
176
            // Show a link to activate filtering
169
- 

Return to bug 9044