/**
  * Send list of holds to view
  *
  * @return mixed
  */
 public function holdsAction()
 {
     $view = parent::holdsAction();
     $view = $this->addViews($view);
     $this->flashExceptions($this->flashMessenger());
     return $view;
 }
 /**
  * Send list of holds to view
  *
  * @return mixed
  */
 public function holdsAction()
 {
     // Stop now if the user does not have valid catalog credentials available:
     if (!is_array($patron = $this->catalogLogin())) {
         return $patron;
     }
     $view = $this->createViewIfUnsupported('getMyHolds');
     if ($view === false) {
         $view = parent::holdsAction();
         $view->recordList = $this->orderAvailability($view->recordList);
         $view->profile = $this->getCatalogProfile();
     }
     return $view;
 }