Bug 31127 - By default sort suggestions from latest to oldest
Summary: By default sort suggestions from latest to oldest
Status: ASSIGNED
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Fridolin Somers
QA Contact: Testopia
URL:
Keywords:
Depends on: 32603
Blocks:
  Show dependency treegraph
 
Reported: 2022-07-09 07:46 UTC by Fridolin Somers
Modified: 2024-11-18 10:01 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2022-07-09 07:46:06 UTC
Currently suggestions table is sorted from oldest to latest.

From suggestion.tt :
  KohaTable("table_[% loop.count| html %]", {
      "sorting": [[ 3, "asc" ]],

Since the default tab is pending suggestions, it would be better to have the reverse order.
Some old suggestions may stay in pending for a while and librarian must be aware of new suggestions.
Comment 1 Fridolin Somers 2022-07-09 07:47:41 UTC
If OK I'll provide a patch
Comment 2 Katrin Fischer 2022-07-15 13:07:21 UTC
Could we make the sort configurable using the new Datatables options? I believe some libraries might want the one or the other (LIFO or FIFO...)
Comment 3 Fridolin Somers 2022-11-26 02:16:53 UTC
You mean like Bug 24156

Looks like the column can be defined but not the ascending or descending order.
Would need a new config
Comment 4 Fridolin Somers 2023-08-09 20:02:45 UTC
Ah also Bug 32603 added a new column without changing default sorting column
Comment 5 Ronald Wijlens 2024-11-18 10:01:30 UTC
I support the wish for sorting options for the suggestions table. Or at least have the latest suggestions at the top.