getJournalTitles(); $templateMgr =& TemplateManager::getManager(); $allThemes =& PluginRegistry::loadCategory('themes'); $themes = array(); foreach ($allThemes as $key => $junk) { $plugin =& $allThemes[$key]; // by ref $themes[basename($plugin->getPluginPath())] =& $plugin; unset($plugin); } $templateMgr->assign('themes', $themes); $templateMgr->assign('redirectOptions', $journals); $application =& PKPApplication::getApplication(); $templateMgr->assign('availableMetricTypes', $application->getMetricTypes(true)); return parent::display(); } /** * Initialize the form from the current settings. */ function initData() { parent::initData(); $siteDao =& DAORegistry::getDAO('SiteDAO'); $site =& $siteDao->getSite(); $this->_data['useAlphalist'] = $site->getSetting('useAlphalist'); $this->_data['usePaging'] = $site->getSetting('usePaging'); $this->_data['defaultMetricType'] = $site->getSetting('defaultMetricType'); $this->_data['preventManagerPluginManagement'] = $site->getSetting('preventManagerPluginManagement'); } /** * Assign user-submitted data to form. */ function readInputData() { $this->readUserVars(array('useAlphalist', 'usePaging', 'defaultMetricType', 'preventManagerPluginManagement')); return parent::readInputData(); } /** * Save the from parameters. */ function execute() { parent::execute(); $siteSettingsDao =& $this->siteSettingsDao; /* @var $siteSettingsDao SiteSettingsDAO */ $siteSettingsDao->updateSetting('useAlphalist', (boolean) $this->getData('useAlphalist'), 'bool'); $siteSettingsDao->updateSetting('usePaging', (boolean) $this->getData('usePaging'), 'bool'); $siteSettingsDao->updateSetting('defaultMetricType', $this->getData('defaultMetricType'), 'string'); $siteSettingsDao->updateSetting('preventManagerPluginManagement', (boolean) $this->getData('preventManagerPluginManagement'), 'bool'); } } ?>