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.="
  • get_onglet_header()."\" onclick=\"show_what('tpl_".$id_tpl."_', '$id'); return false;\">".$notice_onglet->get_onglet_header()."
  • "; $onglets_content.=" "; } } $retour_aff=str_replace('', $onglets_title, $retour_aff); $retour_aff=str_replace('', $onglets_content, $retour_aff); */ $onglet_perso=new notice_onglets(); $retour_aff=$onglet_perso->insert_onglets($id,$retour_aff); if(!$depliable && $opac_notice_enrichment && $enrichment==1){ $retour_aff.=""; } } return $retour_aff; } function aff_notice_unimarc($id,$nocart=0, $entrepots_localisations=array()) { global $opac_notices_format; global $opac_notices_depliable; global $opac_cart_allow; global $opac_cart_only_for_subscriber; global $msg; if ((($opac_cart_allow)&&(!$opac_cart_only_for_subscriber))||(($opac_cart_allow)&&($_SESSION["user_code"]))) $cart=1; else $cart=0; if ($nocart) $cart=0; //Recherche des fonctions d'affichage //$f=get_aff_function(); //if ($f) return $f($id,$cart); if ($id) { $current = new notice_affichage_unimarc($id,"",$cart,0, $entrepots_localisations); $depliable=$opac_notices_depliable; $current->do_header(); if($current->notice_header == ""){ $current->notice_header = sprintf($msg['cart_notice_expired'],$id); $current->notice_expired = true; } switch ($opac_notices_format) { case AFF_ETA_NOTICES_REDUIT : $retour_aff .= $current->notice_header." "; 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 ; } } return $retour_aff; } ?>