/** * Affiche les données renvoyées par les vues */ public function proceed($context = array()) { global $pmb_url_base, $categ, $sub, $id, $quoi; $this->authority = new authority(0, $this->concept->get_id(), AUT_TABLE_CONCEPT); // On va chercher les onglets de l'autorité $this->authority->set_authority_tabs($this->get_authority_tabs()); // On va chercher la liste d'éléments à afficher $authority_list_ui = $this->authority->get_authority_list_ui(); if ($authority_list_ui) { $authority_list_ui->set_current_url($pmb_url_base . 'autorites.php?categ=' . $categ . '&sub=' . $sub . '&id=' . $id . '&quoi=' . $quoi); } $context['authority'] = array('broaders' => skos_view_concepts::get_broaders_list($this->concept->get_broaders()), 'title' => skos_view_concept::get_concept($this->concept), 'light_title' => skos_view_concept::get_concept_title($this->concept), 'narrowers' => skos_view_concepts::get_narrowers_list($this->concept->get_narrowers()), 'details' => skos_view_concept::get_detail_concept($this->concept), 'composed_concepts' => skos_view_concepts::get_composed_concepts_list($this->concept->get_composed_concepts()), 'authoritieslist' => skos_view_concept::get_authorities_indexed_with_concept($this->concept)); print $this->authority->render($context); }
/** * Affiche les données renvoyées par les vues */ public function proceed() { $authority = new authority("concept", $this->concept->get_id()); $context['authority'] = array('broaders' => skos_view_concepts::get_broaders_list($this->concept->get_broaders()), 'title' => skos_view_concept::get_concept($this->concept), 'narrowers' => skos_view_concepts::get_narrowers_list($this->concept->get_narrowers()), 'details' => skos_view_concept::get_detail_concept($this->concept), 'composed_concepts' => skos_view_concepts::get_composed_concepts_list($this->concept->get_composed_concepts()), 'recordslist' => skos_view_concept::get_notices_indexed_with_concept($this->concept), 'authoritieslist' => skos_view_concept::get_authorities_indexed_with_concept($this->concept)); print $authority->render($context); }
/** * Renvoie un tableau trié des concepts selon leurs schémas * @param skos_concept $concepts Tableau des concepts à trier * @param boolean $all_links Spécifie si les liens vers les concepts composés doivent étre décomposés * @return skos_concept Tableau trié [schema][] = concept */ protected static function get_sorted_concepts($concepts, $all_links) { global $msg; // On trie le tableau des concepts selon leurs schemas $sorted_concepts = array(); foreach ($concepts as $concept) { if ($concept->get_schemes()) { $scheme = $concept->get_schemes(); } else { $scheme = $msg['skos_view_concept_no_scheme']; } $sorted_concepts[$scheme][] = $all_links ? skos_view_concept::get_concept_in_list_with_all_links($concept) : skos_view_concept::get_concept_in_list($concept); } //On génère la liste foreach ($sorted_concepts as $scheme => $concepts) { // On trie par ordre alphabétique si spécifié en paramètre if ($thesaurus_concepts_affichage_ordre != 1) { asort($concepts); } } return $sorted_concepts; }