";
global $at_least_one_has_expl;
$requete_compte_expl_id="select 1 from exemplaires where expl_notice='".$id."'";
$resultat_compte_expl_id=pmb_mysql_query($requete_compte_expl_id);
if (!pmb_mysql_num_rows($resultat_compte_expl_id)) {
$message=$msg["confirm_suppr_notice"];
if ($isbd->nb_expl!=0) $at_least_one_has_expl++;
if ($at_least_one_has_expl) $message=$msg["del_expl_noti_child"];
$boutons .= "
";
}
$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);
// 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="
";
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 = new H2o($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));
}
}
?>