Bug 39450 - OPAC ILL requests table should sort on ID desc by default
Summary: OPAC ILL requests table should sort on ID desc by default
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: ILL (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Pedro Amorim
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-25 15:58 UTC by Pedro Amorim
Modified: 2025-04-02 08:05 UTC (History)
2 users (show)

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


Attachments
Bug 39450: Sort by ILL request ID DESC by default (1.42 KB, patch)
2025-03-25 16:01 UTC, Pedro Amorim
Details | Diff | Splinter Review
Bug 39450: Sort by ILL request ID DESC by default (1.48 KB, patch)
2025-04-02 08:05 UTC, Brendan Gallagher
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Amorim 2025-03-25 15:58:56 UTC
It's currently sorting on 'backend' DESC by default which in itself does not do a whole lot.
Comment 1 Pedro Amorim 2025-03-25 16:01:00 UTC
Created attachment 179687 [details] [review]
Bug 39450: Sort by ILL request ID DESC by default

To test:
1) Enable ILLModule
2) Create 2 ILL requests
3) Access the ILL table on the OPAC:
http://localhost:8080/cgi-bin/koha/opac-illrequests.pl
4) Notice the table is sorted on the 'Requested from' column.
5) Apply patch, repeat. Notice it's now showing the most recent requests first (sorting on ID DESC).

This is particularly important for Koha instances where patrons access this OPAC page often, and have multiple ILL backends installed
Comment 2 Brendan Gallagher 2025-04-02 08:05:32 UTC
Created attachment 180252 [details] [review]
Bug 39450: Sort by ILL request ID DESC by default

To test:
1) Enable ILLModule
2) Create 2 ILL requests
3) Access the ILL table on the OPAC:
http://localhost:8080/cgi-bin/koha/opac-illrequests.pl
4) Notice the table is sorted on the 'Requested from' column.
5) Apply patch, repeat. Notice it's now showing the most recent requests first (sorting on ID DESC).

This is particularly important for Koha instances where patrons access this OPAC page often, and have multiple ILL backends installed

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>