Bugzilla – Attachment 153729 Details for
Bug 34021
Add option to search within results in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34021: Add 'search within' to OPAC
Bug-34021-Add-search-within-to-OPAC.patch (text/plain), 2.17 KB, created by
Sam Lau
on 2023-07-20 15:32:39 UTC
(
hide
)
Description:
Bug 34021: Add 'search within' to OPAC
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2023-07-20 15:32:39 UTC
Size:
2.17 KB
patch
obsolete
>From 1307b7663f5a5b57038b8f55eae2b52bfc0759ad Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Thu, 20 Jul 2023 00:40:39 +0000 >Subject: [PATCH] Bug 34021: Add 'search within' to OPAC > >This change adds a "Search within results" box to the OPAC, which >complements the feature already in the staff interface. > >Test plan: > >0. Apply the patch >1. Go to http://localhost:8080/cgi-bin/koha/opac-main.pl >2. Type "e" in the search box and click the search button >3. Click the "Books" value for the "Item types" facet, and >note there are fewer search results >4. Type "test" into the "Search within results" box and click >the Search button next to the box >5. Note that now there are only 2 results. >6. Also note that the "Books" facet is still selected > >Signed-off-by: Sam Lau <samalau@gmail.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index 875bf71e2b..5ad791e5f3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -161,6 +161,10 @@ > [% FOREACH QUERY_INPUT IN QUERY_INPUTS %] > <input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/> > [% END %] >+ <input type="hidden" name="idx" value="kw" /> >+ <label id="search_within_label" for="search_within_text">Search within results</label> >+ <input id="search_within_text" type="text" name="q" value="" /> >+ <button type="submit" id="search_within_submit" class="btn btn-primary">Search</button> > [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS %] > <input type="hidden" name="[% LIMIT_INPUT.input_name | html %]" value="[% LIMIT_INPUT.input_value | html %]"/> > [% END %] >-- >2.30.2
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 34021
:
153693
|
153729
|
155872
|
158137
|
158138
|
158166
|
158579
|
158580
|
158581