get_selected_subtab(); if(!empty($selected_subtab)) { $sub_title .= " > ".$selected_subtab->get_label(); } break; case 'infopages': $sub_title .= $msg['infopages_admin_menu']; break; case 'opac': switch($sub) { case 'search_persopac': $sub_title .= $msg['admin_menu_search_persopac']; break; case 'maintenance': $sub_title .= $msg['admin_menu_opac_'.$sub]; break; case 'navigopac': $sub_title .= $msg['exemplaire_admin_navigopac']; break; case 'stat': $sub_title .= $msg['stat_opac_menu']; break; default : $selected_subtab = $this->get_selected_subtab(); if(!empty($selected_subtab)) { $sub_title .= $selected_subtab->get_label(); } break; } break; case 'contact_forms': switch($sub) { case 'objects': case 'recipients': case 'parameters': $sub_title .= $msg['admin_opac_contact_form_'.$sub]; break; default : break; } break; case 'proc': switch($sub) { case 'clas': $sub_title .= $msg['admin_menu_act_perso_clas']; break; case 'req': $sub_title .= $msg['admin_menu_req']; break; case 'proc': default : $sub_title .= $msg['admin_menu_act_perso']; break; } break; case 'quotas': $sub_title .= parent::get_sub_title(); if(!empty($elements)) { $qt=quota::get_instance($sub); $sub_title .= " > ".$qt->get_title_by_elements_id($elements); } break; case 'calendrier': switch($sub) { case 'edition': $sub_title .= $msg['calendrier_edition']; break; case 'consulter': default : $sub_title .= $msg['calendrier_consulter']; break; } break; case 'z3950': if($sub == 'zattr') { $sub_title .= $msg['769']; } else { $sub_title .= $msg['768']; } break; case 'visionneuse': $sub_title .= parent::get_sub_title(); if(!empty($quoi)) { $sub_title .= " > $quoi"; } break; default: $sub_title .= parent::get_sub_title(); break; } return $sub_title; } protected function _init_subtabs() { global $sub; global $pmb_sur_location_activate, $pmb_map_activate, $ldap_accessible; global $pmb_pret_restriction_prolongation, $pmb_short_loan_management; global $pmb_gestion_financiere, $pmb_gestion_abonnement, $pmb_gestion_tarif_prets, $pmb_gestion_amende, $pmb_gestion_financiere_caisses; global $acquisition_gestion_tva, $acquisition_sugg_categ; global $pmb_opac_view_activate, $PMBuserid; switch (static::$categ) { case 'docs': //Exemplaires $this->add_subtab('typdoc', 'admin_menu_docs_type', '724'); $this->add_subtab('location', '21', '728'); if($pmb_sur_location_activate) { $this->add_subtab('sur_location', 'sur_location_admin_menu', 'sur_location_admin_menu_title'); } $this->add_subtab('section', '19', '726'); $this->add_subtab('statut', '20', '727'); $this->add_subtab('codstat', '24', '725'); $this->add_subtab('lenders', '554', '732'); $this->add_subtab('perso', 'admin_menu_docs_perso'); break; case 'notices': //Notices $this->add_subtab('orinot', 'orinot_origine_short', 'orinot_origine'); $this->add_subtab('statut', 'admin_menu_noti_statut'); if($pmb_map_activate) { $this->add_subtab('map_echelle', 'admin_menu_noti_map_echelle'); $this->add_subtab('map_projection', 'admin_menu_noti_map_projection'); $this->add_subtab('map_ref', 'admin_menu_noti_map_ref'); } $this->add_subtab('perso', 'admin_menu_noti_perso'); $this->add_subtab('onglet', 'admin_menu_noti_onglet', 'admin_menu_noti_onglet_title'); $this->add_subtab('notice_usage', 'admin_menu_notice_usage'); break; case 'authorities': //Autorités $this->add_subtab('origins', 'origins'); $this->add_subtab('statuts', '20'); $perso_subtabs = array('author', 'categ', 'publisher', 'collection', 'subcollection', 'serie', 'tu', 'indexint', 'skos'); for($i=0; $iadd_subtab('perso', 'admin_menu_docs_perso_'.$perso_subtabs[$i], '', '&type_field='.$perso_subtabs[$i]); } $this->add_subtab('authperso', 'admin_menu_authperso'); $this->add_subtab('templates', 'admin_menu_authperso_template'); break; case 'docnum': //upload des documents numériques $this->add_subtab('rep', 'upload_repertoire'); $this->add_subtab('storages', 'storage_menu'); $this->add_subtab('statut', 'admin_menu_docnum_statut'); $this->add_subtab('perso', 'admin_menu_noti_perso'); $this->add_subtab('licence', 'admin_menu_noti_licence'); break; case 'collstate': //Etats des collections $this->add_subtab('emplacement', 'admin_menu_collstate_emplacement'); $this->add_subtab('support', 'admin_menu_collstate_support'); $this->add_subtab('statut', 'admin_menu_collstate_statut'); $this->add_subtab('perso', 'admin_collstate_collstate_perso'); break; case 'abonnements': //Abonnements $this->add_subtab('periodicite', 'admin_menu_abonnements_periodicite', 'admin_menu_abonnements_periodicite'); $this->add_subtab('status', 'admin_menu_abonnements_status', 'admin_menu_abonnements_status'); break; case 'empr': //Lecteurs $this->add_subtab('categ', 'lecteurs_categories', '729'); $this->add_subtab('statut', 'empr_statut_menu', 'empr_statut_menu'); $this->add_subtab('codstat', '24', '730'); $this->add_subtab('implec', 'import_lec_lien', 'import_lec_alt'); if ($ldap_accessible) { $this->add_subtab('ldap', 'import_ldap', 'import_ldap'); $this->add_subtab('exldap', 'menu_suppr_exldap', 'menu_suppr_exldap'); } //---------------------LLIUREX 06/05/2021------------------ $this->add_subtab('imple', 'import_lec_biblio', 'import_lec_alt'); $this->add_subtab('itaca', 'import_usu_from_itaca_b', 'import_usu_from_itaca_b'); $this->add_subtab('export', 'usur_exp_b', 'usur_exp_b'); //--------------------- FIN LLIUREX 06/05/2021---------------- $this->add_subtab('parperso', 'parametres_perso_lec_lien', 'parametres_perso_lec_alt'); $this->add_subtab('empr_account', 'empr_account', 'empr_account'); //-----------------------LLIUREX 06/05/2021----------- $this->add_subtab('migration', 'usur_migr_menu', 'usur_migr_menu'); //------------------------FIN LLIUREX 06/05/2021--------- break; case 'users': //Utilisateurs $this->add_subtab('users', '26', '731'); $this->add_subtab('groups', 'admin_usr_grp_ges', '731'); break; case 'cms_editorial': //Contenu éditorial $this->add_subtab('type', 'editorial_content_type_section', '', '&elem=section'); $this->add_subtab('type', 'editorial_content_type_article', '', '&elem=article'); $this->add_subtab('publication_state', 'editorial_content_publication_state'); break; case 'loans': //Prets $this->add_subtab('perso', 'admin_menu_loans_perso'); break; case 'composed_vedettes': //Vedettes composées $this->add_subtab('grammars', 'composed_vedettes_grammars'); $this->add_subtab('schemes', 'ontology_skos_conceptscheme'); break; case 'pnb': //PNB $this->add_subtab('param', 'admin_menu_pnb_param'); $this->add_subtab('check', 'admin_pnb_check_title'); break; case 'visionneuse': //Visionneuse $this->add_subtab('class', 'visionneuse_admin_class'); $this->add_subtab('mimetype', 'visionneuse_admin_mimetype'); break; case 'opac': switch ($sub) { case 'facettes': case 'facettes_authorities': case 'facettes_external': case 'facettes_comparateur': //Facettes $this->add_subtab('facettes', 'facettes_records'); $this->add_subtab('facettes_authorities', 'facettes_authorities', '', '&type=authors'); $this->add_subtab('facettes_external', 'facettes_external_records'); $this->add_subtab('facettes_comparateur', 'facettes_admin_menu_compare'); break; case 'opac_view': //Vues OPAC $this->add_subtab($sub, 'opac_view_admin_menu_list', '', '§ion=list'); if($pmb_opac_view_activate == 2){ $this->add_subtab($sub, 'opac_view_admin_menu_affect', '', '§ion=affect'); } break; } break; case 'search_universes': //Univers de recherche $this->add_subtab('universe', 'admin_search_universe'); break; case 'family': case 'formation': case 'voice': case 'instrument': case 'material': //Nomenclatures $this->add_subtab(static::$categ, 'admin_nomenclature_'.static::$categ); break; case 'quotas': $qt=quota::get_instance($sub); $_quotas_types_ = quota::$_quotas_[$qt->descriptor]['_types_']; for ($i=0; $iadd_subtab($_quotas_types_[$i]["ID"], $_quotas_types_[$i]["SHORT_COMMENT"]); } break; case 'finance': //Gestion financiere if (($pmb_gestion_financiere)&&($pmb_gestion_abonnement==2)) { $this->add_subtab('abts', 'finance_abts'); } if (($pmb_gestion_financiere)&&($pmb_gestion_tarif_prets==2)) { $this->add_subtab('prets', 'finance_prets'); } if (($pmb_gestion_financiere)&&($pmb_gestion_amende)) { $this->add_subtab('amendes', 'finance_amendes'); $this->add_subtab('amendes_relance', 'finance_amendes_relances'); } $this->add_subtab('blocage', 'finance_blocage'); if (($pmb_gestion_financiere)) { $this->add_subtab('transactype', 'transaction_admin'); $this->add_subtab('transaction_payment_method', 'transaction_payment_method_admin'); } if (($pmb_gestion_financiere)&&($pmb_gestion_financiere_caisses)) { $this->add_subtab('cashdesk', 'cashdesk_admin'); } break; case 'import': //Import $this->add_subtab('import', '500', '733'); $this->add_subtab('import_expl', '520', '734'); $this->add_subtab('pointage_expl', '569'); //-------------------LLIUREX 06/05/2021.----------- $this->add_subtab('import_reb', 'import_reb'); //-------------------FIN LLIUREX 06/05/2021---------- $this->add_subtab('import_skos', 'ontology_skos_admin_import'); //------------------LLIUREX 06/052021----------------- $this->add_subtab('import_abies', 'import_abies'); break; case 'convert': //Outils de Conversion/Export de formats $this->add_subtab('import', 'admin_convExterne'); $this->add_subtab('export', 'admin_ExportPMB'); $this->add_subtab('paramgestion', 'admin_param_export_gestion'); $this->add_subtab('paramopac', 'admin_param_export_opac'); break; case 'harvest': //Récolteur $this->add_subtab('profil', 'admin_harvest_build_menu'); $this->add_subtab('profil_import', 'admin_harvest_profil_title'); break; case 'z3950': //Z39.50 $this->add_subtab('zbib', 'z3950_serveurs', 'z3950_menu_admin_title'); break; case 'planificateur': //Gestionnaire de tâches $this->add_subtab('manager', 'planificateur_admin_manager'); $this->add_subtab('reporting', 'planificateur_admin_reporting'); break; case 'external_services': //Services externes $this->add_subtab('general', 'es_admin_general'); $this->add_subtab('peruser', 'es_admin_peruser'); $this->add_subtab('esusers', 'es_admin_esusers'); $this->add_subtab('esusergroups', 'es_admin_esusergroups'); // $this->add_subtab('es_tests', 'Tests'); break; case 'connecteurs': //Connecteurs $this->add_subtab('in', 'admin_connecteurs_in'); $this->add_subtab('categ', 'admin_connecteurs_categ'); $this->add_subtab('out', 'admin_connecteurs_out'); $this->add_subtab('out_auth', 'admin_connecteurs_outauth'); $this->add_subtab('out_sets', 'admin_connecteurs_sets'); $this->add_subtab('categout_sets', 'admin_connecteurs_categsets'); $this->add_subtab('enrichment', 'admin_connecteurs_enrichment'); break; case 'selfservice': //Borne de prêt $this->add_subtab('pret', 'selfservice_admin_pret'); $this->add_subtab('retour', 'selfservice_admin_retour'); break; case 'sauvegarde': //Sauvegarde //------------------- LLIUREX 06/05/2021------------ /* $this->add_subtab('lieux', 'sauv_menu_lieux', 'sauv_menu_lieux_c'); $this->add_subtab('tables', 'sauv_menu_tables', 'sauv_menu_tables_c'); $this->add_subtab('gestsauv', 'sauv_menu_jeux', 'sauv_menu_jeux_c'); $this->add_subtab('launch', 'sauv_menu_launch', 'sauv_menu_launch_c'); $this->add_subtab('list', 'sauv_menu_liste', 'sauv_menu_liste_c'); */ $this->add_subtab('lliurexp', 'copia_seg_b', 'copia_seg_a'); $this->add_subtab('lliureximp', 'copia_seg_d', 'copia_seg_c'); //------------------- LLIUREX 06/05/2021------------ break; case 'acquisition': //Acquisition $this->add_subtab('entite', 'acquisition_menu_ref_entite'); $this->add_subtab('compta', 'acquisition_menu_ref_compta'); if ($acquisition_gestion_tva) { $this->add_subtab('tva', 'acquisition_menu_ref_tva'); } $this->add_subtab('type', 'acquisition_menu_ref_type'); $this->add_subtab('frais', 'acquisition_menu_ref_frais'); $this->add_subtab('mode', 'acquisition_menu_ref_mode'); $this->add_subtab('budget', 'acquisition_menu_ref_budget'); if($acquisition_sugg_categ=='1') { $this->add_subtab('categ', 'acquisition_menu_ref_categ'); } $this->add_subtab('src', 'acquisition_menu_ref_src'); $this->add_subtab('lgstat', 'acquisition_menu_ref_lgstat'); $this->add_subtab('pricing_systems', 'acquisition_menu_pricing_systems'); $this->add_subtab('account_types', 'acquisition_menu_account_types'); $this->add_subtab('thresholds', 'acquisition_menu_thresholds'); break; case 'transferts': //Transferts $this->add_subtab('general', 'admin_tranferts_general'); $this->add_subtab('circ', 'admin_tranferts_circ'); $this->add_subtab('opac', 'admin_tranferts_opac'); $this->add_subtab('ordreloc', 'admin_tranferts_ordre_localisation'); $this->add_subtab('statutsdef', 'admin_tranferts_statuts_defaut'); $this->add_subtab('purge', 'admin_tranferts_purge'); break; case 'demandes': //Demandes $this->add_subtab('theme', 'demandes_theme'); $this->add_subtab('type', 'demandes_type'); $this->add_subtab('perso', 'admin_menu_demandes_perso'); break; case 'faq': //FAQ $this->add_subtab('theme', 'faq_theme'); $this->add_subtab('type', 'faq_type'); break; case 'mailtpl': //Templates de mail $this->add_subtab('build', 'admin_mailtpl_menu'); $this->add_subtab('img', 'admin_mailtpl_img_menu'); $this->add_subtab('attachments', 'admin_mailtpl_attachments_menu'); break; case 'scan_request': //Demandes de numérisation $this->add_subtab('status', 'admin_scan_request_status'); $this->add_subtab('workflow', 'admin_scan_request_workflow'); $this->add_subtab('priorities', 'admin_scan_request_priorities'); $this->add_subtab('upload_folder', 'upload_folder_storage'); break; case 'misc': case 'netbase': case 'chklnk': case 'log': case 'param': case 'alter': //Outils $this->add_misc_subtab('netbase', 'netbase', '329', '735'); $this->add_misc_subtab('chklnk', 'chklnk', 'chklnk_titre'); $this->add_misc_subtab('alter', 'alter', '1801', '740'); $this->add_misc_subtab('misc', 'tables', '31', '740'); $this->add_misc_subtab('misc', 'mysql', '32', '741'); if($PMBuserid == 1) { $this->add_misc_subtab('misc', 'files', 'files'); } $this->add_misc_subtab('param', 'param', '1600'); break; case 'vignette': //Vignette $vign_subtabs = array('record'); //La suite avait apparemment été commencé.. // $vign_subtabs = array('record', 'author', 'categ', 'publisher', 'collection', 'subcollection', 'serie', 'tu', 'indexint'); for($i=0; $iadd_subtab($vign_subtabs[$i], 'admin_vignette_menu_'.$vign_subtabs[$i]); } break; } } public function add_misc_subtab($categ, $sub, $label_code, $title_code='', $url_extra='') { global $msg; global $base_path; if(!$title_code) $title_code = $label_code; $subtab = new subtab(); $subtab->set_sub($sub) ->set_label_code($label_code) ->set_label(isset($msg[$label_code]) ? $msg[$label_code] : $label_code) ->set_title_code($title_code) ->set_title(isset($msg[$title_code]) ? $msg[$title_code] : $title_code) ->set_url_extra($url_extra) ->set_destination_link($base_path."/".static::$module_name.".php?categ=".$categ.($sub ? "&sub=".$sub : '').$url_extra); $this->add_object($subtab); } }