http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6510 Bug #: 6510 Summary: "Sort by" in intranet search alters search and number of hits Classification: Unclassified Change sponsored?: --- Product: Koha Version: rel_3_6 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: Searching AssignedTo: gmcharlt@gmail.com ReportedBy: magnus@enger.priv.no QAContact: koha-bugs@lists.koha-community.org An example: * Simple search for "jones" in the intranet gives: search.pl?q=jones 55 result(s) found for 'kw,wrdl: jones' in Koha Catalog. Reordering by e.g. "Title (A-Z)" gives: search.pl?x=kw&q=jones&sort_by=title_az 55 result(s) found for 'kw,wrdl: jones' in Koha Catalog. * Advanced search for "jones" in the default field ("Keyword") gives: search.pl?idx=kw&q=jones&idx=kw&idx=kw&sort_by=relevance 55 result(s) found for 'kw,wrdl: jones' in SKSK Catalog. Reordering by "Title (A-Z)" gives: search.pl?x=kw&q=jones&sort_by=title_az 55 result(s) found for 'kw,wrdl: jones' in SKSK Catalog. idx=kw is turned into x=kw, but we still get the same number of results. * Choosing "Author" as the index to search, and then searching for "jones" gives: search.pl?idx=au&q=jones&idx=kw&idx=kw&sort_by=relevance 41 result(s) found for 'au,wrdl: jones' in SKSK Catalog. And here is the biggie, reordering by "Title (A-Z)" gives: search.pl?x=au&q=jones&sort_by=title_az 55 result(s) found for 'kw,wrdl: jones' in SKSK Catalog. Choosing a different sort criteria results in a different number of hits, presumably because idx=au has been turned into x=au. Searching for "jones" as "Author" and choosing to sort by "Title (A-Z)" on the advanced search page does gives the expected result: search.pl?idx=au&q=jones&idx=kw&idx=kw&sort_by=title_az 41 result(s) found for 'au,wrdl: jones' in SKSK Catalog. The same thing seems to hapen no matter what index you choose to limit your search to, and what criteria you choose to sort on. So why does re-sorting turn idx into x? -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.