";
}
//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")){
$msg_docnum = ($opac_indexation_docnum_allfields ? $msg[docnum_found_allfield] : '');
// requête de recherche sur tous les champs
print pmb_bidi("
$count $msg_docnum $msg[titles_found] '".htmlentities(stripslashes($user_query),ENT_QUOTES,$charset)."'");
if ($opac_search_other_function) {
require_once($include_path."/".$opac_search_other_function);
print pmb_bidi(" ".search_other_function_human_query($_SESSION["last_query"]));
}
print "";
print activation_surlignage();
print "
";
//gestion du tri
if (isset($_GET["sort"])) {
$_SESSION["last_sortnotices"]=$_GET["sort"];
}
if ($count>$opac_nb_max_tri) {
$_SESSION["last_sortnotices"]="";
}
if (!$search_all_fields) $searcher = new searcher_all_fields(stripslashes($user_query)); else $searcher=$search_all_fields;
if($opac_visionneuse_allow){
$nbexplnum_to_photo = $searcher->get_nb_explnums();
}
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(!$opac_allow_affiliate_search) print "
";
print "
";
if ($opac_notices_depliable) print $begin_result_liste;
//gestion du tri
if ($count<=$opac_nb_max_tri) {
$pos=strpos($_SERVER['REQUEST_URI'],"?");
$pos1=strpos($_SERVER['REQUEST_URI'],"get");
if ($pos1==0) $pos1=strlen($_SERVER['REQUEST_URI']);
else $pos1=$pos1-3;
$para=urlencode(substr($_SERVER['REQUEST_URI'],$pos+1,$pos1-$pos+1));
$affich_tris_result_liste=str_replace("!!page_en_cours!!",$para,$affich_tris_result_liste);
print $affich_tris_result_liste;
if ($_SESSION["last_sortnotices"]!="") {
$sort=new sort('notices','session');
print " ".$msg['tri_par']." ".$sort->descriptionTriParId($_SESSION["last_sortnotices"])." ";
}
} else print " ";
//fin gestion du tri
print $add_cart_link;
if($opac_visionneuse_allow && $nbexplnum_to_photo){
print " ".$link_to_visionneuse;
print $sendToVisionneuseByPost;
}
//affinage
//enregistrement de l'endroit actuel dans la session
if ($_SESSION["last_query"]) { $n=$_SESSION["last_query"]; } else { $n=$_SESSION["nb_queries"]; }
$_SESSION["notice_view".$n]["search_mod"]="all";
$_SESSION["notice_view".$n]["search_page"]=$page;
//affichage
print "
".$msg["affiner_recherche"]."";
//fin affinage
//Etendre
if ($opac_allow_external_search) print "
".$msg["connecteurs_external_search_sources"]."";
//fin etendre
if ($opac_show_suggest) {
$bt_sugg = "
".$msg[empr_bt_make_sugg]."";
print $bt_sugg;
}
$search_terms = unserialize(stripslashes($search_terms));
print "
";
print aff_notice(-1);
$nb=0;
$recherche_ajax_mode=0;
for ($i =0 ; $i4)$recherche_ajax_mode=1;
print pmb_bidi(aff_notice($notices[$i], 0, 1, 0, "", "", 0, 0, $recherche_ajax_mode));
}
print aff_notice(-2);
print "
";
print "
";
if($opac_allow_affiliate_search) print $catal_navbar;
else print "";
}else{
if($tab == "affiliate"){
//l'onglet source affiliées est actif, il faut son contenu...
$as=new affiliate_search_all($user_query);
$as->getResults();
print $as->results;
}
print "