facettes::checked_facette_search($check_facette);
     $_SESSION["lq_facette"] = $_SESSION["facette"];
     $_SESSION["lq_facette_search"]["lq_search"] = search::serialize_search();
 } else {
     if ($from_see == 1 && $filtre_compare == "compare") {
         //from_see est un élément posté dans un formulaire d'une page d'autorité
         //il flage l'origine qui nécessite une reconstruction de l'environnement de la multi-critère pour faire les filtres multiples ou le comparateur
         facettes::make_facette_search_env();
     }
 }
 $lib_recherche = $es->make_human_query();
 $searcher = new searcher_extended();
 if ($opac_visionneuse_allow) {
     $nbexplnum_to_photo = $searcher->get_nb_explnums();
 }
 $count = $searcher->get_nb_results();
 $l_typdoc = implode(",", $searcher->get_typdocs());
 // La variable global $l_typdoc est utilisée pour la photothèque
 //Enregistrement des stats
 if ($pmb_logs_activate) {
     global $nb_results_tab;
     $nb_results_tab['extended'] = $count;
 }
 if ($count) {
     if (isset($_SESSION["last_sortnotices"]) && $_SESSION["last_sortnotices"] !== "") {
         $notices = $searcher->get_sorted_result($_SESSION["last_sortnotices"], $debut, $opac_search_results_per_page);
     } else {
         $notices = $searcher->get_sorted_result("default", $debut, $opac_search_results_per_page);
     }
     if (count($notices)) {
         $_SESSION['tab_result_current_page'] = implode(",", $notices);
        } elseif ($s[0] == "s") {
            $champ = $es->specialfields[$s[1]]["TITLE"];
        } else {
            $champ = $es->pp->t_fields[$s[1]]["TITRE"];
        }
        if ((string) $field[0] == "" && !$es->op_empty[${$op}]) {
            $search_error_message = sprintf($msg["extended_empty_field"], $champ);
            $flag = true;
            break;
        }
    }
}
if (!$flag) {
    $searcher_extended = new searcher_extended();
    $searcher_extended->get_result();
    $nb_result_extended = $searcher_extended->get_nb_results();
    //	Enregistrement des stats
    if ($pmb_logs_activate) {
        global $nb_results_tab;
        $nb_results_tab['extended'] = $nb_result_extended;
    }
    if ($opac_allow_affiliate_search && $allow_search_affiliate_and_external) {
        $search_result_affiliate_extented = str_replace("!!mode!!", "extended", $search_extented_result_affiliate_lvl1);
        $search_result_affiliate_extented = str_replace("!!search_type!!", "notices", $search_result_affiliate_extented);
        $search_result_affiliate_extented = str_replace("!!label!!", $es->make_human_query(), $search_result_affiliate_extented);
        $search_result_affiliate_extented = str_replace("!!nb_result!!", $nb_result_extended, $search_result_affiliate_extented);
        if ($nb_result_extended) {
            $link = "<a href='#' onclick=\"document.search_form.action = './index.php?lvl=more_results&mode=extended&tab=catalog'; document.search_form.submit();return false;\">" . $msg['suite'] . "&nbsp;<img src='./images/search.gif' border='0' align='absmiddle'/></a>";
        } else {
            $link = "";
        }