setDomain(1);
$acces_j = $dom_1->getJoin($PMBuserid,4,'notice_id');
}
$param_notice_id = explode(",",$pmb_show_notice_id);
$prefix_id = $param_notice_id[1];
if($prefix_id){
$f_notice_id = str_replace($prefix_id,"",$f_notice_id);
}
$rqt = "select * from notices where notice_id='".$f_notice_id."'";
$res = pmb_mysql_query($rqt);
if(pmb_mysql_num_rows($res)){
$ident = pmb_mysql_fetch_object($res);
//C'est une notice d'article, on renvoie vers le bulletin
if($ident->niveau_biblio == 'a' && $ident->niveau_hierar == '2'){
$rqt_bull = "select analysis_bulletin from analysis where analysis_notice='".$ident->notice_id."'";
$res_bull = pmb_mysql_query($rqt_bull);
if(pmb_mysql_num_rows($res_bull)){
$ident_bull = pmb_mysql_result($res_bull,0,0);
print "";
}
//C'est une notice de periodique
} elseif ($ident->niveau_biblio == 's' && $ident->niveau_hierar == '1'){
print "";
//C'est une notice de bulletin
} elseif ($ident->niveau_biblio == 'b' && $ident->niveau_hierar == '2'){
$rqt_bull = "select bulletin_id from bulletins where num_notice='".$ident->notice_id."'";
$res_bull = pmb_mysql_query($rqt_bull);
if(pmb_mysql_num_rows($res_bull)){
$ident_bull = pmb_mysql_result($res_bull,0,0);
print "";
}
//C'est une notice de monographie
} else {
print "";
}
} else {
error_message($msg[235], $msg['notice_id_query_failed']." ".$f_notice_id, 1, "./catalog.php?categ=search&mode=0");
die();
}
?>