authority_type = AUT_TABLE_TITRES_UNIFORMES; parent::__construct($user_query); $this->object_table = "titres_uniformes"; $this->object_table_key = "tu_id"; } public function _get_search_type(){ return parent::_get_search_type()."_titres_uniformes"; } protected function _get_authorities_filters(){ global $oeuvre_nature_selector, $oeuvre_type_selector; $filters = parent::_get_authorities_filters(); if ($oeuvre_nature_selector) { $filters[] = 'tu_oeuvre_nature = "'.$oeuvre_nature_selector.'"'; } if ($oeuvre_type_selector) { $filters[] = 'tu_oeuvre_type = "'.$oeuvre_type_selector.'"'; } return $filters; } protected function _get_sign_elements($sorted=false) { global $oeuvre_nature_selector, $oeuvre_type_selector; $str_to_hash = parent::_get_sign_elements($sorted); $str_to_hash .= "&oeuvre_nature_selector=".$oeuvre_nature_selector."&oeuvre_type_selector=".$oeuvre_type_selector; return $str_to_hash; } public function get_authority_tri() { return 'index_tu '; } public function explain($display, $mode = 'records',$mini=false){ error_reporting(E_ALL & ~E_NOTICE); print '
'; } protected function _get_human_queries() { global $msg; global $oeuvre_nature_selector, $oeuvre_type_selector; $human_queries = parent::_get_human_queries(); if ($oeuvre_nature_selector) { $marc = marc_list_collection::get_instance('oeuvre_nature'); $human_queries[] = array( 'name' => $msg['search_extended_titre_uniforme_oeuvre_nature'], 'value' => $marc->table[$oeuvre_nature_selector] ); } if ($oeuvre_type_selector) { $marc = marc_list_collection::get_instance('oeuvre_type'); $human_queries[] = array( 'name' => $msg['search_extended_titre_uniforme_oeuvre_type'], 'value' => $marc->table[$oeuvre_type_selector] ); } return $human_queries; } }