Bug 33980 - No results on search creates double sets of quotes on breadcrumb search term and page
Summary: No results on search creates double sets of quotes on breadcrumb search term ...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-10 23:29 UTC by Christopher Brannon
Modified: 2023-06-16 16:04 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 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.