analyser();
$carac = $carac_spec->table;
reset($carac_spec->table);
//Nettoyage de la chaine recherch�e
function nettoyer_chaine($tree="",&$tableau,&$tableau_l,$aq,$not) {
global $empty_word,$charset;
if ($tree=="") $tree=$aq->tree;
for ($i=0; $inot) $mul=-1; else $mul=1;
if ($tree[$i]->sub==null) {
if ($not*$mul==1)
if ($tree[$i]->literal){
$mot = str_replace("*","\w*",$tree[$i]->word);
if($mot)
$tableau_l[]= htmlentities($mot,ENT_QUOTES,$charset);
} else{
$mot = str_replace("*","\w*",$tree[$i]->word);
if(strlen($tree[$i]->word)<=1)
$mot = "";
if($mot){
$tableau[]= $mot;
}
}
} else {
$not=$not*$mul;
nettoyer_chaine($tree[$i]->sub,$tableau,$tableau_l,$aq,$not);
}
}
}
$tableau=array();
$tableau_l=array();
if ($user_query && (trim($user_query) != "*")) {
$aq=new analyse_query(stripslashes($user_query),0,0,1,0,$opac_stemming_active);
if (!$aq->error) {
nettoyer_chaine("",$tableau,$tableau_l,$aq,1);
}
}
$inclure_recherche = "";
?>