/** Edit publication details
  */
 public function editAction()
 {
     $form = new PublicationForm();
     $form->submit->setLabel('Update publication');
     $this->view->form = $form;
     if ($this->getRequest()->isPost() && $form->isValid($this->_request->getPost())) {
         if ($form->isValid($form->getValues())) {
             $updateData = $form->getValues();
             $where = array();
             $publications = new Publications();
             $where = $publications->getAdapter()->quoteInto('id = ?', $this->_getParam('id'));
             $update = $publications->update($updateData, $where);
             $this->_helper->solrUpdater->update('beopublications', $this->_getParam('id'));
             $this->_flashMessenger->addMessage('Details for "' . $form->getValue('title') . '" updated!');
             $this->_redirect(self::REDIRECT . 'publication/id/' . $this->_getParam('id'));
         } else {
             $form->populate($form->getValues());
         }
     } else {
         $id = (int) $this->_request->getParam('id', 0);
         if ($id > 0) {
             $publications = new Publications();
             $publication = $publications->fetchRow('id=' . $id);
             $form->populate($publication->toArray());
         }
     }
 }