authority_type = AUT_TABLE_AUTHORS; parent::__construct($user_query); $this->object_table = "authors"; $this->object_table_key = "author_id"; } public function _get_search_type(){ return parent::_get_search_type()."_authors"; } protected function _get_authorities_filters(){ global $type_autorite; $filters = parent::_get_authorities_filters(); if ($type_autorite && ($type_autorite != '7')) { $filters[] = 'author_type = "'.$type_autorite.'"'; } return $filters; } protected function _get_sign_elements($sorted=false) { global $type_autorite; $str_to_hash = parent::_get_sign_elements($sorted); $str_to_hash .= "&type_autorite=".$type_autorite; return $str_to_hash; } public function get_authority_tri() { return 'index_author'; } public function explain($display, $mode = 'records',$mini=false){ error_reporting(E_ALL & ~E_NOTICE); print '
'; print '

Recherche Native

'; print '

QUERY : '.$this->user_query.'

'; $start = microtime(true); print '

Nombre de resultats trouves: '.$this->get_nb_results().'

'; $result = $this->get_sorted_result(); if($this->get_nb_results()>0 && $result){ $inter = microtime(true); print '

Temps de calcul (en seconde) : '.($inter - $start).'

'; $elements_authorities_list_ui = new elements_authorities_list_ui($result, 20, 1); $elements = $elements_authorities_list_ui->get_elements_list(); print $begin_result_liste; print $elements; print $end_result_liste; print '

Temps de gen page (en seconde) : '.(microtime(true) - $inter).'

'; } print '

Temps Total (en seconde) : '.(microtime(true) - $start).'

'; } protected function _get_human_queries() { global $msg; global $type_autorite; $human_queries = parent::_get_human_queries(); if ($type_autorite && ($type_autorite != '7')) { switch ($type_autorite) { case '70' : $type_autorite_label = $msg['203']; break; case '71' : $type_autorite_label = $msg['204']; break; case '72' : $type_autorite_label = $msg['congres_libelle']; break; } $human_queries[] = array( 'name' => $msg['search_extended_author_type'], 'value' => $type_autorite_label ); } return $human_queries; } }