0)$id_thes=$id_thes_unique;
else{
//recuperation du thesaurus session en fonction du caller
switch ($caller) {
case 'notice' :
if (!$id_thes) $id_thes = thesaurus::getNoticeSessionThesaurusId();
thesaurus::setNoticeSessionThesaurusId($id_thes);
break;
case 'categ_form' :
if (!$id_thes) $id_thes = thesaurus::getSessionThesaurusId();
if( $dyn!=2) thesaurus::setSessionThesaurusId($id_thes);
break;
default :
if (!$id_thes) $id_thes = thesaurus::getSessionThesaurusId();
thesaurus::setSessionThesaurusId($id_thes);
break;
}
}
$thes = new thesaurus($id_thes);
//affichage du selectionneur de thesaurus
$liste_thesaurus = thesaurus::getThesaurusList();
$sel_thesaurus = '';
if ($thesaurus_mode_pmb != 0 && !$id_thes_unique) { //la liste des thesaurus n'est pas affichée en mode monothesaurus
$sel_thesaurus = " ";
}
$sel_search_form=str_replace("!!sel_thesaurus!!",$sel_thesaurus,$sel_search_form);
// traitement en entrée des requêtes utilisateur
if ($deb_rech) $f_user_input = $deb_rech ;
if(!$f_user_input && !$user_input) {
$user_input='';
} else {
// traitement de la saisie utilisateur
if(!$user_input && $f_user_input) $user_input = $f_user_input;
}
// indexation auto
$sel_search_form=str_replace("!!sel_index_auto!!",get_autoindex_form(),$sel_search_form);
switch ($search_type) {
case "term":
$sel_search_form=str_replace("!!t_checked!!","checked",$sel_search_form);
$sel_search_form=str_replace("!!h_checked!!","",$sel_search_form);
$sel_search_form=str_replace("!!autoindex_checked!!","",$sel_search_form);
$sel_search_form=str_replace("!!display_search_part!!","block",$sel_search_form);
$src='term_browse.php';
break;
case "autoindex":
$sel_search_form=str_replace("!!t_checked!!","",$sel_search_form);
$sel_search_form=str_replace("!!h_checked!!","",$sel_search_form);
$sel_search_form=str_replace("!!autoindex_checked!!","checked",$sel_search_form);
$sel_search_form=str_replace("!!display_search_part!!","none",$sel_search_form);
break;
default:
$sel_search_form=str_replace("!!h_checked!!","checked",$sel_search_form);
$sel_search_form=str_replace("!!t_checked!!","",$sel_search_form);
$sel_search_form=str_replace("!!autoindex_checked!!","",$sel_search_form);
$sel_search_form=str_replace("!!display_search_part!!","block",$sel_search_form);
$src='category_browse.php';
break;
}
$sel_search_form=str_replace("!!f_user_input_value!!",htmlentities(stripslashes($f_user_input),ENT_QUOTES,$charset),$sel_search_form);
print $sel_search_form;
if($search_type == "autoindex"){
echo $jscript_term;
print display_autoindex_list();
print $sel_footer;
exit;
}
if(!$parent) $parent=0;
print "
\n";
print $sel_footer;