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 = "basket" ; if ($current!==false) { $print_action = " \"".$msg["histo_print"]."\""; } $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 = "
 "; $boutons .= " "; if ($z3950_accessible) $boutons .= " "; if ($pmb_allow_external_search) $boutons .= " "; if ($pmb_allow_external_search) $boutons .= " "; $boutons .= " "; $boutons .= " "; $boutons.= form_mapper::get_action_button('notice', $id); if($acquisition_active) { $boutons .= ""; } if((SESSrights & CIRCULATION_AUTH) && $pmb_scan_request_activate){ $boutons .= ""; } $evth = events_handler::get_instance(); $evt = new event_display_overload('notice', 'show_isbd_action'); $evt->set_entity_id($id); $evth->send($evt); $evt_result = $evt->get_overloads(); if(isset($evt_result)){ foreach($evt_result as $overload){ $boutons.= $overload; } } if ($pmb_type_audit) { $boutons .= audit::get_dialog_button($id, 1); } $boutons .="
"; 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); $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] "; $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)); } } ?>