Пример #1
0
 } else {
     thesaurus::setSessionThesaurusId($id_thes);
 }
 $thes = new thesaurus($id_thes);
 $id_top = $thes->num_noeud_racine;
 //FIL D'ARIANNE DANS LE THESAURUS
 $context['authority']['breadcrumb'] = "";
 $ourCateg = new categorie($id);
 // affichage du path de la catégorie
 if ($opac_thesaurus) {
     $thes_lib_to_print = "<a href=\"./index.php?lvl=categ_see&id=" . $ourCateg->thes->num_noeud_racine . "\">" . $ourCateg->thes->libelle_thesaurus . "</a>";
 } else {
     $thes_lib_to_print = "<a href=\"./index.php?lvl=categ_see&id=" . $ourCateg->thes->num_noeud_racine . "\"><img src='./images/home.gif' border='0'></a>";
 }
 $context['authority']['breadcrumb'] = $thes_lib_to_print;
 $context['authority']['breadcrumb'] .= pmb_bidi($ourCateg->categ_path($opac_categories_categ_path_sep, $css));
 //SYNONYMES
 $context['authority']['synonyms'] = array();
 $synonymes = categories::listSynonymes($id, $lang);
 while ($row = pmb_mysql_fetch_object($synonymes)) {
     $context['authority']['synonyms'][] = $row->libelle_categorie;
 }
 //VOIR
 if ($ourCateg->voir) {
     $context['authority']['voir'] = new categories($ourCateg->voir, $lang);
 }
 //VOIR AUSSI
 $context['authority']['see_also'] = array();
 $q = "select ";
 $q .= "distinct catdef.num_noeud,catdef.note_application, catdef.comment_public,";
 $q .= "if (catlg.num_noeud is null, catdef.libelle_categorie, catlg.libelle_categorie) as libelle_categorie ";
Пример #2
0
}
$thes = new thesaurus($id_thes);
$id_top = $thes->num_noeud_racine;
print "<div id='aut_details'>\n\n\t\t<h3><span>{$msg['categ_see_tpl_categ']}</span></h3>\n";
print "<div id='aut_details_container'>\n";
if ($id) {
    // instanciation de la catégorie
    $ourCateg = new categorie($id);
    // affichage du path de la catégorie
    if ($opac_thesaurus) {
        $thes_lib_to_print = "<a href=\"./index.php?lvl=categ_see&id=" . $ourCateg->thes->num_noeud_racine . "\">" . $ourCateg->thes->libelle_thesaurus . "</a>";
    } else {
        $thes_lib_to_print = "<a href=\"./index.php?lvl=categ_see&id=" . $ourCateg->thes->num_noeud_racine . "\"><img src='./images/home.gif' border='0'></a>";
    }
    print "<div id='aut_see'>\n" . $thes_lib_to_print . "\n";
    print pmb_bidi($ourCateg->categ_path($opac_categories_categ_path_sep, $css));
    // si la catégorie à des enfants, on les affiche
    if ($ourCateg->has_child) {
        print pmb_bidi($ourCateg->child_list('./images/folder.gif', $css));
    }
    print "<h4 class='title_categ'><span>" . $ourCateg->libelle . "</span></h4>";
    if ($ourCateg->comment) {
        print "\n\t\t<div id='categ_see_comment'>\n" . nl2br($ourCateg->comment) . "\n\t\t</div>";
    }
    // Les Synonymes
    $tab_libelle = array();
    $categ = new categories($id, $lang);
    $synonymes = $categ->listSynonymes($id, $lang);
    while ($row = mysql_fetch_object($synonymes)) {
        $tab_libelle[] = $row->libelle_categorie;
    }