Bug #9000

Cannot add opening parenthesis to search query via global search box with Chrome and IE

Added by Dan Gillean over 6 years ago. Updated almost 6 years ago.

Status:VerifiedStart date:09/24/2015
Priority:MediumDue date:
Assignee:Dan Gillean% Done:

0%

Category:Search / Browse
Target version:Release 2.3.0
Google Code Legacy ID: Tested version:2.2, 2.3
Sponsored:No Requires documentation:

Description

According to our own documentation using parentheses in the search box should be possible for constructing boolean queries - from the docs:

Used to group search clauses. This can be useful if you want to control the precedence of boolean operators for a query, e.g. (coffee NOT tea) OR cream will return different results than coffee NOT (tea OR cream). Without grouping, by default in Elasticsearch, NOT takes precedence over AND, which takes precedence over OR.

However, trying to write an opening parenthesis "(" in the search does not work when tested in both AtoM 2.2 and 2.3, using IE 11 and Chrome 45. Tested with Firefox 40 and it works for me in both versions.

I noticed in 2.3, where the accessibility keyboard nav has been added, that when trying to type the opening parenthesis, AtoM will instead toggle down to the next option (e.g. the Advanced search, or the radio buttons for global vs institution-specific search). It almost seems as if the ( is being interpreted like the arrow keys or something?

History

#1 Updated by Nick Wilkinson about 6 years ago

  • Assignee changed from José Raddaoui Marín to Mike Cantelon

#2 Updated by Mike Cantelon about 6 years ago

  • Status changed from New to Code Review
  • Assignee changed from Mike Cantelon to Nick Wilkinson

#3 Updated by Nick Wilkinson about 6 years ago

  • Assignee changed from Nick Wilkinson to José Raddaoui Marín

#4 Updated by Mike Cantelon about 6 years ago

  • Status changed from Code Review to Feedback
  • Assignee changed from José Raddaoui Marín to Mike Cantelon

Got some feedback and am going to try using JQuery's "e.which" to make it a bit more elegant.

#5 Updated by Jesús García Crespo about 6 years ago

  • Status changed from Feedback to QA/Review
  • Assignee changed from Mike Cantelon to Dan Gillean

#6 Updated by Dan Gillean almost 6 years ago

  • Status changed from QA/Review to Verified
  • Target version set to Release 2.3.0

Also available in: Atom PDF