public function addAction()
 {
     //require CORRECTIONS_DIR . '/forms/Correction.php';
     $this->view->addHelperPath(CORRECTIONS_DIR . '/helpers', 'Corrections_View_Helper_');
     $itemId = $this->getParam('item_id');
     $item = $this->_helper->db->getTable('Item')->find($itemId);
     $this->view->item = $item;
     $elements = $this->getElements();
     $this->view->elements = $elements;
     $user = current_user();
     if (!$user) {
         $captcha = Omeka_Captcha::getCaptcha();
         $this->captcha = $captcha;
         $this->view->captchaScript = $captcha->render(new Zend_View());
     }
     if ($this->getRequest()->isPost()) {
         if ($user || $this->captcha->isValid(null, $_POST)) {
             $this->_helper->flashMessenger(__("Thank you for the correction. It is under review."), 'success');
             parent::addAction();
         } else {
             $this->_helper->flashMessenger(__('Your CAPTCHA submission was invalid, please try again.'), 'error');
             $this->view->corrections_correction = new CorrectionsCorrection();
         }
     } else {
         parent::addAction();
     }
 }
 public function addAction()
 {
     require_once NEATLINE_TIME_FORMS_DIR . '/timeline.php';
     $form = new NeatlineTime_Form_Timeline();
     $this->view->form = $form;
     parent::addAction();
 }
 public function addAction()
 {
     parent::addAction();
     $table = $this->_helper->db;
     $this->view->sequenceTypeOptions = $table->getTable()->getSequenceTypesForSelect();
     $this->view->sequenceElementOptions = $table->getTable()->getElementsForSelect();
     $this->view->corpus = $this->view->ngram_corpu;
     // correct poor inflection
 }
Beispiel #4
0
 public function addAction()
 {
     // Get all the element sets that apply to the item.
     $this->view->elementSets = $this->_getItemElementSets();
     if (!Zend_Registry::isRegistered('file_derivative_creator') && is_allowed('Settings', 'edit')) {
         $this->_helper->flashMessenger(__('The ImageMagick directory path has not been set. No derivative images will be created. If you would like Omeka to create derivative images, please set the path in Settings.'));
     }
     return parent::addAction();
 }
 /**
  * The add collection action
  * 
  */
 public function addAction()
 {
     // Get all the element sets that apply to the item.
     $this->view->elementSets = $this->_getCollectionElementSets();
     parent::addAction();
 }