Skip to content
Snippets Groups Projects
Commit 3d16223d authored by Demian Katz's avatar Demian Katz
Browse files

Added "powered by" message to Summon controllers.

parent 7eb4000c
Branches
Tags
No related merge requests found
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
namespace VuFind\Controller; namespace VuFind\Controller;
use VuFind\Cache\Manager as CacheManager, use VuFind\Cache\Manager as CacheManager,
VuFind\Search\Summon\Params as SummonParams, VuFind\Search\Summon\Params as SummonParams,
VuFind\Search\Summon\Results as SummonResults; VuFind\Search\Summon\Results as SummonResults, Zend\Mvc\MvcEvent;
/** /**
* Summon Controller * Summon Controller
...@@ -49,13 +49,34 @@ class SummonController extends AbstractSearch ...@@ -49,13 +49,34 @@ class SummonController extends AbstractSearch
{ {
$this->searchClassId = 'Summon'; $this->searchClassId = 'Summon';
$this->useResultScroller = false; $this->useResultScroller = false;
/* TODO
$this->view->layout()->poweredBy
= 'Powered by Summon™ from Serials Solutions, a division of ProQuest.';
*/
parent::__construct(); parent::__construct();
} }
/**
* preDispatch -- block access when appropriate.
*
* @param MvcEvent $e Event object
*
* @return void
*/
public function preDispatch(MvcEvent $e)
{
$this->layout()->poweredBy
= 'Powered by Summon™ from Serials Solutions, a division of ProQuest.';
}
/**
* Register the default events for this controller
*
* @return void
*/
protected function attachDefaultListeners()
{
parent::attachDefaultListeners();
$events = $this->getEventManager();
$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 1000);
}
/** /**
* Handle an advanced search * Handle an advanced search
* *
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
* @link http://vufind.org Main Site * @link http://vufind.org Main Site
*/ */
namespace VuFind\Controller; namespace VuFind\Controller;
use Zend\Mvc\MvcEvent;
/** /**
* Summon Record Controller * Summon Record Controller
...@@ -48,12 +49,33 @@ class SummonrecordController extends AbstractRecord ...@@ -48,12 +49,33 @@ class SummonrecordController extends AbstractRecord
$this->searchClassId = 'Summon'; $this->searchClassId = 'Summon';
$this->useResultScroller = false; $this->useResultScroller = false;
$this->defaultTab = 'Description'; $this->defaultTab = 'Description';
/* TODO
$this->view->layout()->poweredBy
= 'Powered by Summon™ from Serials Solutions, a division of ProQuest.';
*/
// Call standard record controller initialization: // Call standard record controller initialization:
parent::__construct(); parent::__construct();
} }
/**
* preDispatch -- block access when appropriate.
*
* @param MvcEvent $e Event object
*
* @return void
*/
public function preDispatch(MvcEvent $e)
{
$this->layout()->poweredBy
= 'Powered by Summon™ from Serials Solutions, a division of ProQuest.';
}
/**
* Register the default events for this controller
*
* @return void
*/
protected function attachDefaultListeners()
{
parent::attachDefaultListeners();
$events = $this->getEventManager();
$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 1000);
}
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment