document.location = '".bulletinage::get_permalink($bull->bulletin_id)."'
";
exit;
}
}
//droits d'acces utilisateur/notice (lecture)
$acces_l=1;
if ($gestion_acces_active==1 && $gestion_acces_user_notice==1) {
require_once("$class_path/acces.class.php");
$ac= new acces();
$dom_1= $ac->setDomain(1);
$acces_l = $dom_1->getRights($PMBuserid,$id,4); //lecture
}
if ($acces_l==0) {
error_message('', htmlentities($dom_1->getComment('view_noti_error'), ENT_QUOTES, $charset), 1, '');
} else {
$sort_children = 1;
// définition de quelques variables
$libelle = $msg[270];
notice::init_globals_patterns_links();
$expl_link = exemplaire::get_pattern_link();
$link_explnum = explnum::get_pattern_link();
$isbd = new mono_display($id, 6, '', 1, $expl_link, '', $link_explnum,1,0,1,0,'',0,false,true,0,1);
$cart_click_isbd = "onClick=\"openPopUp('./cart.php?object_type=NOTI&item=$id', 'cart')\"";
$cart_over_out = "onMouseOver=\"show_div_access_carts(event,".$id.");\" onMouseOut=\"set_flag_info_div(false);\"";
$cart_click_isbd = " " ;
if ($current!==false) {
$print_action = " ";
}
$visualise_click_notice="
";
print pmb_bidi("
".$msg['record_see_title']." ");
// header
print pmb_bidi("
".$isbd->aff_statut.$cart_click_isbd.$print_action.$visualise_click_notice.$isbd->header." ");
$boutons = "
";
if($boutons) $isbd->isbd = str_replace('', $boutons, $isbd->isbd);
else $isbd->isbd = str_replace('', "", $isbd->isbd);
$isbd->isbd = str_replace('', avis_notice($id,$avis_quoifaire,$valid_id_avis), $isbd->isbd);
$isbd->isbd = str_replace('', caddie_controller::get_display_list_from_item('display', 'NOTI', $id), $isbd->isbd);
// Titre de la page
if ($isbd->tit1) {
print '';
}
// isbd + exemplaires existants
print pmb_bidi("
$isbd->isbd
");
// pour affichage de l'image de couverture
if ($pmb_book_pics_show=='1' && (($pmb_book_pics_url && $isbd->notice->code) || $isbd->notice->thumbnail_url)) {
print "
";
}
// form de création d'exemplaire
if ((!$explr_visible_mod)&&($pmb_droits_explr_localises)) {
$etiquette_expl="";
$btn_ajouter_expl="";
$saisie_num_expl=" ";
$saisie_num_expl.= "".$msg["err_add_invis_expl"]."
";
} else {
global $pmb_numero_exemplaire_auto,$pmb_numero_exemplaire_auto_script;
$num_exemplaire_auto="";
//if($pmb_numero_exemplaire_auto>0) $num_exemplaire_auto=" $msg[option_num_auto] ";
if($pmb_numero_exemplaire_auto==1 || $pmb_numero_exemplaire_auto==2){
$num_exemplaire_auto=" $msg[option_num_auto] ";
}
$etiquette_expl="$msg[291] ";
$btn_ajouter_expl=" ";
$saisie_num_expl=" ".$num_exemplaire_auto;
}
$expl_new = str_replace ('!!etiquette!!',$etiquette_expl,$expl_new);
$expl_new = str_replace ('!!saisie_num_expl!!',$saisie_num_expl,$expl_new);
$expl_new = str_replace ('!!btn_ajouter!!',$btn_ajouter_expl,$expl_new);
$expl_new = str_replace('!!id!!', $id, $expl_new);
if(explnum::get_default_upload_directory()){
$expl_new.= explnum::get_drop_zone($id, 'record');
}
if($pmb_enable_explnum_edition_popup){
$expl_new.= $explnum_popup_edition_script;
}
print "";
print $expl_new;
print "
";
if($categ == 'update'){ //Modification de la globale categ pour ne pas retomber dans le cas update au changement de page affichage onglet
$categ = 'isbd';
}
$template_path_records_tabs = "./includes/templates/records/records_elements_tabs.html";
if(file_exists("./includes/templates/records/records_elements_tabs_subst.html")){
$template_path_records_tabs = "./includes/templates/records/records_elements_tabs_subst.html";
}
if(file_exists($template_path_records_tabs)){
$h2o_record_tabs = H2o_collection::get_instance($template_path_records_tabs);
$record = new notice($isbd->notice_id);
if ($pmb_nomenclature_activate && $pmb_nomenclature_music_concept_blank && $record->get_nomenclature_record_formations() && count($record->get_nomenclature_record_formations()->get_record_formations())) {
$records_tabs = new nomenclature_records_tabs($record);
} else {
$records_tabs = new records_tabs($record);
}
$records_list_ui = $records_tabs->get_record()->get_records_list_ui();
if ($records_list_ui) $records_list_ui->set_current_url($pmb_url_base.'catalog.php?categ='.$categ.'&id='.$isbd->notice_id.'&quoi='.$quoi);
print $h2o_record_tabs->render(array('records_tabs' => $records_tabs));
}
}
?>