From 8c56e01b35b0a0dddf864ec4dc7799ca56013ed7 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 18 Jul 2014 09:53:15 -0400 Subject: [PATCH] Fixed result scroller activation on collection view. --- .../src/VuFind/Controller/CollectionController.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/module/VuFind/src/VuFind/Controller/CollectionController.php b/module/VuFind/src/VuFind/Controller/CollectionController.php index f99ad4c8352..89a630693d7 100644 --- a/module/VuFind/src/VuFind/Controller/CollectionController.php +++ b/module/VuFind/src/VuFind/Controller/CollectionController.php @@ -81,4 +81,16 @@ class CollectionController extends AbstractRecord } return $result; } + + /** + * Is the result scroller active? + * + * @return bool + */ + protected function resultScrollerActive() + { + $config = $this->getServiceLocator()->get('VuFind\Config')->get('config'); + return (isset($config->Record->next_prev_navigation) + && $config->Record->next_prev_navigation); + } } -- GitLab