Bugzilla – Attachment 126801 Details for
Bug 29186
Move reports result limit menu into toolbar
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29186: (QA follow-up) Correct the check for showing limit menu
Bug-29186-QA-follow-up-Correct-the-check-for-showi.patch (text/plain), 4.58 KB, created by
Katrin Fischer
on 2021-10-24 10:39:04 UTC
(
hide
)
Description:
Bug 29186: (QA follow-up) Correct the check for showing limit menu
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-10-24 10:39:04 UTC
Size:
4.58 KB
patch
obsolete
>From 80155ad7dff4134bce5858c5cb8b6087fbc05ccf Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 11 Oct 2021 10:57:40 +0000 >Subject: [PATCH] Bug 29186: (QA follow-up) Correct the check for showing limit > menu > >The template conditional for showing the limit menu should be changed >to: > >[% IF ( unlimited_total > 10 && limit <= 1000 ) %] > >- "unlimited_total > 10" so that the "rows per page" button only shows > if there are more than 10 total results, because 10 is the smallest > increment the "rows per page" control offers. >- "limit <= 1000" so that the "rows per page" button will show when the > current result limit is less than or equal to 1000, because 1000 is > the upper limit to the "rows per page" control. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/reports/guided_reports_start.tt | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index bc07ed8ecc..47ed17190c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -902,7 +902,7 @@ > <p> > <span class="label">Total number of results:</span> > [% unlimited_total | html %] >- [% IF unlimited_total > limit %] >+ [% IF unlimited_total >= limit %] > ([% limit | html %] shown) > [% END %]. > </p> >@@ -1015,12 +1015,12 @@ > <input type="hidden" name="limit" id="limit" value="20" /> > </form> <!-- /#limitselect --> > >- [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) || ( unlimited_total ) > limit %] >+ [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) || ( unlimited_total > 10 && limit <= 1000 ) %] > <div id="toolbar" class="btn-toolbar"> > [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] > <div class="btn-group"> > <button class="btn btn-default btn-sm dropdown-toggle" type="button" id="batch_mod_menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> >- Batch operations with [% IF unlimited_total > limit %][% limit | html %][% ELSE %][% unlimited_total | html %][% END %] visible records >+ Batch operations with [% IF unlimited_total >= limit %][% limit | html %][% ELSE %][% unlimited_total | html %][% END %] visible records > <span class="caret"></span> > </button> > <ul class="dropdown-menu" aria-labelledby="batch_mod_menu"> >@@ -1063,7 +1063,7 @@ > </div> <!-- /.dropdown --> > [% END # /IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] > >- [% IF ( unlimited_total > limit ) %] >+ [% IF ( unlimited_total > 10 && limit <= 1000 ) %] > <div class="btn-group"> > <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> > [% IF ( limit ) %] >@@ -1088,9 +1088,9 @@ > [% END %] > </ul> > </div> >- [% END # /IF ( unlimited_total > limit ) %] >+ [% END # /IF ( unlimited_total > 10 && limit <= 1000 ) %] > </div> <!-- /#toolbar.btn-toolbar --> >- [% END # /IF batch operations || ( unlimited_total > limit ) %] >+ [% END # /IF batch operations || ( unlimited_total > 10 && limit <= 1000 ) %] > > <div class="pages"> > [% pagination_bar | $raw %] >-- >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 29186
:
125831
|
125832
|
125888
|
126044
|
126672
|
126800
| 126801