예제 #1
0
 /**
  * @Override
  *
  * @return \Zend\View\Model\ViewModel
  */
 public function resultsAction()
 {
     $viewModel = parent::resultsAction();
     if ($viewModel instanceof Response) {
         return $viewModel;
     }
     $viewModel->setVariable('htmlLayoutClass', 'resultView');
     $viewModel->setVariable('external', $this->isRestrictedTarget());
     return $viewModel;
 }
예제 #2
0
 /**
  * Results action
  *
  * @throws \Exception
  * @throws \VuFindSearch\Backend\Exception\BackendException
  *
  * @return \Zend\View\Model\ViewModel
  */
 public function resultsAction()
 {
     $viewModel = parent::resultsAction();
     if ($viewModel instanceof Response) {
         return $viewModel;
     }
     $defaultTopRecommend = $this->getServiceLocator()->get('VuFind\\Config')->get('Summon')->get('General')->get('default_top_recommend')->toArray();
     $viewModel->setVariable('htmlLayoutClass', 'resultView');
     if (array_search('TopIpRange', $defaultTopRecommend) !== false) {
         $viewModel->setVariable('external', $this->isRestrictedTarget());
     }
     return $viewModel;
 }