/** Set up index pages
  */
 public function indexAction()
 {
     $projects = new ResearchProjects();
     $project = $projects->getAllProjects($this->_getAllParams());
     $contexts = array('json', 'xml');
     if (in_array($this->_helper->contextSwitch()->getCurrentContext(), $contexts)) {
         $data = array('pageNumber' => $project->getCurrentPageNumber(), 'total' => number_format($project->getTotalItemCount(), 0), 'itemsReturned' => $project->getCurrentItemCount(), 'totalPages' => number_format($project->getTotalItemCount() / $project->getItemCountPerPage(), 0));
         $this->view->data = $data;
         $projectsa = array();
         foreach ($project as $r => $v) {
             $projectsa[$r] = $v;
         }
         $this->view->projects = $projectsa;
     } else {
         $this->view->projects = $project;
     }
 }
 /** The index action
  * @access public
  * @return void
  */
 public function indexAction()
 {
     $this->view->research = $this->_research->getAllProjects($this->getAllParams());
 }