Bugzilla – Attachment 121641 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.54 KB, created by
Jonathan Druart
on 2021-06-05 14:11:19 UTC
(
hide
)
Description:
Bug 28518: Display missing inputs for "Return to the last advanced search"
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-06-05 14:11:19 UTC
Size:
1.54 KB
patch
obsolete
>From 3318ad16e9715fab21d99940814013ba47f13e55 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. >--- > 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 3db62831e88..5e57cce8301 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