https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7607

--- Comment #26 from David Cook <dc...@prosentient.com.au> ---
Ok this issue is really annoying me, so let's get it sorted...

Test plan:
0. No patch
1. Go to
http://localhost:8081/cgi-bin/koha/catalogue/search.pl?expanded_options=1
2. Change 2nd "Keyword" and 3rd "Keyword" to "Author"
3. Change 2nd search box to "Martin" and 3rd search box to "Humble"
4. Change 2nd op box (between Martin and Humble) to "or"
5. Click "Search"
6. Note the following URL: 
http://localhost:8081/cgi-bin/koha/catalogue/search.pl?advsearch=1&idx=kw&op=and&idx=au&q=Martin&op=or&idx=au&q=Humble&sort_by=relevance
7. Note the HTML response:
No results match your search for 'kw,wrdl: Martin and au,wrdl: Humble'.

Test plan:
0. Apply Nick's patch and "koha-plack --restart kohadev"
1. Go to
http://localhost:8081/cgi-bin/koha/catalogue/search.pl?expanded_options=1
2. Change 2nd "Keyword" and 3rd "Keyword" to "Author"
3. Change 2nd search box to "Martin" and 3rd search box to "Humble"
4. Change 2nd op box (between Martin and Humble) to "or"
5. Click "Search"
5b. If you have a quick eye, you'll see the empty search box was removed by
Javascript. Yay!
6. Note the following URL:
http://localhost:8081/cgi-bin/koha/catalogue/search.pl?advsearch=1&idx=au&q=Martin&op=or&idx=au&q=Humble&sort_by=relevance
7. Note the HTML response:
12 result(s) found for 'au,wrdl: Martin or au,wrdl: Humble'.

Great patch, Nick!

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to