Bugzilla – Attachment 121647 Details for
Bug 28518
"Return to the last advanced search" exclude keywords if more than 3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28518: Display missing inputs for "Return to the last advanced search"
Bug-28518-Display-missing-inputs-for-Return-to-the.patch (text/plain), 1.58 KB, created by
David Nind
on 2021-06-06 20:38:40 UTC
(
hide
)
Description:
Bug 28518: Display missing inputs for "Return to the last advanced search"
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-06-06 20:38:40 UTC
Size:
1.58 KB
patch
obsolete
>From c41b445ff294171112b024086285f349d04457c3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sat, 5 Jun 2021 16:08:46 +0200 >Subject: [PATCH] Bug 28518: Display missing inputs for "Return to the last > advanced search" > >When more than 3 search terms are passed on the advanced search form, >the "Return to the last advanced search" feature does not display them. > >Test plan: >Perform an adv search at the OPAC, enter more than 3 terms, launch the >search, click the "Return to the last advanced search" link and confirm >that all the entries are there. > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >index 3db62831e8..5e57cce830 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >@@ -463,6 +463,11 @@ $(document).ready(function() { > > [% IF ( ReturnToSearch ) %] > if (form_serialized = jQuery.cookie("form_serialized")) { >+ // Add missing term inputs if there were more than 3 >+ var count = (form_serialized.match(/&q=/g) || []).length; >+ for(var i = 3 ; i < count ; i++) { >+ $("a.ButtonPlus:last").click(); >+ } > $('#advsearch form').deserialize(form_serialized); > } > if (form_serialized_limits = jQuery.cookie("form_serialized_limits")) { >-- >2.20.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 28518
:
121641
|
121647
|
121866
|
122008