Summary: | Search results not sorting in staff client advanced search when only AdvancedSearchTypes checkboxes are used | ||
---|---|---|---|
Product: | Koha | Reporter: | Lucy Vaux-Harvey <lucy.vaux-harvey> |
Component: | Searching | Assignee: | Bugs List <koha-bugs> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | trivial | ||
Priority: | P5 - low | CC: | jonathan.druart |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22299 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Lucy Vaux-Harvey
2018-07-13 11:17:36 UTC
Looks ok on master, can you define "does not work"? Do you get an error? No result? Sort option is not selected? Do you sort on the search result or the advanced search view? I've just tested on a 17.11.06 installation in staff advanced search with itemtype checked + sort changed it seems to work ok. Can you retest and give us an example? Maybe the URL with the search terms too? I think I see what Lucy might have meant: When coming form advanced search, the sorting option used is not highlighted on the sort pulldown. To test: - Make sure defaultSortField/defaultSortOrder are set to relevance - Go to advanced search - Check item type "Books" (assuming sample data) - Search - Open pull down for "Sort" on top - Verify none of the options is 'checked' - Change default sort to "title" - Repeat steps - option is now checked There is a mismatch between search parameters specifically for relevance: When coming from the advanced search, the form uses: relevance When doing a search on simple search: relevance_dsc I know I could fix the highlighting, but I am not sure if search needs a fix instead. Hi, thanks for looking at this. I've re-tested this on other installs and it does appear to be a local problem for this site. I think this bug can be closed as the site will upgrade in the coming months. Simply for interest, the URL that was generated when trying to change the sort filter was this: /cgi-bin/koha/catalogue/search.pl?sort_by=author_za%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20&limit=mc-loc:%27%27PAMPH%27%27 Thanks (In reply to Lucy Vaux-Harvey from comment #5) > I think this bug can be > closed as the site will upgrade in the coming months. |