From 6229c5bbec6e3b55db4aa9180f16d230b398fe9a Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@biblibre.com>
Date: Wed, 10 Dec 2014 10:59:19 +0100
Subject: [PATCH] Bug 13371: Fix filtering on numbers

This patch fixes a weird bug on some instances.
Since the sort is disabled on this table, we don't care on the type of
the data.
It should allow to filter on all columns of the table.
---
 .../prog/en/modules/acqui/booksellers.tt           | 30 ++++++++++------------
 1 file changed, 14 insertions(+), 16 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
index afb285a..1c987c2 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
@@ -59,11 +59,11 @@ $(document).ready(function() {
             'bUseColVis': true,
             'aoColumns': [
                 null,
-                { type: 'number' },
                 { type: 'text' },
-                { type: 'number' },
-                { type: 'number' },
-                { type: 'number' },
+                { type: 'text' },
+                { type: 'text' },
+                { type: 'text' },
+                { type: 'text' },
                 { type: 'text' },
                 { type: 'date-range' },
                 { type: 'text' },
@@ -141,8 +141,8 @@ $(document).ready(function() {
                 <th class='NoVisible'>bookseller</th>
                 <th>No.</th>
                 <th>Name</th>
-                <th class="title-numeric">Item count</th>
-                <th class="title-numeric">Biblio count</th>
+                <th>Item count</th>
+                <th>Biblio count</th>
                 <th>Items expected</th>
                 <th>Created by</th>
                 <th class="title-string">Date</th>
@@ -184,18 +184,16 @@ $(document).ready(function() {
                     <td>[% basket.basketno %]</td>
                     <td>[% basket.basketname %]</td>
                     <td>
-                        <span title="[% basket.total_items %]">[% basket.total_items %]
-                            [% IF basket.total_items_cancelled %]
-                                ([% basket.total_items_cancelled %] cancelled)
-                            [% END %]
-                        </span>
+                        [% basket.total_items %]
+                        [% IF basket.total_items_cancelled %]
+                            ([% basket.total_items_cancelled %] cancelled)
+                        [% END %]
                     </td>
                     <td>
-                        <span title="[% basket.total_biblios %]">[% basket.total_biblios %]
-                            [% IF basket.total_biblios_cancelled %]
-                                ([% basket.total_biblios_cancelled %] cancelled)
-                            [% END %]
-                        </span>
+                        [% basket.total_biblios %]
+                        [% IF basket.total_biblios_cancelled %]
+                            ([% basket.total_biblios_cancelled %] cancelled)
+                        [% END %]
                     </td>
                     <td>[% basket.expected_items %]</td>
                     <td>
-- 
2.1.0