Bugzilla – Attachment 91385 Details for
Bug 23094
Use Bootstrap-style pagination on staged MARC records page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23094: Use Bootstrap-style pagination on staged MARC records page
Bug-23094-Use-Bootstrap-style-pagination-on-staged.patch (text/plain), 4.52 KB, created by
Katrin Fischer
on 2019-07-06 08:32:58 UTC
(
hide
)
Description:
Bug 23094: Use Bootstrap-style pagination on staged MARC records page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-07-06 08:32:58 UTC
Size:
4.52 KB
patch
obsolete
>From 9ae5567de19601a9fb3f74a4acd885ed1488a866 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 26 Jun 2019 14:57:18 +0000 >Subject: [PATCH] Bug 23094: Use Bootstrap-style pagination on staged MARC > records page > >This patch makes markup changes in order to make the pagination links on >the staged MARC records page consistent with the links on the catalog >search results page. > >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. > >Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/tools/manage-marc-import.tt | 48 ++++++++++++++-------- > 1 file changed, 30 insertions(+), 18 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 13b0309a07..277e1bfe24 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 >@@ -312,15 +312,7 @@ > > [% IF ( batch_list ) %] > [% IF ( pages ) %] >- <div class="pages"> >- [% FOREACH page IN pages %] >- [% IF ( page.current_page ) %] >- <span class="current">[% page.page_number | html %]</span> >- [% ELSE %] >- <a href="[% page.script_name | url %]?offset=[% page.offset | uri %]">[% page.page_number | html %]</a> >- [% END %] >- [% END %] >- </div> >+ [% PROCESS pagination %] > [% END %] > > <table> >@@ -381,15 +373,7 @@ > </table> > > [% IF ( pages ) %] >- <div class="pages"> >- [% FOREACH page IN pages %] >- [% IF ( page.current_page ) %] >- <span class="current">[% page.page_number | html %]</span> >- [% ELSE %] >- <a href="[% page.script_name | url %]?offset=[% page.offset | uri %]">[% page.page_number | html %]</a> >- [% END %] >- [% END %] >- </div> >+ [% PROCESS pagination %] > [% END %] > [% END # /IF batch_lis %] > >@@ -565,3 +549,31 @@ > </script> > [% END %] > [% INCLUDE 'intranet-bottom.inc' %] >+[% BLOCK pagination %] >+ <nav> >+ <ul class="pagination"> >+ [% FOREACH page IN pages %] >+ [% IF ( page.current_page && page.page_number > 1 ) %] >+ <li><a href="[% page.script_name | url %]?offset=0" class="nav"><i class="fa fa-fw fa-angle-double-left"></i> First</a></li> >+ <li><a href="[% page.script_name | url %]?offset=[% offset - results_per_page | uri %]"><i class="fa fa-fw fa-angle-left"></i> Previous</a></li> >+ [% END %] >+ [% END %] >+ [% FOREACH page IN pages %] >+ [% IF ( page.current_page ) %] >+ [% SET current_page = page.page_number %] >+ <li class="active"><span class="current">[% page.page_number | html %]</span></li> >+ [% ELSE %] >+ <li><a class="nav" href="[% page.script_name | url %]?offset=[% page.offset | uri %]">[% page.page_number | html %]</a></li> >+ [% END %] >+ [% END %] >+ [% IF ( current_page < pages.size() ) %] >+ <li> >+ <a href="[% page.script_name | url %]?offset=[% offset + results_per_page | uri %]" class="nav">Next <i class="fa fa-fw fa-angle-right"></i></a> >+ </li> >+ <li> >+ <a href="[% page.script_name | url %]?offset=[% ( results_per_page * ( pages.size - 1 ) ) | uri %]" class="nav">Last <i class="fa fa-fw fa-angle-double-right"></i></a> >+ </li> >+ [% END %] >+ </ul> >+ </nav> >+[% END %] >\ No newline at end of file >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23094
:
90485
|
90515
|
91027
|
91375
| 91385