00001 <?php
00002
00015
00016
00017
00018 define('SESSION_DISABLE_INIT', 1);
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
00041
00042
00043 if (!Config::getVar('oai', 'oai')) {
00044 Request::redirect(null, 'index');
00045 }
00046 }
00047 }
00048
00049 ?>