validate(); PluginRegistry::loadCategory('oaiMetadataFormats', true); $oai = new JournalOAI(new OAIConfig($request->url(null, 'oai'), Config::getVar('oai', 'repository_id'))); if (!$request->getJournal() && $request->getRequestedJournalPath() != 'index') { $dispatcher = $request->getDispatcher(); return $dispatcher->handle404(); } $oai->execute(); } /** * Validate the request */ function validate() { // Site validation checks not applicable //parent::validate(); if (!Config::getVar('oai', 'oai')) { Request::redirect(null, 'index'); } } /** * @see PKPHandler::requireSSL() */ function requireSSL() { return false; } } ?>