$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 "; $q .= "from voir_aussi left join noeuds on noeuds.id_noeud=voir_aussi.num_noeud_dest "; $q .= "left join categories as catdef on noeuds.id_noeud=catdef.num_noeud and catdef.langue = '" . $thes->langue_defaut . "' "; $q .= "left join categories as catlg on catdef.num_noeud = catlg.num_noeud and catlg.langue = '" . $lang . "' ";
$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; } if (count($tab_libelle)) { print "\n\t\t<div id='categ_see_synonyme' class='categ_see_title'>\n\n\t\t\t<h5><span>" . $msg["categ_see_synonyme"] . "</span></h5>" . implode("; ", $tab_libelle) . "\n\t\t</div>"; } if ($ourCateg->voir) { $categ = new categories($ourCateg->voir, $lang); print "\n\t\t<div id='categ_see_renvoi_voir' class='categ_see_title'>\n\n\t\t<h5><span>" . $msg["term_show_see"] . "</span></h5>\n\t\t<a href=\"./index.php?lvl=categ_see&id=" . $ourCateg->voir . "&main=\">" . htmlentities($categ->libelle_categorie, ENT_QUOTES, $charset) . "</a>\n\t\t</div>"; } $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 "; $q .= "from voir_aussi left join noeuds on noeuds.id_noeud=voir_aussi.num_noeud_dest "; $q .= "left join categories as catdef on noeuds.id_noeud=catdef.num_noeud and catdef.langue = '" . $thes->langue_defaut . "' ";