Bugzilla – Attachment 163955 Details for
Bug 30745
Elasticsearch: Search never returns with after-date and/or before-date in label batch item search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30745 : Fix pagination error
Bug-30745--Fix-pagination-error.patch (text/plain), 5.36 KB, created by
Phan Tung Bui
on 2024-03-26 18:29:35 UTC
(
hide
)
Description:
Bug 30745 : Fix pagination error
Filename:
MIME Type:
Creator:
Phan Tung Bui
Created:
2024-03-26 18:29:35 UTC
Size:
5.36 KB
patch
obsolete
>From f20caf77ef1f5378ac309614e2cc303fff8ed8f4 Mon Sep 17 00:00:00 2001 >From: Phan Tung Bui <phan-tung.bui@inlibro.com> >Date: Tue, 26 Mar 2024 14:27:41 -0400 >Subject: [PATCH] Bug 30745 : Fix pagination error > >--- > .../prog/en/modules/labels/result.tt | 40 +++++++++++++++++-- > 1 file changed, 36 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt >index beb8c85154..0d853cbcbc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt >@@ -5,17 +5,50 @@ > [% IF ( displayprev || displaynext ) %] > <ul class="pagination"> > [% IF ( displayprev ) %] >- <li><a class="nav" href="label-item-search.pl?startfrom=[% startfromprev | html %]&idx=[% idx | html %]&ccl_textbox=[% ccl_textbox | html %]&limits=[% limits | html %]&resultsperpage=[% resultsperpage | html %]&op=do_search&batch_id=[% batch_id | html %]"><i class="fa fa-arrow-left"></i> Previous</a></li> >+ <li> >+ <form id="prevForm" action="label-item-search.pl" method="post"> >+ <input type="hidden" name="startfrom" value="[% startfromprev | html %]"> >+ <input type="hidden" name="idx" value="[% idx | html %]"> >+ <input type="hidden" name="ccl_textbox" value="[% ccl_textbox | html %]"> >+ <input type="hidden" name="limits" value="[% limits | html %]"> >+ <input type="hidden" name="resultsperpage" value="[% resultsperpage | html %]"> >+ <input type="hidden" name="op" value="cud-do_search"> >+ <input type="hidden" name="batch_id" value="[% batch_id | html %]"> >+ <button type="submit" class="nav-button"><i class="fa fa-arrow-left"></i> Previous</button> >+ </form> >+ </li> > [% END %] > [% FOREACH number IN numbers %] > [% IF ( startfrom == number.startfrom ) %] > <li class="active"><span>[% number.number | html %]</span></a></li> > [% ELSE %] >- <li><a class="nav" href="label-item-search.pl?startfrom=[% number.startfrom | html %]&idx=[% idx | html %]&ccl_textbox=[% ccl_textbox | html %]&limits=[% limits | html %]&resultsperpage=[% resultsperpage | html %]&op=do_search&batch_id=[% batch_id | html %]">[% number.number | html %]</a></li> >+ <li> >+ <form id="searchForm_[% number.number %]" action="label-item-search.pl" method="post"> >+ <input type="hidden" name="startfrom" value="[% number.startfrom | html %]"> >+ <input type="hidden" name="idx" value="[% idx | html %]"> >+ <input type="hidden" name="ccl_textbox" value="[% ccl_textbox | html %]"> >+ <input type="hidden" name="limits" value="[% limits | html %]"> >+ <input type="hidden" name="resultsperpage" value="[% resultsperpage | html %]"> >+ <input type="hidden" name="op" value="cud-do_search"> >+ <input type="hidden" name="batch_id" value="[% batch_id | html %]"> >+ <button type="submit" class="nav-button">[% number.number | html %]</button> >+ </form> >+ </li> > [% END %] > [% END %] > [% IF ( displaynext ) %] >- <li><a class="nav" href="label-item-search.pl?startfrom=[% startfromnext | html %]&idx=[% idx | html %]&ccl_textbox=[% ccl_textbox | html %]&limits=[% limits | html %]&resultsperpage=[% resultsperpage | html %]&op=do_search&batch_id=[% batch_id | html %]">Next <i class="fa fa-arrow-right"></i></a></li> >+ <li> >+ <form id="nextForm" action="label-item-search.pl" method="post"> >+ <input type="hidden" name="startfrom" value="[% startfromnext | html %]"> >+ <input type="hidden" name="idx" value="[% idx | html %]"> >+ <input type="hidden" name="ccl_textbox" value="[% ccl_textbox | html %]"> >+ <input type="hidden" name="limits" value="[% limits | html %]"> >+ <input type="hidden" name="resultsperpage" value="[% resultsperpage | html %]"> >+ <input type="hidden" name="op" value="cud-do_search"> >+ <input type="hidden" name="batch_id" value="[% batch_id | html %]"> >+ <button type="submit" class="nav-button">Next <i class="fa fa-arrow-right"></i></button> >+ </form> >+ </li> > [% END %] > </ul> > [% END %] >@@ -117,7 +150,6 @@ > [% MACRO jsinclude BLOCK %] > [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] > <script> >- var Sticky; > $(document).ready(function(){ > $("#CheckAll").click(function(e){ > e.preventDefault(); >-- >2.34.1
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 30745
:
134952
|
134953
|
135784
|
135785
|
135966
|
135967
|
157192
|
157194
|
157195
|
157934
|
162855
|
163955
|
170677
|
170678
|
170679
|
170680
|
170681
|
170682
|
170683
|
170684
|
170729
|
170730
|
170731
|
170732
|
170733
|
171002
|
171003
|
171004
|
171005
|
171006
|
173280
|
173943
|
173944
|
173945
|
173946
|
173947
|
174486
|
174487
|
174488
|
174489
|
174490
|
174491