[Koha-bugs] [Bug 33217] Allow different default sorting when click author links

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 13 20:50:36 CET 2023


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

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 148142
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148142&action=edit
Bug 33217: Allow specifiying sort field and order for authro links

When using the facets for author, i.e. limiting a search, it makes sense to
preserve the default sort order for the results (relevance, etc)

When clicking on an author to search the catalog for all works by an author, it
would be nice to be able to optionally specify sorting for the listing - i.e.
publication date, or title

This patch adds two new system preferences:
AuthorLinkSortBy
AuthorLinkSortOrder

To test:
1 - Do a search in intranet and staff for 'austen'
    or an author you have multiple titles from
2 - Click the linked name
3 - Note a new search is performed, sorted by field from
    defaultSortField  preference
4 - Apply patch, updatedatabase, restart_all
5 - Ensure nothing has changed by searching again
6 - Set AuthorLinkSortBy to 'date of publication' and
    AuthorLinkSortORder to asc
7 - Search again, comfirm links obey sorting specific above
8 - Test other values - confirm links are updated in both staff/opac
    and results/details

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list