public function get_datas()
 {
     $selector = $this->get_selected_selector();
     $return = array();
     $return["title"] = "Notices Similaires";
     $return["records"] = facettes::get_similitude_notice($selector->get_value());
     return $return;
 }
예제 #2
0
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once $class_path . "/autoloader.class.php";
if (!is_object($autoloader)) {
    $autoloader = new autoloader();
}
$controler = new skos_page_concept($id);
$controler->proceed();
rec_last_authorities();
//FACETTES
//gestion des facette si active
require_once $base_path . '/classes/facette_search.class.php';
$records = "";
if (count($controler->get_indexed_notices())) {
    $records = implode(",", $controler->get_indexed_notices());
    if (!$opac_facettes_ajax) {
        $str .= facettes::make_facette($records);
    } else {
        $_SESSION['tab_result'] = $records;
        $str .= facettes::get_facette_wrapper();
        $str .= "<div id='facette_wrapper'><img src='./images/patience.gif'/></div>";
        $str .= "\n\t\t\t<script type='text/javascript'>\n\t\t\t\tvar req = new http_request();\n\t\t\t\treq.request(\"./ajax.php?module=ajax&categ=facette&sub=call_facettes\",false,null,true,function(data){\n\t\t\t\t\tdocument.getElementById('facette_wrapper').innerHTML=data;\n\t\t\t\t});\n\t\t\t</script>";
    }
    //Formulaire "FACTICE" pour l'application du comparateur et du filetre multiple...
    $str .= '
<form name="form_values" style="display:none;" method="post" action="?lvl=more_results&mode=extended">
	<input type="hidden" name="from_see" value="1" />
	' . facette_search_compare::form_write_facette_compare() . '
</form>';
}
예제 #3
0
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once $class_path . '/facette_search.class.php';
require_once $class_path . '/facette_search_compare.class.php';
switch ($sub) {
    case 'call_facettes':
        session_write_close();
        if ($opac_facettes_ajax) {
            $tab_result = $_SESSION['tab_result'];
            $str .= facettes::make_ajax_facette($tab_result);
            ajax_http_send_response($str);
        }
        break;
    case 'see_more':
        $facette = new facettes();
        if ($charset != "utf-8") {
            $sended_datas = utf8_encode($sended_datas);
        }
        $sended_datas = pmb_utf8_array_decode(json_decode(stripslashes($sended_datas), true));
        ajax_http_send_response($facette->see_more($sended_datas['json_facette_plus']));
        break;
    case 'compare_see_more':
        //les parametres nécéssaires
        global $pmb_compare_notice_template;
        global $pmb_compare_notice_nb;
        if ($charset != "utf-8") {
            $sended_datas = utf8_encode($sended_datas);
        }
        $sended_datas = pmb_utf8_array_decode(json_decode(stripslashes($sended_datas), true));
        $sended_datas['json_notices_ids'] = implode(',', $sended_datas['json_notices_ids']);
예제 #4
0
 if ($opac_allow_external_search && $allow_search_affiliate_and_external) {
     $sr_form .= "<span class=\"espaceResultSearch\">&nbsp;&nbsp;</span><span class=\"search_bt_external\"><a href='{$base_path}/index.php?search_type_asked=external_search&mode_aff=aff_simple_search&external_type=multi' title='" . $msg["connecteurs_external_search_sources"] . "'>" . $msg["connecteurs_external_search_sources"] . "</a></span>";
 }
 //fin etendre
 if ($opac_show_suggest) {
     $bt_sugg = "<span class=\"espaceResultSearch\">&nbsp;&nbsp;&nbsp;</span><span class=\"search_bt_sugg\"><a href=# ";
     if ($opac_resa_popup) {
         $bt_sugg .= " onClick=\"w=window.open('./do_resa.php?lvl=make_sugg&oresa=popup','doresa','scrollbars=yes,width=600,height=600,menubar=0,resizable=yes'); w.focus(); return false;\"";
     } else {
         $bt_sugg .= "onClick=\"document.location='./do_resa.php?lvl=make_sugg&oresa=popup' \" ";
     }
     $bt_sugg .= " title='" . $msg["empr_bt_make_sugg"] . "' >" . $msg["empr_bt_make_sugg"] . "</a></span>";
     $sr_form .= $bt_sugg;
 }
 //on suis le flag filtre/compare
 facettes::session_filtre_compare();
 $sr_form .= "<blockquote>";
 if ($filtre_compare == 'compare') {
     //on valide la variable session qui comprend les critères de comparaisons
     facette_search_compare::session_facette_compare();
     //affichage comparateur
     //les parametres nécéssaires
     global $pmb_compare_notice_template;
     global $pmb_compare_notice_nb;
     $facette_compare = new facette_search_compare($pmb_compare_notice_template, $pmb_compare_notice_nb);
     $compare = $facette_compare->compare($searcher);
     if ($compare === true) {
         $sr_form .= $facette_compare->display_compare();
     } else {
         $sr_form .= $msg[$compare];
     }
예제 #5
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: ajax_level1.inc.php,v 1.4 2014-11-20 15:46:01 jpermanne Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once $class_path . "/level1_search.class.php";
require_once $class_path . "/facette_search.class.php";
require_once "{$base_path}/includes/error_report.inc.php";
//On empêche l'abyme...
if ($autolevel1) {
    $autolevel1 = 0;
    $mode = "tous";
}
//Recherches du niveau 1
$level1 = new level1_search();
$nbresults = $level1->make_search();
$n = $_SESSION["nb_queries"];
$_SESSION["level1" . $n] = $_SESSION["level1"];
$_SESSION["lq_level1"] = $_SESSION["level1"];
//On génère le bloc !
$result = facettes::do_level1();
print $result;
예제 #6
0
            $es = new search();
        }
    }
    if (!$opac_facettes_ajax) {
        $str .= facettes::make_facette($tab_result);
    } else {
        $_SESSION['tab_result'] = $tab_result;
        $str .= facettes::get_facette_wrapper();
        $str .= "<div id='facette_wrapper'><img src='./images/patience.gif'/></div>";
        $str .= "\n\t\t\t<script type='text/javascript'>\n\t\t\t\tvar req = new http_request();\n\t\t\t\treq.request(\"./ajax.php?module=ajax&categ=facette&sub=call_facettes\",false,null,true,function(data){\n\t\t\t\t\tdocument.getElementById('facette_wrapper').innerHTML=data;\n\t\t\t\t});\n\t\t\t</script>";
    }
}
$str_lvl1 = facettes::do_level1();
//suggestions : on affiche le bloc si une recherche a été tapée, différente de juste '*' et si le paramètre est bien activé
if (trim(str_replace('*', '', $user_query)) && $opac_simple_search_suggestions) {
    $str .= facettes::make_facette_suggest($user_query);
}
switch ($search_type) {
    case 'simple_search':
    case 'tags_search':
        // constitution du form pour la suite
        $form .= "<input type=\"hidden\" name=\"user_query\" value=\"" . htmlentities(stripslashes($user_query), ENT_QUOTES, $charset) . "\">\n";
        $form .= "<input type=\"hidden\" name=\"mode\" value=\"{$mode}\">\n";
        $form .= "<input type=\"hidden\" name=\"count\" value=\"{$count}\">\n";
        $form .= "<input type=\"hidden\" name=\"typdoc\" value=\"" . $typdoc . "\">";
        if (function_exists("search_other_function_post_values")) {
            $form .= search_other_function_post_values();
        }
        $form .= "<input type=\"hidden\" name=\"clause\" value=\"" . htmlentities($clause, ENT_QUOTES, $charset) . "\">\n";
        $form .= "<input type=\"hidden\" name=\"clause_bull\" value=\"" . htmlentities($clause_bull, ENT_QUOTES, $charset) . "\">\n";
        $form .= "<input type=\"hidden\" name=\"clause_bull_num_notice\" value=\"" . htmlentities($clause_bull_num_notice, ENT_QUOTES, $charset) . "\">\n";
예제 #7
0
     //on l'ajoute au tableau pour avoir un traitement unique après
     if (!isset($check_facette) || !count($check_facette)) {
         $check_facette = array();
         //on encode en utf-8 pour être compatible avec json_encode
         if ($charset != 'utf-8') {
             $check_facette[] = json_encode(array(utf8_encode($name), utf8_encode($value), $champ, $ss_champ));
         } else {
             $check_facette[] = json_encode(array($name, $value, $champ, $ss_champ));
         }
     } else {
         //le tableau est addslashé automatiquement
         foreach ($check_facette as $k => $v) {
             $check_facette[$k] = stripslashes($v);
         }
     }
     facettes::checked_facette_search($check_facette);
     $_SESSION["lq_facette"] = $_SESSION["facette"];
     $_SESSION["lq_facette_search"]["lq_search"] = search::serialize_search();
 }
 $lib_recherche = $es->make_human_query();
 $searcher = new searcher_extended();
 if ($opac_visionneuse_allow) {
     $nbexplnum_to_photo = $searcher->get_nb_explnums();
 }
 $count = $searcher->get_nb_results();
 $l_typdoc = implode(",", $searcher->get_typdocs());
 // La variable global $l_typdoc est utilisée pour la photothèque
 //Enregistrement des stats
 if ($pmb_logs_activate) {
     global $nb_results_tab;
     $nb_results_tab['extended'] = $count;
예제 #8
0
 function genere_simple($depliable = 1, $what = 'ISBD')
 {
     global $msg;
     global $cart_aff_case_traitement;
     global $opac_url_base;
     global $opac_notice_enrichment;
     global $opac_show_social_network;
     global $icon_doc, $biblio_doc, $tdoc;
     global $allow_tag;
     // l'utilisateur a-t-il le droit d'ajouter un tag
     global $allow_sugg;
     // l'utilisateur a-t-il le droit de faire une suggestion
     global $opac_avis_display_mode;
     global $opac_allow_simili_search;
     if (!$this->notice_id) {
         return;
     }
     $this->double_ou_simple = 1;
     $this->notice_childs = $this->genere_notice_childs();
     // préparation de la case à cocher pour traitement panier
     if ($cart_aff_case_traitement) {
         $case_a_cocher = "<input type='checkbox' value='!!id!!' name='notice[]'/>&nbsp;";
     } else {
         $case_a_cocher = "";
     }
     if ($this->cart_allowed) {
         $basket = "<a href=\"cart_info.php?id=" . $this->notice_id . "&header=" . rawurlencode(strip_tags($this->notice_header)) . "\" target=\"cart_info\" class=\"img_basket\"><img src='" . $opac_url_base . "images/basket_small_20x20.gif' align='absmiddle' border='0' title=\"" . $msg['notice_title_basket'] . "\" alt=\"" . $msg['notice_title_basket'] . "\" /></a>";
     } else {
         $basket = "";
     }
     //add tags
     if ($this->tag_allowed == 1 || $this->tag_allowed == 2 && $_SESSION["user_code"] && $allow_tag) {
         $img_tag .= "<a href='#' onclick=\"open('addtags.php?noticeid={$this->notice_id}','ajouter_un_tag','width=350,height=150,scrollbars=yes,resizable=yes'); return false;\"><img src='" . $opac_url_base . "images/tag.png' align='absmiddle' border='0' title=\"" . $msg['notice_title_tag'] . "\" alt=\"" . $msg['notice_title_tag'] . "\"></a>";
     }
     //Avis
     if ($opac_avis_display_mode == 0 && ($this->avis_allowed && $this->avis_allowed != 2 || $_SESSION["user_code"] && $this->avis_allowed == 2)) {
         $img_tag .= $this->affichage_avis($this->notice_id);
     }
     //Suggestions
     if ($this->sugg_allowed == 2 || $_SESSION["user_code"] && $this->sugg_allowed == 1 && $allow_sugg) {
         $img_tag .= $this->affichage_suggestion($this->notice_id);
     }
     if ($this->no_header) {
         $icon = "";
     } else {
         $icon = $icon_doc[$this->notice->niveau_biblio . $this->notice->typdoc];
     }
     if ($opac_notice_enrichment) {
         $enrichment = new enrichment();
         if ($enrichment->active[$this->notice->niveau_biblio . $this->notice->typdoc]) {
             $source_enrichment = implode(",", $enrichment->active[$this->notice->niveau_biblio . $this->notice->typdoc]);
         } else {
             if ($enrichment->active[$this->notice->niveau_biblio]) {
                 $source_enrichment = implode(",", $enrichment->active[$this->notice->niveau_biblio]);
             }
         }
     }
     if ($depliable) {
         $template = "\r\n\t\t\t\t<div id=\"el!!id!!Parent\" class=\"notice-parent\">\r\n\t\t\t\t{$case_a_cocher}\r\n\t    \t\t<img  class='img_" . $this->notice->typdoc . "' src=\"./getgif.php?nomgif=plus\" name=\"imEx\" id=\"el!!id!!Img\" title=\"" . $msg['expandable_notice'] . "\" border=\"0\" onClick=\"expandBase('el!!id!!', true); return false;\" hspace=\"3\" />";
         if ($icon) {
             $info_bulle_icon = str_replace("!!niveau_biblio!!", $biblio_doc[$this->notice->niveau_biblio], $msg["info_bulle_icon"]);
             $info_bulle_icon = str_replace("!!typdoc!!", $tdoc->table[$this->notice->typdoc], $info_bulle_icon);
             //$template.="<img  src=\"".$opac_url_base."images/$icon\" alt='".$info_bulle_icon."' title='".$info_bulle_icon."'/>";
         }
         $template .= "\t\t\r\n\t\t\t\t<span class=\"notice-heada\" draggable=\"yes\" dragtype=\"notice\" id=\"drag_noti_!!id!!\">!!heada!!</span>" . $this->notice_header_doclink . "\r\n\t    \t\t<br />\r\n\t\t\t\t</div>\r\n\t\t\t\t<div id=\"el!!id!!Child\" class=\"notice-child\" style=\"margin-bottom:6px;display:none;\" " . ($source_enrichment ? "enrichment='" . $source_enrichment . "'" : "") . ">\r\n\t    \t\t";
     } else {
         $template = "<div id=\"el!!id!!Parent\" class=\"parent\">\r\n\t    \t\t{$case_a_cocher}";
         //			if ($icon) {
         //    			$info_bulle_icon=str_replace("!!niveau_biblio!!",$biblio_doc[$this->notice->niveau_biblio],$msg["info_bulle_icon"]);
         //    			$info_bulle_icon=str_replace("!!typdoc!!",$tdoc->table[$this->notice->typdoc],$info_bulle_icon);
         //    			$template.="<img src=\"".$opac_url_base."images/$icon\" alt='".$info_bulle_icon."' title='".$info_bulle_icon."'/>";
         //    		}
         $template .= "<span class=\"notice-heada\" draggable=\"yes\" dragtype=\"notice\" id=\"drag_noti_!!id!!\">!!heada!!</span>" . $this->notice_header_doclink;
     }
     $template .= "!!CONTENU!!\r\n\t\t\t\t\t!!SUITE!!</div>";
     if ($opac_show_social_network) {
         if ($this->notice_header_without_html == "") {
             $this->do_header_without_html();
         }
         $template_in .= "\r\n\t\t\t\t<div id='el!!id!!addthis' class='addthis_toolbox addthis_default_style ' \r\n\t\t\t\t\taddthis:url='" . $opac_url_base . "fb.php?title=" . rawurlencode(strip_tags($this->notice_header_without_html)) . "&url=" . rawurlencode($this->permalink) . "'>\r\n\t\t\t\t</div>";
     }
     if ($img_tag) {
         $li_tags = "<li id='tags!!id!!' class='onglet_tags'>{$img_tag}</li>";
     }
     if ($basket || $img_tag || $opac_notice_enrichment) {
         $template_in .= "\r\n\t\t\t\t<ul id='onglets_isbd_public!!id!!' class='onglets_isbd_public'>";
         if ($basket) {
             $template_in .= "<li id='baskets!!id!!' class='onglet_basket'>{$basket}</li>";
         }
         if ($opac_notice_enrichment) {
             if ($what == 'ISBD') {
                 $template_in .= "<li id='onglet_isbd!!id!!' class='isbd_public_active'><a href='#' title=\"" . $msg['ISBD_info'] . "\" onclick=\"show_what('ISBD', '!!id!!'); return false;\">" . $msg['ISBD'] . "</a></li>";
             } else {
                 $template_in .= "<li id='onglet_public!!id!!' class='isbd_public_active'><a href='#' title=\"" . $msg['Public_info'] . "\" onclick=\"show_what('PUBLIC', '!!id!!'); return false;\">" . $msg['Public'] . "</a></li>";
             }
         }
         $template_in .= "\r\n\t  \t\t\t{$li_tags}\r\n\t\t\t<!-- onglets_perso_list -->\r\n\t\t\t</ul>\r\n\t\t\t<div class='row'></div>";
     }
     if ($what == 'ISBD') {
         $template_in .= "\t\t    \t\r\n\t\t\t\t<div id='div_isbd!!id!!' style='display:block;'>!!ISBD!!</div>\r\n\t  \t\t\t<div id='div_public!!id!!' style='display:none;'>!!PUBLIC!!</div>";
     } else {
         $template_in .= "\r\n\t\t    \t<div id='div_public!!id!!' style='display:block;'>!!PUBLIC!!</div>\r\n\t\t\t\t<div id='div_isbd!!id!!' style='display:none;'>!!ISBD!!</div>";
     }
     $template_in .= "\r\n\t\t\t<!-- onglets_perso_content -->";
     if ($opac_avis_display_mode == 1 && ($this->avis_allowed && $this->avis_allowed != 2 || $_SESSION["user_code"] && $this->avis_allowed == 2)) {
         $this->affichage_avis_detail = $this->avis_detail();
     }
     // Serials : différence avec les monographies on affiche [périodique] et [article] devant l'ISBD
     if ($this->notice->niveau_biblio == 's') {
         $template_in = str_replace('!!ISBD!!', "<span class='fond-mere'>[" . $msg['isbd_type_perio'] . "]</span>&nbsp;<a href='index.php?lvl=notice_display&id=" . $this->notice_id . "'><i>" . $msg["see_bull"] . "</i></a>&nbsp;!!ISBD!!", $template_in);
         $template_in = str_replace('!!PUBLIC!!', "<span class='fond-mere'>[" . $msg['isbd_type_perio'] . "]</span>&nbsp;<a href='index.php?lvl=notice_display&id=" . $this->notice_id . "'><i>" . $msg["see_bull"] . "</i></a>&nbsp;!!PUBLIC!!", $template_in);
     } elseif ($this->notice->niveau_biblio == 'a') {
         $template_in = str_replace('!!ISBD!!', "<span class='fond-article'>[" . $msg['isbd_type_art'] . "]</span>&nbsp;!!ISBD!!", $template_in);
         $template_in = str_replace('!!PUBLIC!!', "<span class='fond-article'>[" . $msg['isbd_type_art'] . "]</span>&nbsp;!!PUBLIC!!", $template_in);
     } elseif ($this->notice->niveau_biblio == 'b') {
         $template_in = str_replace('!!ISBD!!', "<span class='fond-article'>[" . $msg['isbd_type_bul'] . "]</span>&nbsp;!!ISBD!!", $template_in);
         $template_in = str_replace('!!PUBLIC!!', "<span class='fond-article'>[" . $msg['isbd_type_bul'] . "]</span>&nbsp;!!PUBLIC!!", $template_in);
     }
     $template_in .= $this->get_serialcirc_form_actions();
     $template_in = str_replace('!!ISBD!!', $this->notice_isbd, $template_in);
     $template_in = str_replace('!!PUBLIC!!', $this->notice_public, $template_in);
     $template_in = str_replace('!!id!!', $this->notice_id, $template_in);
     $this->do_image($template_in, $depliable);
     $this->result = str_replace('!!id!!', $this->notice_id, $template);
     if ($this->notice_header_doclink) {
         $this->result = str_replace('!!heada!!', $this->notice_header_without_doclink, $this->result);
     } elseif ($this->notice_header) {
         $this->result = str_replace('!!heada!!', $this->notice_header, $this->result);
     } else {
         $this->result = str_replace('!!heada!!', '', $this->result);
     }
     $this->result = str_replace('!!CONTENU!!', $template_in, $this->result);
     if ($opac_allow_simili_search) {
         $this->affichage_simili_search_head = facettes::similitude_head($this->notice_id);
     }
     if ($this->affichage_resa_expl || $this->notice_childs || $this->affichage_avis_detail || $this->affichage_simili_search_head) {
         $this->result = str_replace('!!SUITE!!', $this->notice_childs . $this->affichage_resa_expl . $this->affichage_avis_detail . $this->affichage_simili_search_head, $this->result);
     } else {
         $this->result = str_replace('!!SUITE!!', '', $this->result);
     }
 }
예제 #9
0
 public static function similitude($id_notice = 0)
 {
     global $charset, $msg;
     $data = array();
     $notices_list = facettes::get_similitude_notice($id_notice);
     $display = facettes::aff_notices_list($notices_list);
     $data['aff'] = "";
     if ($display) {
         $data['aff'] = "<h3 class='avis_detail'>" . $msg['simili_search'] . "</h3>" . $display;
     }
     if ($charset != "utf-8") {
         $data['aff'] = utf8_encode($data['aff']);
     }
     $data['id'] = $id_notice;
     return $data;
 }
function affiche_notice_navigopac($requete)
{
    global $page, $nbr_lignes, $id, $location, $dcote, $lcote, $nc, $main, $ssub, $plettreaut;
    global $opac_nb_aut_rec_per_page, $opac_section_notices_order, $msg, $dbh, $opac_notices_depliable, $begin_result_liste, $add_cart_link_spe, $base_path;
    global $back_surloc, $back_loc, $back_section_see;
    global $opac_perio_a2z_abc_search, $opac_perio_a2z_max_per_onglet;
    global $str, $opac_facettes_ajax;
    if (!$page) {
        $page = 1;
    }
    $debut = ($page - 1) * $opac_nb_aut_rec_per_page;
    //On controle paramètre de tri
    if (!trim($opac_section_notices_order)) {
        $opac_section_notices_order = "index_serie, tnvol, index_sew";
    }
    if ($plettreaut && $plettreaut != "vide") {
        $opac_section_notices_order = "index_author, " . $opac_section_notices_order;
    }
    $requete_initiale = $requete;
    $requete .= " ORDER BY " . $opac_section_notices_order . " LIMIT {$debut},{$opac_nb_aut_rec_per_page}";
    $res = @pmb_mysql_query($requete, $dbh);
    print $nbr_lignes . " " . $msg["results"] . "<br />";
    if ($opac_notices_depliable) {
        print $begin_result_liste;
    }
    if ($add_cart_link_spe) {
        print pmb_bidi(str_replace("!!spe!!", "&location={$location}&dcote={$dcote}&lcote={$lcote}&ssub={$ssub}&nc={$nc}&plettreaut={$plettreaut}", $add_cart_link_spe));
    }
    /*//affinage
    	//enregistrement de l'endroit actuel dans la session
    	$_SESSION["last_module_search"]["search_mod"]="section_see";
    	$_SESSION["last_module_search"]["search_id"]=$id;
    	*/
    //affinage
    if ($dcote == "" && $plettreaut == "" && $nc == "") {
        print "<span class=\"espaceResultSearch\">&nbsp;&nbsp;</span><span class=\"affiner_recherche\"><a href='{$base_path}/index.php?search_type_asked=extended_search&mode_aff=aff_module' title='" . $msg["affiner_recherche"] . "'>" . $msg["affiner_recherche"] . "</a></span>";
    }
    //fin affinage
    print "<blockquote>";
    print aff_notice(-1);
    while ($obj = pmb_mysql_fetch_object($res)) {
        print pmb_bidi(aff_notice($obj->notice_id));
    }
    print aff_notice(-2);
    print "</blockquote>";
    pmb_mysql_free_result($res);
    // constitution des liens
    $nbepages = ceil($nbr_lignes / $opac_nb_aut_rec_per_page);
    print '<div id="navbar"><hr /><center>' . printnavbar($page, $nbepages, './index.php?lvl=section_see&id=' . $id . '&location=' . $location . ($back_surloc ? '&back_surloc=' . urlencode($back_surloc) : '') . ($back_loc ? '&back_loc=' . urlencode($back_loc) : '') . ($back_section_see ? '&back_section_see=' . urlencode($back_section_see) : '') . '&page=!!page!!&nbr_lignes=' . $nbr_lignes . '&dcote=' . $dcote . '&lcote=' . $lcote . '&nc=' . $nc . '&main=' . $main . '&ssub=' . $ssub . '&plettreaut=' . $plettreaut) . '</center></div>';
    //FACETTES
    $records = "";
    if ($nbr_lignes) {
        require_once $base_path . '/classes/facette_search.class.php';
        $facettes_result = pmb_mysql_query($requete_initiale, $dbh);
        while ($row = pmb_mysql_fetch_object($facettes_result)) {
            if ($records) {
                $records .= ",";
            }
            $records .= $row->notice_id;
        }
        if (!$opac_facettes_ajax) {
            $str .= facettes::make_facette($records);
        } else {
            $_SESSION['tab_result'] = $records;
            $str .= facettes::get_facette_wrapper();
            $str .= "<div id='facette_wrapper'><img src='./images/patience.gif'/></div>";
            $str .= "\n\t\t\t<script type='text/javascript'>\n\t\t\t\tvar req = new http_request();\n\t\t\t\treq.request(\"./ajax.php?module=ajax&categ=facette&sub=call_facettes\",false,null,true,function(data){\n\t\t\t\t\tdocument.getElementById('facette_wrapper').innerHTML=data;\n\t\t\t\t});\n\t\t\t</script>";
        }
        //Formulaire "FACTICE" pour l'application du comparateur et du filetre multiple...
        $str .= '
<form name="form_values" style="display:none;" method="post" action="?lvl=more_results&mode=extended">
	<input type="hidden" name="from_see" value="1" />
	' . facette_search_compare::form_write_facette_compare() . '
</form>';
    }
}
예제 #11
0
<?php

// +-------------------------------------------------+
// � 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: simili_search.inc.php,v 1.1 2011-12-30 16:09:14 ngantier Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once $class_path . '/facette_search.class.php';
switch ($sub) {
    case 'search':
        if (!$id_notice) {
            return '0';
        }
        ajax_http_send_response(facettes::similitude($id_notice));
        break;
        break;
}
예제 #12
0
<?php

// +-------------------------------------------------+
// � 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: expl_voisin.inc.php,v 1.1 2012-10-25 13:15:19 ngantier Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once $class_path . '/facette_search.class.php';
switch ($sub) {
    case 'search':
        if (!$id_notice) {
            return '0';
        }
        ajax_http_send_response(facettes::expl_voisin($id_notice));
        break;
        break;
}