示例#1
0
 /**
  * Constructor
  *
  * @param \VuFind\Search\Manager $sm      Search manager for retrieving records
  * @param string                 $baseURL The base URL for the OAI server
  * @param array                  $params  The incoming OAI-PMH parameters
  * (i.e. $_GET)
  */
 public function __construct(\VuFind\Search\Manager $sm, $baseURL, $params)
 {
     $this->searchManager = $sm;
     $this->tableManager = $sm->getServiceLocator()->get('DbTablePluginManager');
     $this->baseURL = $baseURL;
     $this->params = isset($params) && is_array($params) ? $params : array();
     $this->initializeMetadataFormats();
     // Load details on supported formats
     $this->initializeSettings();
     // Load config.ini settings
 }
示例#2
0
 /**
  * Turn the current object into search results.
  *
  * @param \VuFind\Search\Manager $manager Search manager
  *
  * @return \VuFind\Search\Base\Results
  */
 public function deminify(\VuFind\Search\Manager $manager)
 {
     // Figure out the parameter and result classes based on the search class ID:
     $this->populateClassNames();
     // Deminify everything:
     $params = $manager->setSearchClassId($this->cl)->getParams();
     $params->deminify($this);
     $results = $manager->setSearchClassId($this->cl)->getResults($params);
     $results->deminify($this);
     return $results;
 }