Exemplo n.º 1
0
 /**
  * Process incoming parameters and display search results or a record.
  *
  * @return void
  * @access public
  */
 public function launch()
 {
     $params = $this->parseOpenURL();
     $searchObject = $this->processOpenURL($params);
     // If we were asked to return just information whether something was found,
     // do it here
     if (isset($_REQUEST['vufind_response_type']) && $_REQUEST['vufind_response_type'] == 'resultcount') {
         echo $searchObject->getResultTotal();
         return;
     }
     // Otherwise just display results
     $results = new Results();
     $results->showResults($searchObject);
 }