//$rec="";
         }
     }
     if ($pb) {
         $messageframe = $msg["z3950_reception_notice"] . $messageframe;
     } else {
         $messageframe = $msg["z3950_reception_notice"] . $messageframe;
     }
     affiche_jsscript($messageframe, "", $bib_id);
     if ($rec != "") {
         $total++;
         //if ($total % 10 == 0) {
         //   affiche_jsscript ($msg["z3950_reception_notice"]." $total / $lim_recherche", "#99FF99", $bib_id);
         //}
         $notice = new z3950_notice($formato[$bib_id], $rec);
         $isbd_affichage = $notice->get_isbd_display();
         $lu_isbn = $isbd_affichage[0];
         $lu_titre = $isbd_affichage[1];
         $lu_auteur = $isbd_affichage[2];
         $lu_isbd = $isbd_affichage[3];
         $sql2 = "insert into z_notices (znotices_id, znotices_query_id, znotices_bib_id, isbn, titre, auteur, isbd, z_marc) ";
         $sql2 .= "values(0,'{$last_query_id}', '{$bib_id}', '{$lu_isbn}', '" . addslashes($lu_titre) . "', '" . addslashes($lu_auteur) . "', '" . addslashes($lu_isbd) . "','" . addslashes($rec) . "') ";
         pmb_mysql_query($sql2);
         $ID_notice = pmb_mysql_insert_id();
     }
     // fin du if qui vérifie que la notice n'est pas vide
 }
 // fin for
 yaz_close($id);
 $msg1 = str_replace("!!total!!", $total, $msg[z3950_recup_fini]);
 $msg1 = str_replace("!!hits!!", $hits, $msg1);