From: Jeff Davis Date: Thu, 9 Mar 2023 20:46:54 +0000 (-0800) Subject: LP#2009891: add item author to open-ils.actor.carousel.get_contents X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f8a0cf101f15dcf6dbabceef03b4a8885db2b39f;p=working%2FEvergreen.git LP#2009891: add item author to open-ils.actor.carousel.get_contents Signed-off-by: Jeff Davis --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Carousel.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Carousel.pm index cc5d0ec13b..34ee4f269a 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Carousel.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Carousel.pm @@ -37,23 +37,20 @@ sub get_carousel_contents { name => $carousel->name }; my $q = { - select => { bre => ['id'], mfde => [{ column => 'value', alias => 'title' }] }, + select => { bre => ['id'], rmsr => ['title','author'] }, from => { - bre => { - cbrebi => { - join => { - cbreb => { - join => { cc => {} } - } - } + cbrebi => { + cbreb => { + join => { cc => {} } }, - mfde => {} + bre => { + join => { rmsr => { fkey => 'id', field => 'id' } } + } } }, where => { '+cc' => { id => $id }, - '+bre' => { deleted => 'f' }, - '+mfde' => { name => 'title' } + '+bre' => { deleted => 'f' } }, order_by => {cbrebi => ['pos','create_time']} };