Bugzilla – Attachment 168315 Details for
Bug 24690
Make OPACPopupAuthorsSearch work with search terms containing parenthesis
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24690: Make OPACPopupAuthorsSearch work with search terms containing parenthesis
Bug-24690-Make-OPACPopupAuthorsSearch-work-with-se.patch (text/plain), 2.17 KB, created by
Owen Leonard
on 2024-07-01 14:11:48 UTC
(
hide
)
Description:
Bug 24690: Make OPACPopupAuthorsSearch work with search terms containing parenthesis
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-07-01 14:11:48 UTC
Size:
2.17 KB
patch
obsolete
>From aac5b70a568b2bef71f37c0cf7de7dab84a98a9e Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 1 Jul 2024 12:28:56 +0000 >Subject: [PATCH] Bug 24690: Make OPACPopupAuthorsSearch work with search terms > containing parenthesis > >This patch updates the OPACPopupAuthorSearch feature so that it wraps >search terms with quotes. This is the behavior we have in place for >author searches outside the context of OPACPopupAuthorSearch, e.g. >'au:"Criterion Collection (Firm)"' > >To test, apply the patch and enable the OPACPopupAuthorSearch system >preference. > >- Search for a record in the OPAC which has author data containing > parentheses (it should not be a field linked to an authority record). >- View the detail page for that record. >- Click on one of the problematic author links. >- This should trigger a modal window with a list of authors and > checkboxes for each. >- With just the single checkbox checked, click "Search." >- The search should return the correct results. >- Test other author searches to confirm that they work too. > >Sponsored-by: Athens County Public Libraries >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 7dd44416f5..9006704308 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -1958,7 +1958,7 @@ > authid = $(this).data("authid"); > search_string = "an:" + authid; > } else { >- search_string = terms[term]["keyword_search"] + encodeURIComponent( search_label ); >+ search_string = terms[term]["keyword_search"] + '"' + encodeURIComponent( search_label ) + '"'; > } > var termLink = $("<li>") > .append( $("<input>", { type: "checkbox", class: "select_term", value: search_string, id: terms[term]["label"] + index } ).prop("checked", preselected ) ) >-- >2.39.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 24690
:
168315
|
168316
|
168334
|
174549