From 35fb1fe67cef029201eef6fd53c2d0e4af82195c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 6 Jun 2018 14:54:58 +0000 Subject: [PATCH] Bug 6647: Label item search should use standard pagination routine This patch doesn't fix how pagination links are generated for the label item search results, but it does modify the template so that the pagination links are styled like they are on catalog search results. To test, apply the patch and go to Tools -> Labels. - Open or create a label batch. - Click "Add items" to trigger the pop-up search window. - Perform a search which would return multiple results. - Confirm that the style of the pagination bar matches the one on the catalog search results page. - Confirm that current-page number highlighting works correctly. Signed-off-by: Maryse Simard Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- .../prog/en/modules/labels/result.tt | 53 ++++++++----------- 1 file changed, 23 insertions(+), 30 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt index c02a2170d3..0efee7d470 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt @@ -1,3 +1,24 @@ +[% BLOCK pagination %] + +[% END %] [% USE Asset %] [% INCLUDE 'doc-head-open.inc' %] Koha › Barcodes and labels › Search results @@ -53,19 +74,7 @@

Search results

- [% IF ( displayprev || displaynext ) %] -

- [% IF ( displayprev ) %] - << - [% END %] - [% FOREACH number IN numbers %] - [% number.number %] - [% END %] - [% IF ( displaynext ) %] - >> - [% END %] -

- [% END %] + [% PROCESS pagination %] [% IF ( results ) %] Results [% from %] through [% to %] [% IF ( total ) %] of [% total %][% END %] [% ELSE %] @@ -132,23 +141,7 @@ z [% END -%]
- [% IF ( displayprev || displaynext ) %] -

- [% IF ( displayprev ) %] - << - [% END %] - [% FOREACH number IN numbers %] - [% IF ( number.highlight ) %] - [% number.number %] - [% ELSE %] - [% number.number %] - [% END %] - [% END %] - [% IF ( displaynext ) %] - >> - [% END %] -

+ [% PROCESS pagination %] - [% END %] [% INCLUDE 'popup-bottom.inc' %] -- 2.39.5