0) {
$header_only=0;
if($recherche_ajax_mode && $opac_recherche_ajax_mode){
//Si ajax, on ne charge pas tout
$header_only=1;
}
$current = new $opac_notice_affichage_class($id,$liens_opac,$cart,0,$header_only,!$gen_header);
if($nodocnum) $current->docnum_allowed = 0;
if ($depliable === "") $depliable=$opac_notices_depliable;
if ($gen_header) $current->do_header();
if ($mode_aff_notice !== "") $type_aff=$mode_aff_notice;
else $type_aff=$opac_notices_format;
if(!$current->visu_notice){
return "";
}
if($opac_recherche_ajax_mode && $recherche_ajax_mode && $depliable && $type_aff!=AFF_ETA_NOTICES_REDUIT){
$current->genere_ajax($type_aff,0) ;
$retour_aff .= $current->result ;
}else{
switch ($type_aff) {
case AFF_ETA_NOTICES_REDUIT :
$retour_aff .= $current->notice_header_with_link."
";
break;
case AFF_ETA_NOTICES_ISBD :
$current->do_isbd();
$current->genere_simple($depliable, 'ISBD') ;
$retour_aff .= $current->result ;
break;
case AFF_ETA_NOTICES_PUBLIC :
$current->do_public();
$current->genere_simple($depliable, 'PUBLIC') ;
$retour_aff .= $current->result ;
break;
case AFF_ETA_NOTICES_BOTH :
$current->do_isbd();
$current->do_public();
$current->genere_double($depliable, 'PUBLIC') ;
$retour_aff .= $current->result ;
break ;
case AFF_ETA_NOTICES_BOTH_ISBD_FIRST :
$current->do_isbd();
$current->do_public();
$current->genere_double($depliable, 'ISBD') ;
$retour_aff .= $current->result ;
break ;
}
}
/*
$onglets_title="";
$onglets_content="";
if($opac_notices_format_onglets){
$onglets=explode(",", $opac_notices_format_onglets);
foreach($onglets as $id_tpl){
$notice_onglet=new notice_onglet($id_tpl);
$onglets_title.="