Esempio n. 1
0
if (!$opac_allow_affiliate_search || $opac_allow_affiliate_search && $tab == "catalog") {
    // requête de recherche sur les concepts
    print pmb_bidi("<h3><span>" . $count . " " . $msg['concepts_found'] . " <b>'" . htmlentities(stripslashes($user_query), ENT_QUOTES, $charset) . "'");
    if ($opac_search_other_function) {
        require_once $include_path . "/" . $opac_search_other_function;
        print pmb_bidi(" " . search_other_function_human_query($_SESSION["last_query"]));
    }
    print "</b>";
    print activation_surlignage();
    print "</h3></span>\n";
    if (!$opac_allow_affiliate_search) {
        print "\n\t\t\t\t</div>";
    }
    print "\n\t\t\t\t<div id=\"resultatrech_liste\">\n\t\t\t\t<ul>";
    $searcher = new opac_searcher_autorities_skos_concepts($user_query);
    $concepts = $searcher->get_sorted_result();
    foreach ($concepts as $concept) {
        $concept = new skos_concept($concept);
        print pmb_bidi("<li class='categ_colonne'><font class='notice_fort'><a href='" . str_replace("!!id!!", $concept->get_id(), $liens_opac['lien_rech_concept']) . "&from=search'>" . $concept->get_display_label() . "</a></font></li>\n");
    }
    print "</ul>";
    print "\n\t</div></div>";
    if ($opac_allow_affiliate_search) {
        print $catal_navbar;
    } else {
        print "</div>";
    }
} else {
    if ($tab == "affiliate") {
        //l'onglet source affiliées est actif, il faut son contenu...
        $as = new affiliate_search_concept($user_query, "authorities");