get_current_mode()){ $aff_notice_fonction=$recordmodes->get_aff_function($mode_id); if($aff_notice_fonction){ $is_aff_notice_fonction=true; return $aff_notice_fonction; } } } $couples=explode(";",$opac_notice_groupe_fonction); for ($i=0; $ishow_mode_selector(); } $f=get_aff_function(); if ($f) return $entete.$f($id,$cart,$gen_header,$use_cache,$mode_aff_notice,$depliable,$nodocnum,$enrichment,$recherche_ajax_mode,$show_map,$recordmodes); if ($id>0) { if ($mode_aff_notice !== "") $type_aff=$mode_aff_notice; else $type_aff=$opac_notices_format; if ($depliable === "") $depliable=$opac_notices_depliable; if ($type_aff != AFF_ETA_NOTICES_TEMPLATE_DJANGO) { $header_only=0; if($recherche_ajax_mode && $opac_recherche_ajax_mode){ //Si ajax, on ne charge pas tout $header_only=1; } $class_affichage_to_call = $opac_notice_affichage_class; if (!$class_affichage_to_call) $class_affichage_to_call="notice_affichage"; $current = new $class_affichage_to_call($id,$liens_opac,$cart,0,$header_only,!$gen_header, $show_map); if($nodocnum) $current->docnum_allowed = 0; if ($gen_header) $current->do_header(); if(!$current->visu_notice){ return ""; } } if($opac_recherche_ajax_mode && $recherche_ajax_mode && $depliable && $type_aff!=AFF_ETA_NOTICES_REDUIT && $type_aff!=AFF_ETA_NOTICES_TEMPLATE_DJANGO){ $current->genere_ajax($type_aff,0) ; $retour_aff .= $current->result ; }else{ $flag_no_onglet_perso = 0; 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 ; case AFF_ETA_NOTICES_TEMPLATE_DJANGO : global $include_path; global $opac_notices_format_django_directory; if (!$opac_notices_format_django_directory) $opac_notices_format_django_directory = "common"; if (!$record_css_already_included) { if (file_exists($include_path."/templates/record/".$opac_notices_format_django_directory."/styles/style.css")) { $retour_aff .= ""; } $record_css_already_included = true; } // Si on l'appelle par le tag {% etagere_see %}, on veut tout le temps le réduit... $trace = debug_backtrace(); $count_trace = count($trace); $from_etagesee_tag = false; $from_recordsee_tag = false; for ($i = 2; $i < $count_trace; $i++) { if (isset($trace[$i]['object']) && get_class($trace[$i]['object']) === "Etageresee_Tag") { $from_etagesee_tag=true; } if (isset($trace[$i]['object']) && get_class($trace[$i]['object']) === "Recordsee_Tag") { $from_recordsee_tag=true; } } if($from_etagesee_tag === true){ $retour_aff .= record_display::get_display_in_result($id, $template_directory); }elseif($from_recordsee_tag === true){ $retour_aff .= record_display::get_display_in_result($id, $template_directory); }else{ switch ($lvl) { case 'notice_display' : case 'bulletin_display' : case 'resa' : $retour_aff .= record_display::get_display_extended($id, $template_directory); break; case 'more_result' : default : if($search_type_asked=='perio_a2z'){ $retour_aff .= record_display::get_display_extended($id, $template_directory); } else { $retour_aff .= record_display::get_display_in_result($id, $template_directory); } break; } } break; default: $current->do_isbd(); $current->do_public(); $current->genere_double($depliable, 'autre') ; $retour_aff .= $current->result ; $flag_no_onglet_perso=1; 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); */ if(!$flag_no_onglet_perso){ $onglet_perso=new notice_onglets(); $retour_aff=$onglet_perso->insert_onglets($id,$retour_aff); } if(!$depliable && $opac_notice_enrichment && $enrichment==1){ $retour_aff.=""; } } } return $entete.$retour_aff; } function aff_notice_unimarc($id,$nocart=0, $entrepots_localisations=array(), $mode_aff_notice = "", $template_directory = "") { global $opac_notices_format; global $opac_notices_depliable; global $opac_cart_allow; global $opac_cart_only_for_subscriber; global $msg; global $record_css_already_included; $retour_aff = ''; if ((($opac_cart_allow)&&(!$opac_cart_only_for_subscriber))||(($opac_cart_allow)&&($_SESSION["user_code"]))) $cart=1; else $cart=0; if ($nocart) $cart=0; if ($mode_aff_notice !== "") $type_aff=$mode_aff_notice; else $type_aff=$opac_notices_format; //Recherche des fonctions d'affichage //$f=get_aff_function(); //if ($f) return $f($id,$cart); if ($id) { if ($type_aff != AFF_ETA_NOTICES_TEMPLATE_DJANGO) { $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 ($type_aff) { 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 ; case AFF_ETA_NOTICES_TEMPLATE_DJANGO : global $include_path; global $opac_notices_format_django_directory; if (!$opac_notices_format_django_directory) $opac_notices_format_django_directory = "common"; if (!$record_css_already_included) { if (file_exists($include_path."/templates/record/".$opac_notices_format_django_directory."/styles/style.css")) { $retour_aff .= ""; } $record_css_already_included = true; } $retour_aff .= record_display::get_display_unimarc_in_result($id, $template_directory, $entrepots_localisations); break; default: $current->do_isbd(); $current->do_public(); $current->genere_double($depliable, 'autre') ; $retour_aff .= $current->result ; break ; } } return $retour_aff; } function aff_serial_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; $retour_aff = ''; 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 serial_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 ; default: $current->do_isbd(); $current->do_public(); $current->genere_double($depliable, 'autre') ; $retour_aff .= $current->result ; break ; } } return $retour_aff; } ?>