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 '
'; } 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; } }