Esempio n. 1
0
 /**
  * Catch exception after login redirect
  *
  * @return Response
  */
 public function myresearchbulkAction()
 {
     try {
         return parent::myresearchbulkAction();
     } catch (\Exception $e) {
         $this->flashMessenger()->setNamespace('error')->addMessage($e->getMessage());
         $target = $this->url()->fromRoute('myresearch-home');
         return $this->redirect()->toUrl($target);
     }
 }
Esempio n. 2
0
 /**
  * Overriden implementation of parent method
  */
 protected function createEmailViewModel($params = null)
 {
     $view = parent::createEmailViewModel($params);
     //load export settings and add links + url
     $exportConf = $this->getServiceLocator()->get('VuFind\\Config')->get('config')->Export;
     $exportArray = array('As links' => 'As links', 'As search URL' => 'As search URL');
     if ($exportConf) {
         $exportArray = array_merge($exportArray, $exportConf->toArray());
     }
     $view->export = $exportArray;
     $view->useRecaptcha = $this->useRecaptcha();
     return $view;
 }