Пример #1
0
 /**
  * Process parameters and display the page.
  *
  * @return void
  * @access public
  */
 public function launch()
 {
     global $configArray;
     // Check if the OAI Server is enabled before continuing
     if (!isset($configArray['OAI'])) {
         header('HTTP/1.1 404 Not Found');
         echo 'OAI Server Not Configured.';
         return;
     }
     // Collect relevant parameters for OAI server:
     $baseURL = $configArray['Site']['url'] . '/OAI/Server';
     $params = empty($_GET) ? $_POST : $_GET;
     // Don't pass VuFind-specific parameters down to OAI server:
     unset($params['module']);
     unset($params['action']);
     // Respond to the OAI request:
     $server = new OAIServer($baseURL, $params);
     $server->respond();
 }
Пример #2
0
 /**
  * Load a specific record from the index.
  *
  * @param string $id The record ID to load
  *
  * @return mixed     The record array (if successful) or false
  * @access protected
  */
 protected function loadRecord($id)
 {
     // Load the record in the usual fashion, but tweak it as needed:
     $record = parent::loadRecord($id);
     return is_array($record) ? $this->_tweakRecord($record) : $record;
 }