Bugzilla – Attachment 59642 Details for
Bug 18005
Pagination of the search result displayed wrong
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18005: Re-styled pagination on search results with Bootstrap
Bug-18005-Re-styled-pagination-on-search-results-w.patch (text/plain), 3.44 KB, created by
Claire Gravely
on 2017-01-30 10:11:54 UTC
(
hide
)
Description:
Bug 18005: Re-styled pagination on search results with Bootstrap
Filename:
MIME Type:
Creator:
Claire Gravely
Created:
2017-01-30 10:11:54 UTC
Size:
3.44 KB
patch
obsolete
>From 7e09ae3b8444017b33b7012c72326fc7da064cb7 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Wed, 18 Jan 2017 12:36:37 +0000 >Subject: [PATCH] Bug 18005: Re-styled pagination on search results with > Bootstrap > >Test plan: >0. Don't apply path >1. Make catalogue search in staff client with more then 20 results, > scroll down to see that pagination is broken >2. Apply the patch >3. Make similar search and confirm, the pagination looks OK with new >style > >Signed-off-by: Claire Gravely <claire_gravely@hotmail.com> >--- > koha-tmpl/intranet-tmpl/prog/css/staff-global.css | 4 ++++ > koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc | 10 +++++----- > 2 files changed, 9 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >index a9da2ee..6b22201 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css >@@ -2637,6 +2637,10 @@ code { > padding: 0; > } > >+.pagination > li > a, .pagination > li > span { >+ font-weight: bold; >+} >+ > /* End Bootstrap overrides */ > > .waiting { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc >index 2992164..bf277c0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc >@@ -1,7 +1,7 @@ >-[% IF ( PAGE_NUMBERS ) %]<div class="pages"> >+[% IF ( PAGE_NUMBERS ) %]<nav><ul class="pagination"> > <!-- Row of numbers corresponding to search result pages --> >- [% IF ( previous_page_offset.defined ) %]<a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&offset=[% previous_page_offset %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]"><< Previous</a>[% END %] >- [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %][% IF ( PAGE_NUMBER.highlight ) %]<span class="current">[% PAGE_NUMBER.pg %]</span>[% ELSE %] <a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&offset=[% PAGE_NUMBER.offset %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">[% PAGE_NUMBER.pg %]</a>[% END %] >+ [% IF ( previous_page_offset.defined ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&offset=[% previous_page_offset %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]"><< Previous</a></li>[% END %] >+ [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %][% IF ( PAGE_NUMBER.highlight ) %]<li class="active"><span>[% PAGE_NUMBER.pg %]</span></li>[% ELSE %]<li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&offset=[% PAGE_NUMBER.offset %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">[% PAGE_NUMBER.pg %]</a></li>[% END %] > [% END %] >- [% IF ( next_page_offset ) %]<a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&offset=[% next_page_offset %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Next >></a>[% END %] >-</div>[% END %] >+ [% IF ( next_page_offset ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&offset=[% next_page_offset %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Next >></a></li>[% END %] >+</ul></nav>[% END %] >-- >2.1.4
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 18005
:
59626
|
59642
|
59670