Bug 30952: Fix position shift when hovering .linktools links
[koha-ffzg.git] / mainpage.pl
index 6972d39..f5872e6 100755 (executable)
@@ -34,6 +34,7 @@ use Koha::ProblemReports;
 use Koha::Quotes;
 use Koha::Suggestions;
 use Koha::BackgroundJobs;
+use Koha::CurbsidePickups;
 
 my $query = CGI->new;
 
@@ -108,6 +109,16 @@ unless ( $logged_in_user->has_permission( { parameters => 'manage_background_job
     $template->param( already_ran_jobs => $already_ran_jobs );
 }
 
+if ( C4::Context->preference('CurbsidePickup') ) {
+    $template->param(
+        new_curbside_pickups => Koha::CurbsidePickups->search(
+            {
+                branchcode                => $homebranch,
+            }
+        )->filter_by_to_be_staged->filter_by_scheduled_today,
+    );
+}
+
 $template->param(
     pendingcomments                => $pendingcomments,
     pendingtags                    => $pendingtags,