Unexpected Journal Title Search Results when using second or third Search Input in Advanced Search
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.8 |
Fix Released
|
Undecided
|
Unassigned | ||
2.9 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Evergreen Version 2.8.4
Evergreen only checks the first 'qtype' parameter when deciding whether to add the 'bib_level(s)' filter to the query. Or, the code adds a "bib_level(s)" to the search query to limit the results to serials only when "Journal Title" is the first selected search field.
This limitation causes unexpected search results when conducting a Journal Title search on either the second or third Search Input within Advanced Search.
To test, select a serial/magazine within your database. I chose "Urban Farm" in mine. If I filter on Journal Title and enter Urban Farm onto the first Search Input line, I retrieve the expected Urban Farm serial record. If I select Journal Title and enter Urban Farm into either the second or third Search Input lines, I retrieve multiple results.
description: | updated |
Changed in evergreen: | |
assignee: | nobody → Kathy Lussier (klussier) |
tags: | removed: needstest |
Changed in evergreen: | |
milestone: | 2.next → 2.10-beta |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Here's a branch to address this. From the commit message:
Before this change, the system would only check the first qtype URL parameter to see if it needed to apply the journal title "bib_level(s)" filter. Instead it should check each qtype in turn while it turns an advanced search into a simple search string. Here the code is moved into place to accomplish that.
To test, load all test datasets into a fresh database. Perform an advanced search on journal title for "proceedings" (no quotes) using the second search input row. Before this commit, two records are retrieved. After, only one is retrieved.
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ miker/lp- 1522538- jtitle- partially- broken