user_query = $user_query; $this->type = $type; } protected function get_title() { global $msg; return $msg[$this->type.'_found']; } protected function get_query() { $query = ''; return $query; } // protected function get_display_element($element) { // $display = ''; // switch($this->type) { // case 'indexint': // $display .= " ".$element->indexint_name." ".$element->indexint_comment.""; // break; // default: // $display .= "
  • ".$element->name."
  • "; // // $display .= elements_authorities_list_ui::generate_element($element->id); // break; // } // return $display; // } /** * Enregistrement des stats */ protected function search_log($count) { global $nb_results_tab; $nb_results_tab[$this->type] = $count; } public function proceed() { global $msg, $charset; global $include_path; global $opac_allow_affiliate_search; global $search_result_affiliate_lvl2_head; global $opac_search_other_function; global $catal_navbar; global $pmb_logs_activate; global $count; global $tab; if($opac_allow_affiliate_search){ print $search_result_affiliate_lvl2_head; }else { print "

    ".$msg['resultat_recherche']."

    "; } //le contenu du catalogue est calculé dans 2 cas : // 1- la recherche affiliée n'est pas activée, c'est donc le seul résultat affichable // 2- la recherche affiliée est active et on demande l'onglet catalog... if(!$opac_allow_affiliate_search || ($opac_allow_affiliate_search && $tab == "catalog")){ $display = $this->get_display_elements_list(); print $this->get_search_title(); print '
    ' . $display . '
    '; if($opac_allow_affiliate_search) print $catal_navbar; else print "
    "; if ($this->type == 'extended') print "
    "; // un div en + }else{ $this->search_affiliate(); } //Enregistrement des stats if($pmb_logs_activate){ $this->search_log($count); } } public function get_elements_ids() { if(!isset($this->elements_ids)) { $this->elements_ids = array(); } return $this->elements_ids; } public function get_search_title(){ global $charset, $count, $opac_search_other_function, $opac_allow_affiliate_search; $search_title = "\n"; if(!$opac_allow_affiliate_search) $search_title.= " "; return $search_title; } } ?>