";
}
//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")){
// gestion du tri
if (isset($_GET["sort"])) {
$_SESSION["last_sortnotices"]=$_GET["sort"];
}
if ($count>$opac_nb_max_tri) {
$_SESSION["last_sortnotices"]="";
}
$searcher = new searcher_keywords(stripslashes($user_query));
if(!isset($count)){
//accès direct sans calcul préalable, on a besoin de recalculer les éléments du paginateur
$count = $searcher->get_nb_results();
$nbepages = ceil($count/$opac_search_results_per_page);
$catal_navbar= "
";
$catal_navbar .= "
\n".printnavbar($page, $nbepages, $url_page,$action)."";
}
if($opac_allow_tags_search == 1)
print pmb_bidi("
$count ".$msg["results"]." ".$msg['tags_found']." '".htmlentities(stripslashes($user_query),ENT_QUOTES,$charset)."'");
else
print pmb_bidi("$count ".$msg["results"]." ".$msg['keywords_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 "
";
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 "
";
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));
$para1=substr($_SERVER['REQUEST_URI'],$pos+1,$pos1-$pos+1);
$affich_tris_result_liste=str_replace("!!page_en_cours!!",$para,$affich_tris_result_liste);
$affich_tris_result_liste=str_replace("!!page_en_cours1!!",$para1,$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"])." ";
} elseif ($opac_default_sort_display) {
$sort=new sort('notices','session');
print "
".$msg['tri_par']." ".$sort->descriptionTriParId("default")." ";
}
} 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"]="keyword";
$_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 "