Bug 9044: QA followup
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 17 Jun 2013 10:11:27 +0000 (12:11 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 31 Oct 2013 05:30:36 +0000 (05:30 +0000)
1/ Remove filter and sort for the checkboxes column.
2/ Enable the pref by default.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index 5acf259..1ee481b 100644 (file)
@@ -350,7 +350,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('SpineLabelShowPrintOnBibDetails','0','','If turned on, a \"Print Label\" link will appear for each item on the bib details page in the staff interface.','YesNo'),
 ('StaffAuthorisedValueImages','1',NULL,'','YesNo'),
 ('staffClientBaseURL','',NULL,'Specify the base URL of the staff client','free'),
-('StaffDetailItemSelection', '0', NULL, 'Enable item selection in record detail page', 'YesNo');
+('StaffDetailItemSelection', '1', NULL, 'Enable item selection in record detail page', 'YesNo');
 ('StaffSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the Staff client','Integer'),
 ('StaticHoldsQueueWeight','0',NULL,'Specify a list of library location codes separated by commas -- the list of codes will be traversed and weighted with first values given higher weight for holds fulfillment -- alternatively, if RandomizeHoldsQueueWeight is set, the list will be randomly selective','Integer'),
 ('SubfieldsToUseWhenPrefill','','','Define a list of subfields to use when prefilling items (separated by space)','Free'),
index de313c2..0fb9af6 100755 (executable)
@@ -7630,7 +7630,7 @@ $DBversion = "XXX";
 if ( CheckVersion($DBversion) ) {
     $dbh->do(qq{
         INSERT INTO systempreferences (variable, value, explanation, options, type)
-        VALUES ('StaffDetailItemSelection', '0', 'Enable item selection in record detail page', NULL, 'YesNo')
+        VALUES ('StaffDetailItemSelection', '1', 'Enable item selection in record detail page', NULL, 'YesNo')
     });
     print "Upgrade to $DBversion done (Add system preference StaffDetailItemSelection)\n";
     SetVersion($DBversion);
index 1f8274b..7914ee9 100644 (file)
@@ -149,6 +149,9 @@ function verify_images() {
             if (table.find('thead tr.columnFilter').length == 0) {
                 table.dataTable().columnFilter({
                     'sPlaceHolder': 'head:after'
+                    [% IF StaffDetailItemSelection %]
+                    ,   aoColumns: [ null, 'text', 'text', 'text', 'text', 'text', 'text', 'text' ]
+                    [% END %]
                 });
                 filters_row.addClass('columnFilter');
             }
@@ -198,6 +201,11 @@ function verify_images() {
                 'sDom': 't',
                 'bPaginate': false,
                 'bAutoWidth': false
+                [% IF StaffDetailItemSelection %]
+                ,   "aoColumnDefs": [
+                        { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
+                    ]
+                [% END %]
             }));
 
             // Show a link to activate filtering