".$msg["etageres_see"]."\n"; */ //Création de la recherche équivalente à tous les champs si on est en autolevel //Si le niveau 1 est shunté if(!isset($autolevel1)) $autolevel1 = ''; if(!isset($get_last_query)) $get_last_query = ''; if(!isset($facette_test)) $facette_test = ''; if(!isset($map_emprises_query)) $map_emprises_query = array(); if(!isset($_SESSION["nb_queries"])) $_SESSION["nb_queries"] = ''; if(!isset($_SESSION["last_query"])) $_SESSION["last_query"] = ''; if(!isset($mode)) $mode = ''; if (($opac_autolevel2)&&($autolevel1)&&(!$get_last_query)&&($user_query)) { //On fait la recherche tous les champs $search_all_fields = searcher_factory::get_searcher('records', 'all_fields', stripslashes($user_query),$map_emprises_query); $nb_result = $search_all_fields->get_nb_results(); if ($nb_result) { $count=$nb_result; $l_typdoc= implode(",",$search_all_fields->get_typdocs()); $mode="tous"; //définition du formulaire $form_lvl1 = "
"; if (function_exists("search_other_function_post_values")){ $form_lvl1 .=search_other_function_post_values(); } if(count($map_emprises_query)){ foreach($map_emprises_query as $map_emprise_query){ $form_lvl1 .= " "; } } $form_lvl1 .= " "; if($opac_indexation_docnum_allfields) { if(!isset($join)) $join = ''; $form_lvl1 .= ""; } $form_lvl1 .= "
"; unset($_SESSION["level1"]); $_SESSION["level1"]["tous"]["form"]=$form_lvl1; $_SESSION["level1"]["tous"]["count"]=$nb_result; $_SESSION["search_type"]="simple_search"; rec_history(); $_SESSION["new_last_query"]=$_SESSION["nb_queries"]; } else { $lvl="search_result"; unset($autolevel1); } }elseif($lvl=='more_results' && $search_type=='extended_search' && $mode=='extended' && !$facette_test && ($opac_autolevel2 || $from_permalink)){ //from_permalink va permettre de stocker la recherche en session même si autolevel2 = 0 $es->reduct_search(); rec_history(); $_SESSION["new_last_query"]=$_SESSION["nb_queries"]; }elseif($lvl=='more_results' && $search_type=='extended_search_authorities' && $mode=='extended_authorities') { if(is_object($es) && get_class($es) != "search_authorities"){ $es = new search_authorities("search_fields_authorities"); } $es->reduct_search(); rec_history(); } $navig = ""; if (($_SESSION["nb_queries"])&&($lvl!="search_result")){ //On ne peut pas prendre la dernière recherche car si la dernière chose que l'on a fait c'est la navigation dans une étagère alors on obtient une page blanche //Cette dernière recherche n'est d'ailleurs pas cliquable dans l'historique des recherches (search_history.inc.php) for ($i=$_SESSION["nb_queries"]; $i>=1; $i--) { if ($_SESSION["search_type".$i]!="module") { if($_SESSION["search_type".$i] == "search_universes"){ $navig.="".$msg["actions_last_search"]."\n"; }else{ $navig.="".$msg["actions_last_search"]."\n"; } break; } } } if (($lvl!="more_results")&&($_SESSION["last_query"]!="")) { $navig.="".$msg["actions_last_page"]."\n"; } if (($_SESSION["nb_queries"])&&($lvl!="search_history")) $navig.="".$msg["actions_history"]."\n"; $class=""; if ($lvl!="index") { if ($lvl!="section_see") { if ($opac_show_categ_browser) { $class="navig_categ"; } if ($opac_show_dernieresnotices) { $class="navig_lastnotices"; } if ($opac_show_etageresaccueil) { $class="navig_etageres"; } if ($opac_show_marguerite_browser) { $class="navig_marguerite"; } if ($opac_show_100cases_browser) { $class="navig_categ"; } if (!$class) { $class="avec_recherches"; } } else { $class="avec_recherches"; } $navig.="".$msg["actions_first_screen"]."\n"; if($opac_navig_empr) $navig.="".$msg["empr_bt_show_compte"]."\n"; } if ($_SESSION["user_code"]){ if($opac_show_onglet_empr==3) $navig.="".$msg["empr_bt_show_compte"]."\n"; elseif($opac_show_onglet_empr==4) $navig.="".$msg["empr_bt_show_compte"]."\n"; } if($opac_show_onglet_help && ((($lvl!="index") && ($lvl!="search_type_asked") && ($lvl!="search_result") && ($lvl!=""))||(stristr($_SERVER['REQUEST_URI'], "empr.php")))) $navig .= "".$msg["search_help"]."\n"; if ($navig) { print "\n"; }else{ print ""; } if (((($opac_cart_allow)&&(!$opac_cart_only_for_subscriber))||(($opac_cart_allow)&&($_SESSION["user_code"])))) print "
"; else print "
"; ?>