コード例 #1
0
ファイル: concept.inc.php プロジェクト: noble82/proyectos-ULS
// +-------------------------------------------------+
// © 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";
$form .= "</div>";