Search type stacking in basic search box

Bug #2015655 reported by Elizabeth Thomsen
54
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Undecided
Unassigned

Bug Description

There's an issue in Bootstrap catalog with the search type being written into the search box, staying in the search box if the user changes the search type using the dropdown, and getting used as a search term, giving an incorrect set of search results, or no results at all. I tested this on the Evergreen Demo server and I see it on all the live sites I checked.

To reproduce this, perform a subject search. Your search results should be correct, but the search box now shows subject: followed by the search term(s), for example, subject:luigi

Change the search type to title and perform the search. This search will fail (or give an incorrect result set) because it's searching for the word subject as well as the search term. The search box now looks like this: title:subject:luigi

Change the search type to Keyword and perform the search. This search will fail (or give an incorrect result set) because it's searching for the words title and subject as well as the search term luigi.

You can do this with any of the search types, and all but Keyword get written into the search box. (The Luigi search is an easy one to test on the demo system because you should get three hits for this name search in Author or Keyword, and none in title or subject.)

Here's a partial URL for one of these searches – you can see that the system is treating author and subject like part of the search: https://demo.evergreencatalog.com/eg/opac/results?query=title%3Asubject%3Aluigi&qtype=keyword

This was (and is) an old problem in TPAC, but I couldn't find an existing LP bug for it. The problem doesnt' occur in Angular.

There are a couple of related bugs:
https://bugs.launchpad.net/evergreen/+bug/1839684 fixes search type stacking duplicating when sorting results

https://bugs.launchpad.net/evergreen/+bug/1777905 is about the search type being added to the search box when the user opens the option to refine the search and goes to Advannced Search . I can't reproduce that one. Mike's **waving hands** comment looks useful!

Revision history for this message
Elizabeth Thomsen (et-8) wrote :
Elaine Hardy (ehardy)
Changed in evergreen:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.