Subject heading link includes non-exact matches

Bug #1790231 reported by Jeff Davis on 2018-08-31
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Medium
Unassigned

Bug Description

EG 3.1.4

Clicking on a subject heading in the OPAC should only return records using that subject heading. Currently it includes any records where the terms from the heading you clicked on appear somewhere in the subject fields, which is not the same thing.

To put it another way, clicking a subject heading performs the equivalent of a "Contains" subject search from the advanced search page. It should do a "Matches exactly" or "Starts with" search.

Example:
1. Retrieve record 78 (Mozart, Horn concertos).
2. Click the "Concertos (Horn)" subject heading.
3. Results include record 5 (Huntington student recital, Dec. 6, 1999), which does not have "Concertos (Horn)" as a subject heading. It does, however, have "Concertos (Piano) -- Excerpts" and "Horn and piano music".

Jeff Davis (jdavis-sitka) wrote :

Working branch user/jeffdavis/lp1790231-subject-heading-link-exact-match-search adds "contains=>'exact'" to the query params for subject heading links, forcing an exact-match search when a heading is clicked.

tags: added: opac pullrequest
Garry Collum (gcollum) on 2018-09-12
Changed in evergreen:
status: New → Confirmed
Garry Collum (gcollum) wrote :

I tested using Jeff's strategy and lots more musical terms in the test database. The patch works perfectly. The number of records associated with a subject heading in the facets from a top level search, seemed to coincide with the number of records that you pulled up from clicking on a subject link in a record.

The signed-off patch is at http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/gcollum/lp1790231-subject-heading-link-exact-match-search-signoff

tags: added: signedoff
Changed in evergreen:
milestone: none → 3.3.1
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers