do_header_without_html(); if($param['aj_nodocnum']) $display->docnum_allowed = 0; $flag_no_onglet_perso = 0; $type_aff=$param['aj_type_aff']; switch ($type_aff) { case AFF_ETA_NOTICES_ISBD : $display->do_isbd(); $display->genere_simple(0, 'ISBD') ; $retour_aff=$display->result; break; case AFF_ETA_NOTICES_PUBLIC : $display->do_public(); $display->genere_simple(0, 'PUBLIC') ; $retour_aff=$display->result; break; case AFF_ETA_NOTICES_BOTH : $display->do_isbd(); $display->do_public(); $display->genere_double(0, 'PUBLIC') ; $retour_aff=$display->result; break ; case AFF_ETA_NOTICES_BOTH_ISBD_FIRST : $display->do_isbd(); $display->do_public(); $display->genere_double(0, 'ISBD') ; $retour_aff=$display->result; break ; case AFF_ETA_NOTICES_TEMPLATE_DJANGO : $retour_aff=""; 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_extended($param['id']); break; default: $display->do_isbd(); $display->do_public(); $display->genere_double(0, 'autre') ; $flag_no_onglet_perso=1; $retour_aff=$display->result; break ; } $html=$retour_aff; if(!$flag_no_onglet_perso){ $onglet_perso=new notice_onglets(); $html=$onglet_perso->insert_onglets($param['id'],$html); } if ($param['id'] && $param['datetime'] && $param['token']) { if ($opac_notice_affichage_class::check_token($param['id'], $param['datetime'], $param['token'])) { add_value_session('tab_result_read',$param['id']); if($pmb_logs_activate) { global $infos_notice,$infos_expl; $infos_notice = $opac_notice_affichage_class::get_infos_notice($param['id']); $infos_expl = $opac_notice_affichage_class::get_infos_expl($param['id']); generate_log(); } } } ajax_http_send_response($html); ?>