Numbers preceded by a hyphen are not highlighted in search results

Bug #1773414 reported by Christine Morgan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
New
Undecided
Unassigned

Bug Description

If you search for "Homage to Ravel, 1875-1937" in the concerto data set you will see that the number that follows, and is adjacent to, the hyphen is not highlighted in the search results and record summary. If you search by an author with a birth and death date, (ex. Beethoven, Ludwig van 1770-1827), or click an author link, the author term is highlighted up to the hyphen.

Observed in master and 3.1

Revision history for this message
Christine Morgan (cmorgan-z) wrote :
summary: - Numbers preceded by a hyphen are not highlighted
+ Numbers preceded by a hyphen are not highlighted in search results
tags: added: displayfields
Revision history for this message
Michele Morgan (mmorgan) wrote :

This is still an issue in 3.2.

Also, only numbers after a hyphen fail to highlight. Words after a hyphen highlight properly. Search example:

well-known concertos

And it's not only four-digit numbers that show the problem. Another example search in the Concerto data set is:

Concertos, piano. No. 17-22

tags: added: opac
removed: tpac
Revision history for this message
Christine Morgan (cmorgan-z) wrote :

Confirming that this is still an issue testing on https://terran-main.gapines.org/ during Bug Squashing Week.

Steps to recreate on concerto data set:

-Do a Keyword search for "Homage to Ravel, 1875-1937"
-Click on The writings of Elliott Carter" to view the record summery.
-Click on the More Details link.
-Notice that, in the Note field, "Homage to Ravel, 1875" is highlighted but "-1937" is not.

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.