コード例 #1
0
ファイル: concept.inc.php プロジェクト: noble82/proyectos-ULS
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: concept.inc.php,v 1.3 2015-03-27 10:30:21 arenou Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once $class_path . "/searcher/opac_searcher_autorities_skos_concepts.class.php";
// premier niveau de recherche OPAC sur concept
// on regarde comment la saisie utilisateur se présente
if ($opac_search_other_function) {
    require_once $include_path . "/" . $opac_search_other_function;
}
$searcher = new opac_searcher_autorities_skos_concepts($user_query);
$nb_result_concepts = $searcher->get_nb_results();
//Enregistrement des stats
if ($pmb_logs_activate) {
    global $nb_results_tab;
    $nb_results_tab['concepts'] = $nb_result_concepts;
}
//définition du formulaire
$form = "<div style=search_result><form name=\"search_concepts\" action=\"./index.php?lvl=more_results\" method=\"post\">";
$form .= "<input type=\"hidden\" name=\"user_query\" value=\"" . htmlentities(stripslashes($user_query), ENT_QUOTES, $charset) . "\">\n";
if (function_exists("search_other_function_post_values")) {
    $form .= search_other_function_post_values();
}
$form .= "<input type=\"hidden\" name=\"mode\" value=\"concept\">\n";
$form .= "<input type=\"hidden\" name=\"typdoc\" value=\"" . $typdoc . "\">";
$form .= "<input type=\"hidden\" name=\"count\" value=\"" . $nb_result_concepts . "\">\n";
コード例 #2
0
ファイル: concept.inc.php プロジェクト: noble82/proyectos-ULS
// 2- la recherche affiliée est active et on demande l'onglet catalog...
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...