diff --git a/module/finc/src/finc/AjaxHandler/GetUserILLRequestsStats.php b/module/finc/src/finc/AjaxHandler/GetUserILLRequestsStats.php index f2bdcf292f7261711ba6502005284609ee20ae34..e2ba17aec9d8b1d55b54f8668853a04f23d91f69 100644 --- a/module/finc/src/finc/AjaxHandler/GetUserILLRequestsStats.php +++ b/module/finc/src/finc/AjaxHandler/GetUserILLRequestsStats.php @@ -57,7 +57,8 @@ class GetUserILLRequestsStats extends \VuFind\AjaxHandler\AbstractUserRequestAct } $items = $this->ils->getMyILLRequests($patron); $stats = [ - 'total' => count($items) + 'total' => count($items), + 'available' => array_sum(array_column($items, 'available')) ]; return $this->formatResponse($stats);