Inheritance: extends OAI
 function index($args, $request)
 {
     $this->validate();
     PluginRegistry::loadCategory('oaiMetadataFormats', true);
     $oai = new JournalOAI(new OAIConfig($request->url(null, 'oai'), Config::getVar('oai', 'repository_id')));
     $oai->execute();
 }
Example #2
0
 function index()
 {
     $this->validate();
     PluginRegistry::loadCategory('oaiMetadataFormats', true);
     $oai = new JournalOAI(new OAIConfig(Request::getRequestUrl(), Config::getVar('oai', 'repository_id')));
     $oai->execute();
 }
Example #3
0
 /**
  * @param $args array
  * @param $request PKPRequest
  */
 function index($args, $request)
 {
     $this->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();
 }