LP#2009891: add item author to open-ils.actor.carousel.get_contents
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 9 Mar 2023 20:46:54 +0000 (12:46 -0800)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 9 Mar 2023 20:46:54 +0000 (12:46 -0800)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Carousel.pm

index cc5d0ec..22c91b6 100644 (file)
@@ -37,7 +37,7 @@ sub get_carousel_contents {
         name => $carousel->name
     };
     my $q = {
-        select => { bre => ['id'], mfde => [{ column => 'value', alias => 'title' }] },
+        select => { bre => ['id'], mfde1 => [{ column => 'value', alias => 'title' }], mfde2 => [{ column => 'value', alias => 'author' }] },
         from   => {
             bre => {
                 cbrebi => {
@@ -47,13 +47,15 @@ sub get_carousel_contents {
                         }
                     }
                 },
-                mfde => {}
+                mfde1 => { class => 'mfde' },
+                mfde2 => { class => 'mfde' }
             }
         },
         where  => {
             '+cc' => { id => $id },
             '+bre' => { deleted => 'f' },
-            '+mfde' => { name => 'title' }
+            '+mfde1' => { name => 'title' },
+            '+mfde2' => { name => 'author' }
         },
         order_by => {cbrebi => ['pos','create_time']}
     };