From 523f1a11906c67e1131781945efec7cfe78eabb6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 20 May 2019 12:14:08 +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 | 56 ++++++++++++++-------- 1 file changed, 35 insertions(+), 21 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 e384b13..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 @@ -259,17 +259,11 @@
[% IF ( batch_list ) %] - [% IF ( pages ) %] -
- [% FOREACH page IN pages %] - [% IF ( page.current_page ) %] - [% page.page_number | html %] - [% ELSE %] - [% page.page_number | html %] - [% END %] - [% END %] -
- [% END %] + +[% IF ( pages ) %] + [% PROCESS pagination %] +[% END %] + @@ -326,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 %] @@ -511,3 +497,31 @@ [% END %] [% INCLUDE 'intranet-bottom.inc' %] +[% BLOCK pagination %] + +[% END %] \ No newline at end of file -- 2.1.4