From: Mike Rylander Date: Fri, 23 Oct 2020 18:26:10 +0000 (-0400) Subject: LP#1866406: Use carousel item order X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3b025498fc845c30e16618434e0ac73732bbdf62;p=evergreen%2Ftadl.git LP#1866406: Use carousel item order Previous to this commit, the item display order for carousels was undefined. Now, ordering is stable and predictable. For Newly Cataloged Item and Newest Items by Shelving Location carousels, the order is from most recently cataloged to least recently cataloged. For Recently Returned Item carousels, the order is from most recently returned to least recently returned. For Top Circulated Items carousels, the order is from most circulated to least circulated. For Manual carousels (as of now, without the ability to adjust the Position of items) it is the order they are added to the backing bucket. Thus emptying and refilling the bucket allows reordering. Signed-off-by: Mike Rylander Signed-off-by: Terran McCanna Signed-off-by: Jason Boyer --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index ac307e8753..053e4b6c2d 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -437,7 +437,8 @@ sub load_common { '+cc' => { id => $id }, '+bre' => { deleted => 'f' }, '+mfde' => { name => 'title' } - } + }, + order_by => {cbrebi => ['pos','create_time']} }; my $r = $e->json_query($q); $ret->{bibs} = $r;