"),ENT_QUOTES, $charset).""; $retour_aff .= $desc_explnum; $retour_aff .= "" ; } } return $retour_aff; } private function do_image($code,$vigurl="",$tit1="") { global $charset; global $opac_show_book_pics ; global $opac_book_pics_url ; global $opac_book_pics_msg ; global $opac_url_base ; global $msg; $image = ""; if ($code<>"" || $vigurl<>"") { if ($opac_show_book_pics=='1' && ($opac_book_pics_url || $vigurl)) { $url_image_ok=getimage_url($code, $vigurl); $title_image_ok = ""; if(!$vigurl) { $title_image_ok = htmlentities($opac_book_pics_msg, ENT_QUOTES, $charset); } if(!trim($title_image_ok)){ $title_image_ok = htmlentities($tit1, ENT_QUOTES, $charset); } $image = ""; } } return $image ; } // fonction retournant les infos d'exemplaires numeriques pour une notice private function do_explnum($no_notice, $niveau_biblio="m") { global $dbh; global $charset; global $opac_url_base ; if (!$no_notice) return ""; if (!$charset) $charset='ISO-8859-1'; create_tableau_mimetype() ; // recuperation du nombre d'exemplaires $requete = "SELECT explnum_id, explnum_notice, explnum_nom, explnum_mimetype, explnum_url, length(explnum_data) as taille "; $requete .= "FROM explnum JOIN explnum_statut on explnum_statut.id_explnum_statut = explnum.explnum_docnum_statut "; if($niveau_biblio != "b"){ $requete .= "JOIN notices ON explnum.explnum_notice=notice_id AND explnum.explnum_bulletin=0 "; $requete .= "JOIN notice_statut ON notices.statut=notice_statut.id_notice_statut "; $requete .= "WHERE explnum.explnum_notice='".$no_notice."' "; }else{//Pour les notices de bulletin $requete .= "JOIN bulletins ON explnum.explnum_bulletin=bulletins.bulletin_id AND explnum.explnum_notice=0 "; $requete .= "JOIN notices ON bulletins.num_notice=notices.notice_id "; $requete .= "JOIN notice_statut ON notices.statut=notice_statut.id_notice_statut "; $requete .= "WHERE bulletins.num_notice='".$no_notice."' "; } $requete .= "AND explnum_statut.explnum_visible_opac=1 and explnum_statut.explnum_visible_opac_abon=0 "; $requete .= "AND notice_statut.explnum_visible_opac=1 and notice_statut.explnum_visible_opac_abon=0 "; $requete .= "ORDER BY explnum_mimetype, explnum_id"; $res = pmb_mysql_query($requete, $dbh); $retour = ""; while (($expl = pmb_mysql_fetch_object($res))) { $url=htmlspecialchars ($opac_url_base."doc_num.php?explnum_id=".$expl->explnum_id,ENT_QUOTES, $charset) ; $mime=htmlspecialchars ($expl->explnum_mimetype,ENT_QUOTES, $charset) ; $retour .= " |