Koha/installer/data/mysql/mandatory
Nick Clemens de63c2abb1
Bug 30327: 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

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-06-25 15:25:18 -03:00
..
account_credit_types.sql Bug 24603: (follow-up) Update to double entry accounting 2020-11-10 15:00:14 +01:00
account_debit_types.sql Bug 27946: (QA follow-up) Remove 'scan' terminology, requests may not be scans 2022-01-28 11:09:07 -10:00
audio_alerts.sql
auth_val_cat.sql Bug 30373: Add TYPEDOC authorised_values_category 2022-04-21 13:41:35 -10:00
keyboard_shortcuts.sql
message_transport_types.sql
sample_notices_message_attributes.sql Bug 29586: Fix typos in installer files 2021-12-13 15:52:29 -10:00
sample_notices_message_transports.sql Bug 29586: Fix typos in installer files 2021-12-13 15:52:29 -10:00
subtag_registry.sql Bug 29596: Add Yiddish language 2022-02-01 21:39:39 -10:00
sysprefs.sql Bug 30327: Add options for sorting components 2022-06-25 15:25:18 -03:00
userflags.sql Bug 19532: Database and installer stuff 2022-03-14 22:45:50 -10:00
userpermissions.sql Bug 26346: Database changes 2022-04-12 17:13:02 +02:00