$msg[z3950_recherche]";
$crit1 = $_COOKIE['PMB-Z3950-criterion1'];
$crit2 = $_COOKIE['PMB-Z3950-criterion2'];
$bool1 = $_COOKIE['PMB-Z3950-boolean'];
$clause = $_COOKIE['PMB-Z3950-clause'];
/* default values */
if ($crit1 == '') $crit1 = 'isbn';
if ($bool1 == '') $bool1 = 'ET';
if($issn){
$crit1 = 'issn';
$isbn = $issn;
}
if ($clause != "")
$bibli_selectionees = explode(",",$clause);
else
$bibli_selectionees = array();
$select_bib="";
$requete_bib = "SELECT bib_id, bib_nom, base FROM z_bib where search_type='CATALOG' ORDER BY bib_nom, base ";
$res_bib = mysql_query($requete_bib, $dbh);
while(($liste_bib=mysql_fetch_object($res_bib))) {
$pos = array_search($liste_bib->bib_id, $bibli_selectionees);
if ($pos === false) {
$select_bib.= " ".
$liste_bib->bib_nom." - ".$liste_bib->base."\n";
} else {
$select_bib.= " ".
$liste_bib->bib_nom." - ".$liste_bib->base."\n";
}
$select_bib.="
";
}
$z3950_search_tpl = str_replace('!!liste_bib!!', $select_bib, $z3950_search_tpl);
$z3950_search_tpl = str_replace('!!isbn!!', $isbn, $z3950_search_tpl);
$z3950_search_tpl = str_replace('!!id_notice!!', $id_notice, $z3950_search_tpl);
$z3950_search_tpl = str_replace('!!crit1!!', z_gen_combo_box ($crit1,"crit1"), $z3950_search_tpl);
$z3950_search_tpl = str_replace('!!crit2!!', z_gen_combo_box ($crit2,"crit2"), $z3950_search_tpl);
$z3950_search_tpl = str_replace("