addScript(JRoute :: _(JURI :: base() . 'components/' . JRequest :: getVar('option') . '/js/search.js')); // $document -> addStyleSheet(JRoute :: _(JURI :: base() . 'components/' . JRequest :: getVar('option') . '/css/search.css')); $model = $this->getModel('browse'); $cache = & JFactory::getCache('com_openaire', 'callback'); $conf =& JFactory::getConfig(); $cacheactive = $conf->getValue('config.caching'); $cache->setCaching(1); //enable caching $stats = $cache->call(array($model, 'getBrowseStatistics')); $cache->setCaching($cacheactive); $this->assignRef('stats', $stats); parent::display($tpl); } } ?>