pages/oai/OAIHandler.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 //$Id$
00016 
00017 
00018 define('SESSION_DISABLE_INIT', 1); // FIXME?
00019 
00020 import('oai.ocs.ConferenceOAI');
00021 import('handler.Handler');
00022 
00023 class OAIHandler extends Handler {
00027    function OAIHandler() {
00028       parent::Handler();
00029    }
00030 
00031    function index() {
00032       $this->validate();
00033       PluginRegistry::loadCategory('oaiMetadataFormats', true);
00034 
00035       $oai = new ConferenceOAI(new OAIConfig(Request::getRequestUrl(), Config::getVar('oai', 'repository_id')));
00036       $oai->execute();
00037    }
00038 
00039    function validate() {
00040       // Site validation checks not applicable
00041       //parent::validate();
00042 
00043       if (!Config::getVar('oai', 'oai')) {
00044          Request::redirect(null, 'index');
00045       }
00046    }
00047 }
00048 
00049 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7