Bug 37049 - Advanced Search first field empty returns unexpected results
Summary: Advanced Search first field empty returns unexpected results
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: 23.11
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-06 18:11 UTC by John Yorio
Modified: 2024-06-17 10:46 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Yorio 2024-06-06 18:11:21 UTC
I could not find this documented, but I have replicated this on 22.11, 23.05 and 23.11, both on our own systems and a sampling from the Koha demo sites page.

If you leave the first field blank on the advanced search screen, and complete the 2nd and 3rd fields, when you perform the search, Koha shifts up the search terms, so the operators no longer are associated with the desired term.

If you click "Return to the last advanced search", that is exactly how Koha now displays it. 

For example:

KW: <blank>
AND KW: water
NOT Title: waterloo

Perform the search and then click "Return to the last advanced search".

Koha displays:

KW: water
AND Title: waterloo
NOT KW: <blank>
Comment 1 Katrin Fischer 2024-06-17 10:46:02 UTC
We used to have a similar problem with the selected search options. Maybe the old bug and solution can be helpful in solving this: bug 7607