/** Display list of mints
  */
 public function mintsAction()
 {
     $mints = new Mints();
     $mintsList = $mints->getMintsListAll($this->_getAllParams());
     if (in_array($this->_helper->contextSwitch()->getCurrentContext(), $this->_contexts)) {
         $data = array('pageNumber' => $mintsList->getCurrentPageNumber(), 'total' => number_format($mintsList->getTotalItemCount(), 0), 'itemsReturned' => $mintsList->getCurrentItemCount(), 'totalPages' => number_format($mintsList->getTotalItemCount() / $mintsList->getCurrentItemCount(), 0));
         $this->view->data = $data;
         $mints = NULL;
         foreach ($mintsList as $k) {
             $action = $k['t'];
             switch ($action) {
                 case $action == strtoupper('Roman'):
                     $actionset = 'mint';
                     $module = 'romancoins';
                     break;
                 case $action == strtoupper('Byzantine'):
                     $module = 'byzantinecoins';
                     $actionset = 'mint';
                     break;
                 case $action == strtoupper('Greek and Roman Provincial'):
                     $module = 'greekromancoins';
                     $actionset = 'mint';
                     break;
                 case $action == strtoupper('Post Medieval'):
                     $module = 'postmedievalcoins';
                     $actionset = 'mint';
                     break;
                 case $action == strtoupper('Early Medieval'):
                     $module = 'earlymedievalcoins';
                     $actionset = 'mint';
                     break;
                 case $action == strtoupper('Iron Age'):
                     $module = 'ironagecoins';
                     $actionset = 'mint';
                     break;
                 case $action == strtoupper('medieval'):
                     $module = 'medievalcoins';
                     $actionset = 'mint';
                     break;
                 default:
                     $actionset = 'mint';
                     $module = 'medievalcoins';
             }
             $mints[] = array('id' => $k['id'], 'name' => $k['mint_name'], 'period' => $k['t'], 'url' => Zend_Registry::get('siteurl') . $this->view->url(array('module' => $module, 'controller' => $actionset . 's', 'action' => $actionset, 'id' => $k['id']), null, true));
         }
         $this->view->mints = $mints;
     } else {
         $this->view->mints = $mintsList;
     }
 }