From 1ece4fda9d43e90563e4d4fed1d5a598b0458b8e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 11 Jun 2019 13:20:27 +0000 Subject: [PATCH] Bug 23094: Use Bootstrap-style pagination on staged MARC records page This patch makes markup and CSS changes in order to make the pagination links on the staged MARC records page consistent with the links on the catalog search results page. The patch also adds Font Awesome icons to the catalog search results pagination include, replacing angle bracket symbols. To test, apply the patch and rebuild the staff client CSS. (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). To test properly you should have enough staged marc record batches that there are multiple pages to list. Go to Tools -> Manage staged MARC records. Test that the pagination links look consistent with the catalog search results page and that they work correctly. --- .../prog/en/modules/tools/manage-marc-import.tt | 67 ++++++++++------------ 1 file changed, 31 insertions(+), 36 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index 07faf8c..0e62583 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -261,32 +261,7 @@ [% IF ( batch_list ) %] [% IF ( pages ) %] - + [% PROCESS pagination %] [% END %] @@ -345,17 +320,9 @@ [% END %]
- [% IF ( pages ) %] -
- [% FOREACH page IN pages %] - [% IF ( page.current_page ) %] - [% page.page_number | html %] - [% ELSE %] - [% page.page_number | html %] - [% END %] + [% IF ( pages ) %] + [% PROCESS pagination %] [% END %] -
- [% END %] [% END %] [% IF import_batch_id %] @@ -530,3 +497,31 @@ [% END %] [% INCLUDE 'intranet-bottom.inc' %] +[% BLOCK pagination %] + +[% END %] \ No newline at end of file -- 2.1.4