Koha-clms/opac
David Cook c4cd2d02a2
Bug 18148: Make list of lists in OPAC sortable
This patch adds sorting to lists of lists in the OPAC.

The mechanism used here for op=list is similar to the one
used in op=view, so it's stylistically and functionally
consistent with the rest of the Lists module in the OPAC.

Test plan:
0. Apply the patch and restart Plack (ie koha-plack --restart kohadev)
1. Create 20+ public lists and 20+ private lists for a particular user
you control (try to use names that range throughout the alphabet)
2. Using SQL, update the Modification date for at least 1 public
list and 1 private list
3. As an anonymous (ie not logged in user), go to
/cgi-bin/koha/opac-shelves.pl?op=list&public=0
4. Note you cannot see any lists
5. Go to http://localhost:8080/cgi-bin/koha/opac-shelves.pl?op=list&public=1
6, Note you can see public lists with a toolbar with the button "Sort"
below the alert "Log in to create a new list"
7. Using the "Sort" option, try out all the different sort options
for default, "List name", and "Modification date"
8. After sorting, try paging through the list of lists. You should
note that the sorting is retained through the paging.
9. prove t/db_dependent/Virtualshelves.t
10. Celebrate!

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
2026-02-17 17:37:31 +00:00
..
clubs Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
errors Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
external/overdrive Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
sci Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
sco Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
svc Bug 40163: (follow-up) Fix wrong GNU links and update test 2026-01-07 14:32:37 +00:00
ilsdi.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
maintenance.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
oai.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-ISBDdetail.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-MARCdetail.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-account-pay-return.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-account-pay.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-account.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-addbybiblionumber.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-alert-subscribe.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-alert-subscriptions.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-article-request-cancel.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-authorities-home.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-authoritiesdetail.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-basket.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-blocked.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-browse.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-browser.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-changelanguage.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-course-details.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-course-reserves.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-curbside-pickups.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-detail.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-discharge.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-dismiss-message.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-downloadcart.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-downloadshelf.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-export.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-holdshistory.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-ics.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-idref.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-illrequests-unauthenticated.pl Bug 36197: (QA follow-up): Adopt POST REDIRECT GET pattern 2025-04-25 08:47:11 +02:00
opac-illrequests.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-image.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-imageviewer.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-issue-note.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-library.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-main.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-memberentry.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-messaging.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-modrequest-suspend.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-modrequest.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-mymessages.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-news-rss.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-overdrive-search.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-page.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-passwd.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-password-recovery.pl Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
opac-patron-consent.pl Bug 41662: Prevent CSRF on opac-patron-consent.pl 2026-01-29 07:47:34 -07:00
opac-patron-image.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-privacy.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-ratings.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-readingrecord.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-recall.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-recalls.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-registration-verify.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-renew.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-reportproblem.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-request-article.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-reserve.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-reset-password.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-restrictedpage.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-retrieve-file.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-review.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-routing-lists.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-search-history.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-search.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-sendbasket.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-sendshelf.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-serial-issues.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-shareshelf.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-shelves.pl Bug 18148: Make list of lists in OPAC sortable 2026-02-17 17:37:31 +00:00
opac-showmarc.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-showreviews.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-suggestions.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-tags.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-tags_subject.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-topissues.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-user.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-virtual-card.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
tracklinks.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
unapi Bug 40163: (follow-up) Fix wrong GNU links and update test 2026-01-07 14:32:37 +00:00