Bug 33980

Summary: No results on search creates double sets of quotes on breadcrumb search term and page
Product: Koha Reporter: Christopher Brannon <cbrannon>
Component: SearchingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: bugzilla, emily.lamancusa
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Christopher Brannon 2023-06-10 23:29:57 UTC
If you do a search for an item that produces results in the staff search, the breadcrumb search terms appear in a single set of single quotes.

If your search does not produce any results, the search term appears in double single quotes.  This also is the case on the page displaying "No results for ..."

This is a problem, because we use this search term to do other searches elsewhere.  The second set of quotes breaks the search.
Comment 1 Christopher Brannon 2023-06-10 23:32:00 UTC
Correction.  The failed results appear in both single and double quotes.
Comment 2 Katrin Fischer 2023-06-11 08:08:04 UTC

*** This bug has been marked as a duplicate of bug 33548 ***
Comment 3 Katrin Fischer 2023-06-11 08:08:52 UTC
Sorry, bug confusion.
Comment 4 Owen Leonard 2023-06-12 11:06:12 UTC
(In reply to Christopher Brannon from comment #0)

> This is a problem, because we use this search term to do other searches
> elsewhere.  The second set of quotes breaks the search.

Can you elaborate on that? Some kind of customization?
Comment 5 Christopher Brannon 2023-06-12 16:26:14 UTC
No customization is affecting the breadcrumb or page display of the search criteria.  I do have a customization that relies on this information though.  I have worked around it for the time being, but it is a bug.
Comment 6 Emily Lamancusa (emlam) 2023-06-16 16:04:39 UTC
I can't quite remember enough detail to search it, but isn't there a feature somewhere that retries a search with quotes if the unquoted search doesn't work? I'm guessing those added quotes could be coming through in the breadcrumbs.