// \"$msg[back_summary]\"$msg[back_summary]"; // affichage recherche $clause = stripslashes($clause); $tri = stripslashes($tri); $pert=stripslashes($pert); $clause_bull = stripslashes($clause_bull); $clause_bull_num_notice = stripslashes($clause_bull_num_notice); $join = stripslashes($join); /* les données disponibles dans ce script sont : $user_query : la requête utilisateur $mode : sur quoi porte la recherche $count : le nombre de résultats trouvés $clause : la chaine contenant la clause MySQL $tri : la chaine contenant la clause MySQL de tri */ // nombre de références par pages (10 par défaut) if (!isset($opac_search_results_per_page)) $opac_search_results_per_page=10; $debut =($page-1)*$opac_search_results_per_page; $limiter = "LIMIT $debut,$opac_search_results_per_page"; if ((($opac_cart_allow)&&(!$opac_cart_only_for_subscriber))||(($opac_cart_allow)&&($_SESSION["user_code"]))) $add_cart_link="".$msg["cart_add_result_in"].""; // constitution des liens $nbepages = ceil($count/$opac_search_results_per_page); $catal_navbar= "
 
"; if(!$opac_allow_affiliate_search || $mode == 'external' || $mode == 'docnum'){ $url_page = "javascript:document.form_values.page.value=!!page!!; document.form_values.submit()"; $action = "javascript:document.form_values.page.value=document.form.page.value; document.form_values.submit()"; }else{ $url_page = "javascript:document.form_values.page.value=!!page!!; document.form_values.catalog_page.value=document.form_values.page.value; document.form_values.action = \"./index.php?lvl=more_results&tab=catalog\"; document.form_values.submit()"; $action = "javascript:document.form_values.page.value=document.form.page.value; document.form_values.catalog_page.value=document.form_values.page.value; document.form_values.action = \"./index.php?lvl=more_results&tab=catalog\"; document.form_values.submit()"; } $catal_navbar .= ""; $active_facette = 0; switch($mode) { case 'tous': $active_facette = 1; require_once($base_path.'/search/level2/tous.inc.php'); break; case 'titre': case 'title': $active_facette = 1; require_once($base_path.'/search/level2/title.inc.php'); break; case 'auteur': require_once($base_path.'/search/level2/author.inc.php'); break; case 'editeur': require_once($base_path.'/search/level2/publisher.inc.php'); break; case 'titre_uniforme': require_once($base_path.'/search/level2/titre_uniforme.inc.php'); break; case 'collection': require_once($base_path.'/search/level2/collection.inc.php'); break; case 'souscollection': require_once($base_path.'/search/level2/subcollection.inc.php'); break; case 'categorie': require_once($base_path.'/search/level2/category.inc.php'); break; case 'indexint': require_once($base_path.'/search/level2/indexint.inc.php'); break; case 'abstract': $active_facette = 1; require_once($base_path.'/search/level2/abstract.inc.php'); break; case 'keyword': $active_facette = 1; if ($search_type=="extended_search") $search_type=""; require_once($base_path.'/search/level2/keyword.inc.php'); break; case 'extended': //On annule la navigation par critères simples $_SESSION["level1"]=array(); $active_facette = 1; require_once($base_path.'/search/level2/extended.inc.php'); break; case 'external': //On annule la navigation par critères simples $_SESSION["level1"]=array(); require_once($base_path.'/search/level2/external.inc.php'); break; case 'docnum': require_once($base_path.'/search/level2/docnum.inc.php'); break; default: print $msg[no_document_found]; break; } //gestion des facette si active if(($active_facette)&& ($tab!="affiliate")){ require_once($base_path.'/classes/facette_search.class.php'); $tab_result = $searcher->get_result(); if($reinit_facette) unset($_SESSION['facette']); if(count($_SESSION['facette'])>0){ $search_type = "extended_search"; if(!is_object($es)) $es=new search(); } $str .= facettes::make_facette($tab_result); } $str_lvl1=facettes::do_level1(); switch ($search_type) { case 'simple_search': case 'tags_search': // constitution du form pour la suite $form .= "\n"; $form .= "\n"; $form .= "\n"; $form .= ""; if (function_exists("search_other_function_post_values")){ $form .=search_other_function_post_values(); } $form .= "\n"; $form .= "\n"; $form .= "\n"; if($opac_indexation_docnum_allfields) $form .= "\n"; $form .= "\n"; $form .= "\n"; $form .= "\n"; $form .= "\n"; $form .= "\n"; $form .= "\n"; $form .= "\n"; $f_values=$form; $form = "
\n"; $form .= $f_values; $form .= "\n"; if($opac_allow_affiliate_search){ $form .= "\n"; $form .= "\n"; } $form .= "\n"; $form .= "
"; if ((($opac_cart_allow)&&(!$opac_cart_only_for_subscriber))||(($opac_cart_allow)&&($_SESSION["user_code"]))) { $form .= "
\n"; $form .= $f_values; $form .= "
"; } break; case 'extended_search': $form=$es->make_hidden_search_form("./index.php?lvl=more_results&mode=extended","form_values","",false); if($opac_allow_affiliate_search){ $form .= "\n"; $form .= "\n"; } if($facette_test) $form .= "\n"; $form.=""; if ((($opac_cart_allow)&&(!$opac_cart_only_for_subscriber))||(($opac_cart_allow)&&($_SESSION["user_code"]))) { $form.=$es->make_hidden_search_form("./cart_info.php?lvl=more_results&mode=extended","cart_values","cart_info","",false); if($opac_allow_affiliate_search){ $form .= "\n"; $form .= "\n"; } $form.=""; } break; case 'external_search': $form=$es->make_hidden_search_form("./index.php?lvl=more_results&mode=external","form_values","",false); $form .= "\n"; if ($_SESSION["ext_type"]!="multi") { $form.=""; $form.=""; } else $form.=""; if ((($opac_cart_allow)&&(!$opac_cart_only_for_subscriber))||(($opac_cart_allow)&&($_SESSION["user_code"]))) $form.=$es->make_hidden_search_form("./cart_info.php?lvl=more_results&mode=external","cart_values","cart_info"); break; } print pmb_bidi($form); // affichage du navigateur si besoin (recherche affiliées off ou multi-critère (pagin géré dans le lvl2) if( $mode != 'extended' && (!$opac_allow_affiliate_search || $mode == 'external' || $mode == 'docnum')) print $catal_navbar;