Beispiel #1
0
 /**
  * Perform a browse action
  *
  * Overrides the "browse" action to substitute {terms} in the query URI.
  *
  * @param  array &$conditions The browse conditions
  * @return bool               true on success or false on errors
  */
 protected function actionBrowse(&$conditions)
 {
     // Prepare the terms: append " site:thisdomain" to limit the query
     // to the current site
     $terms = TIP::getGetOrPost('terms', 'string');
     $terms .= ' site:' . $_SERVER['SERVER_NAME'];
     $query =& $this->data->getProperty('path');
     $query = str_replace('{terms}', urlencode($terms), $query);
     return parent::actionBrowse($conditions);
 }