Bug 19681: Correct result count formatting
authorDavid Bourgault <david.bourgault@inlibro.com>
Wed, 22 Nov 2017 18:58:21 +0000 (13:58 -0500)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Dec 2017 12:37:10 +0000 (09:37 -0300)
This simply passes the missing information to the template.

Test plan:
0) Apply patch
1) Go to Tools > Label creator > New > Label batch
2) Press 'Add items'
3) Do a search that will return few items
4) The result count will read "Results 1 through X of X"

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

labels/label-item-search.pl

index 53b7d46..d93c922 100755 (executable)
@@ -202,6 +202,8 @@ if ($show_results) {
 
     }
     else {
+        $from = 1;
+        $to = $total_hits;
         $displayprev = 0;
         $displaynext = 0;
     }