public function indexAction() { require_once APPLICATION_PATH . '/' . $this->getRequest()->getModuleName() . '/models/OaiPmh.php'; $this->view->responseDate = date(OaiPmh::XS_DATETIME_FORMAT); $oai = new OaiPmh($this->getRequest()->getParams(), $this->view); $oai->setBaseUrl('http:' . ($_SERVER['SERVER_PORT'] == 443 ? 's' : '') . '//' . $_SERVER['HTTP_HOST'] . $this->getFrontController()->getRouter()->assemble(array())); $this->view->oai = $oai; }