Restreindre à  Articles de revues  Tout sauf revues"; return $r; } function search_other_function_clause() { global $typ_notice,$annee_parution; reset($typ_notice); $t_n_tab=array(); $r = ""; foreach ($typ_notice as $key => $val) { $t_n_tab[]=$key; } $t_n=implode("','",$t_n_tab); if ($t_n) { $t_n="'".$t_n."'"; $r .= "select distinct notice_id from notices where niveau_biblio in (".$t_n.")"; if ($annee_parution) { $r .= " and year like '%".$annee_parution."%'"; } } else { if ($annee_parution) { $r .= "select distinct notice_id from notices where year like '%".$annee_parution."%'"; } } return $r; } function search_other_function_has_values() { global $typ_notice, $annee_parution; if ((count($typ_notice))||($annee_parution)) return true; else return false; } function search_other_function_get_values(){ global $typ_notice, $annee_parution; return serialize($typ_notice)."---".$annee_parution; } function search_other_function_rec_history($n) { global $typ_notice,$annee_parution; $_SESSION["typ_notice".$n]=$typ_notice; $_SESSION["annee_parution".$n]=$annee_parution; } function search_other_function_get_history($n) { global $typ_notice,$annee_parution; $typ_notice=$_SESSION["typ_notice".$n]; $annee_parution=$_SESSION["annee_parution".$n]; } function search_other_function_human_query($n) { global $typ_notice,$annee_parution; $r=""; $notices_t=array("m"=>"Monographies","s"=>"Périodiques","a"=>"Articles"); $typ_notice=$_SESSION["typ_notice".$n]; $annee_parution=$_SESSION["annee_parution".$n]; if (count($typ_notice)) { $r.="pour les types de notices "; reset($typ_notice); $t_l=array(); foreach ($typ_notice as $key => $val) { $t_l[]=$notices_t[$key]; } $r.=implode(", ",$t_l); } if ($annee_parution) { if ($r) $r.=" "; $r.="parus en ".$annee_parution; } return $r; } function search_other_function_post_values() { global $typ_notice, $annee_parution, $charset; $ret = ""; if ($typ_notice["m"] != "") $ret .= ""; if ($typ_notice["s"] != "") $ret .= ""; if ($typ_notice["b"] != "") $ret .= ""; if ($typ_notice["a"] != "") $ret .= ""; return "".$ret."\n"; } ?>