[Koha-bugs] [Bug 30327] Sort component parts
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jun 1 16:47:28 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30327
--- Comment #10 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 135550
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135550&action=edit
Bug 30327: [Alternate] Add options for sorting components
This patch adds two new sysprefs:
ComponentSortField
ComponentSortOrder
These allow the user to choose how components should be sorted when displaying
on the details page
of a record, and the corresponding search for all components
This also updates our search from simple_search_compat to search_compat to
allow for sorting options
Note:
Some sorting under ES is unclear - this is a separate issue to be invesitgated
Our Zebra index does not offer 'record number' sorting, I will file a bug for
that
To test:
1 - Enable UseControlNumber (or not)
2 - Add some components to a record by control number or title depending on
above
3 - Enable ShowComponentRecords syspref
4 - View the record that has components
5 - Note they are not sorted
6 - Apply patch, updatedatabase
7 - reload record
8 - Note components are sorted by title ascending
9 - Try different values for ComponentSortField and ComponentSortOrder
10 - Confirm sorting changes with system preferences
11 - Repeat test on staff and opac, with ES and Zebra search engines
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list