Beispiel #1
0
    }
    $css = $_SESSION["css"] = $opac_default_style;
    if ($opac_view) {
        if ($current_opac_view != $opac_view * 1) {
            //on change de vue donc :
            //on stocke le tri en cours pour la vue en cours
            $_SESSION["last_sortnotices_view_" . $current_opac_view] = $_SESSION["last_sortnotices"];
            if (isset($_SESSION["last_sortnotices_view_" . $opac_view * 1])) {
                //on a déjà un tri pour la nouvelle vue, on l'applique
                $_SESSION["last_sortnotices"] = $_SESSION["last_sortnotices_view_" . $opac_view * 1];
            } else {
                unset($_SESSION["last_sortnotices"]);
            }
            //comparateur de facettes : on ré-initialise
            require_once $base_path . '/classes/facette_search_compare.class.php';
            facette_search_compare::session_facette_compare(null, true);
        }
    }
}
//gestion des droits
require_once $class_path . "/acces.class.php";
// si paramétrage authentification particulière et pour la re-authentification ntlm
if (file_exists($base_path . '/includes/ext_auth.inc.php')) {
    require_once $base_path . '/includes/ext_auth.inc.php';
}
/**
 * Récupère les infos du document numérique
 */
function recup_explnum_infos($id_explnum)
{
    global $infos_explnum, $dbh;
Beispiel #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>';
}
Beispiel #3
0
         $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];
     }
 } else {
     //si demande de réinitialisation
     if ($reinit_compare == 1) {
         facette_search_compare::session_facette_compare(null, $reinit_compare);
     }
     $sr_form .= $searcher->get_current_search_map();
     $sr_form .= aff_notice(-1);
     $nb = 0;
     $recherche_ajax_mode = 0;
Beispiel #4
0
        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']);
        $tab_return = array();
        if ($charset != "utf-8") {
            $tab_return['notices'] = utf8_encode(facette_search_compare::call_notice_display($sended_datas['json_notices_ids'], $pmb_compare_notice_nb, $pmb_compare_notice_template));
        } else {
            $tab_return['notices'] = facette_search_compare::call_notice_display($sended_datas['json_notices_ids'], $pmb_compare_notice_nb, $pmb_compare_notice_template);
        }
        if ($sended_datas['json_notices_ids']) {
            if ($charset != "utf-8") {
                $tab_return['see_more'] = utf8_encode(facette_search_compare::get_compare_see_more($sended_datas['json_notices_ids']));
            } else {
                $tab_return['see_more'] = facette_search_compare::get_compare_see_more($sended_datas['json_notices_ids']);
            }
        }
        ajax_http_send_response(json_encode($tab_return));
        break;
}
Beispiel #5
0
        if ($facette_test) {
            $form .= "<input type=\"hidden\" name=\"facette_test\" value=\"2\">\n";
        }
        $form .= "</form>";
        if ($opac_cart_allow && !$opac_cart_only_for_subscriber || $opac_cart_allow && $_SESSION["user_code"]) {
            $form .= $es->make_hidden_search_form("./cart_info.php?lvl=more_results&mode=extended", "cart_values", "cart_info", "", false);
            if ($opac_allow_affiliate_search) {
                $form .= "<input type=\"hidden\" name=\"catalog_page\" value=\"{$catalog_page}\">\n";
                $form .= "<input type=\"hidden\" name=\"affiliate_page\" value=\"{$affiliate_page}\">\n";
            }
            $form .= "</form>";
        }
        break;
    case 'external_search':
        $form = $es->make_hidden_search_form("./index.php?lvl=more_results&mode=external", "form_values", "", false);
        $form .= facette_search_compare::form_write_facette_compare();
        $form .= "<input type=\"hidden\" name=\"count\" value=\"{$count}\">\n";
        if ($_SESSION["ext_type"] != "multi") {
            $form .= "<input type='hidden' name='external_env' value='" . htmlentities(stripslashes($external_env), ENT_QUOTES, $charset) . "'/>";
            $form .= "</form>";
        } else {
            $form .= "</form>";
        }
        if ($opac_cart_allow && !$opac_cart_only_for_subscriber || $opac_cart_allow && $_SESSION["user_code"]) {
            $form .= $es->make_hidden_search_form("./cart_info.php?lvl=more_results&mode=external", "cart_values", "cart_info");
        }
        break;
}
print pmb_bidi($form);
// affichage du navigateur si besoin (recherche affiliées off ou multi-critère (pagin géré dans le lvl2)
if ($mode != 'extended' && (!$opac_allow_affiliate_search || $mode == 'external' || $mode == 'docnum') && $nav_displayed === true) {
Beispiel #6
0
     }
     $bt_sugg .= " title='" . $msg["empr_bt_make_sugg"] . "' >" . $msg[empr_bt_make_sugg] . "</a></span>";
     print $bt_sugg;
 }
 $search_terms = unserialize(stripslashes($search_terms));
 //on suis le flag filtre/compare
 facettes::session_filtre_compare();
 print "<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) {
         print $facette_compare->display_compare();
     } else {
         print $msg[$compare];
     }
 } else {
     //si demande de réinitialisation
     if ($reinit_compare == 1) {
         facette_search_compare::session_facette_compare(null, $reinit_compare);
     }
     //affichage standard
     print aff_notice(-1);
     $nb = 0;
     $recherche_ajax_mode = 0;
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id:
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
//les parametres nécéssaires
global $pmb_compare_notice_template;
global $pmb_compare_notice_nb;
require_once "{$class_path}/facette_search_compare.class.php";
$facette_compare = new facette_search_compare($pmb_compare_notice_template, $pmb_compare_notice_nb);
switch ($action) {
    case "save":
        $facette_compare->save_form_compare();
        $pmb_compare_notice_template = $facette_compare->notice_tpl;
        $pmb_compare_notice_nb = $facette_compare->notice_nb;
        print $facette_compare->display_compare();
        break;
    case "modify":
        print $facette_compare->form_compare();
        break;
    case "display":
    default:
        print $facette_compare->display_compare();
        break;
}
Beispiel #8
0
 public function create_ajax_table_facettes()
 {
     global $opac_compare_notice_active;
     global $base_path;
     global $charset;
     global $mode;
     global $msg;
     $arrayFacettesNotClicked = array();
     $facette_plus = array();
     if ($opac_compare_notice_active * 1 == "1") {
         //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);
     }
     foreach ($this->tab_facettes_opac as $keyFacette => $vTabFacette) {
         $affiche = true;
         foreach ($vTabFacette['value'] as $keyValue => $vLibelle) {
             $clicked = false;
             if (count($_SESSION['facette'])) {
                 foreach ($_SESSION['facette'] as $vSessionFacette) {
                     foreach ($vSessionFacette as $vDetail) {
                         if ($vDetail[2] == $vTabFacette['code_champ'] && $vDetail[3] == $vTabFacette['code_ss_champ'] && in_array($vLibelle, $vDetail[1])) {
                             $clicked = true;
                             break;
                         }
                     }
                 }
             }
             if (!$clicked) {
                 $key = $vTabFacette['name'] . "_" . $this->tab_facettes_record[$keyFacette]['id'];
                 if ($vTabFacette['size_to_display'] != '0') {
                     if (count($arrayFacettesNotClicked[$key]) >= $vTabFacette['size_to_display']) {
                         $tmpArray = array();
                         $tmpArray['see_more'] = true;
                         $arrayFacettesNotClicked[$key][] = $tmpArray;
                         $affiche = false;
                     }
                 }
                 if ($affiche) {
                     $tmpArray = array();
                     $tmpArray['libelle'] = $vLibelle;
                     $tmpArray['code_champ'] = $vTabFacette['code_champ'];
                     $tmpArray['code_ss_champ'] = $vTabFacette['code_ss_champ'];
                     $tmpArray['nb_result'] = $vTabFacette['nb_result'][$keyValue];
                     $arrayFacettesNotClicked[$key][] = $tmpArray;
                 } else {
                     $facette_plus[$this->tab_facettes_record[$keyFacette]['id']]['facette'][] = $vLibelle . " " . "(" . $vTabFacette['nb_result'][$keyValue] . ")";
                     $facette_plus[$this->tab_facettes_record[$keyFacette]['id']]['value'][] = $vLibelle;
                     $facette_plus[$this->tab_facettes_record[$keyFacette]['id']]['nb_result'][] = $vTabFacette['nb_result'][$keyValue];
                     $facette_plus[$this->tab_facettes_record[$keyFacette]['id']]['code_champ'] = $vTabFacette['code_champ'];
                     $facette_plus[$this->tab_facettes_record[$keyFacette]['id']]['code_ss_champ'] = $vTabFacette['code_ss_champ'];
                     $facette_plus[$this->tab_facettes_record[$keyFacette]['id']]['name'] = $vTabFacette['name'];
                     if ($opac_compare_notice_active * 1 == "1") {
                         $id = facette_search_compare::gen_compare_id($vTabFacette['name'], $vLibelle, $vTabFacette['code_champ'], $vTabFacette['code_ss_champ'], $vTabFacette['nb_result'][$keyValue]);
                         if ($facette_compare->facette_compare[$id]) {
                             $facette_compare->set_available_compare($id, true);
                         }
                     }
                 }
             }
         }
     }
     if (count($_SESSION['facette'])) {
         $table_facette_clicked = "<table id='active_facette'>";
         $tr_surbrillance = "onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='" . $pair_impair . "'\" ";
         $n = 0;
         foreach ($_SESSION['facette'] as $k => $v) {
             $n % 2 ? $pair_impair = "odd" : ($pair_impair = "even");
             $n++;
             if (count($_SESSION['facette']) == 1) {
                 $link = "index.php?lvl=more_results&get_last_query=1&reinit_facette=1";
             } else {
                 $link = "index.php?lvl=more_results&mode=extended&facette_test=1&param_delete_facette=" . $k;
             }
             $table_facette_clicked .= "\n\t\t\t\t\t\t<tr class='" . $pair_impair . "' onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='" . $pair_impair . "'\">\n\t\t\t\t\t\t\t<td>";
             $tmp = 0;
             foreach ($v as $vDetail) {
                 foreach ($vDetail[1] as $vDetailLib) {
                     if ($tmp) {
                         $table_facette_clicked .= "<br>";
                     }
                     $table_facette_clicked .= $vDetail[0] . " : " . (substr($vDetailLib, 0, 4) == "msg:" ? $msg[substr($vDetailLib, 4)] : $vDetailLib);
                     $tmp++;
                 }
             }
             $table_facette_clicked .= "\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<a href='" . $link . "'>\n\t\t\t\t\t\t\t\t\t<img src='./images/cross.png'/>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>";
         }
         $table_facette_clicked .= "</table>";
     }
     if (count($arrayFacettesNotClicked)) {
         foreach ($arrayFacettesNotClicked as $tmpName => $facette) {
             $flagSeeMore = false;
             $tmpArray = explode("_", $tmpName);
             $idfacette = array_pop($tmpArray);
             $name = implode($tmpArray);
             $currentFacette = current($facette);
             $idGroupBy = facette_search_compare::gen_groupby_id($name, $currentFacette['code_champ'], $currentFacette['code_ss_champ']);
             $groupBy = facette_search_compare::gen_groupby($name, $currentFacette['code_champ'], $currentFacette['code_ss_champ'], $idGroupBy);
             $table_facette .= "<table id='facette_list_" . $idfacette . "'>";
             $table_facette .= "<tr>";
             if ($opac_compare_notice_active * 1 == "1" && count($facette_compare->facette_compare)) {
                 $table_facette .= "\n\t\t\t\t\t\t<th style='width=\"90%\\' onclick='javascript:test(\"facette_list_" . $idfacette . "\");' colspan='2'>\n\t\t\t\t\t\t\t" . htmlentities($name, ENT_QUOTES, $charset) . "\n\t\t\t\t\t\t</th>";
                 $table_facette .= facette_search_compare::get_groupby_row($facette_compare, $groupBy, $idGroupBy);
                 if ($facette_compare->facette_groupby[$idGroupBy]) {
                     $facette_compare->set_available_groupby($idGroupBy, true);
                 }
             } else {
                 $table_facette .= "\n\t\t\t\t\t\t<th onclick='javascript:test(\"facette_list_" . $idfacette . "\");'>\n\t\t\t\t\t\t\t" . htmlentities($name, ENT_QUOTES, $charset) . "\n\t\t\t\t\t\t</th>";
             }
             $table_facette .= "</tr>";
             $j = 0;
             foreach ($facette as $detailFacette) {
                 $link = "./index.php?lvl=more_results&mode=extended&facette_test=1";
                 $link .= "&name=" . rawurlencode($name) . "&value=" . rawurlencode($detailFacette['libelle']) . "&champ=" . $detailFacette['code_champ'] . "&ss_champ=" . $detailFacette['code_ss_champ'] . "";
                 $id = facette_search_compare::gen_compare_id($name, $detailFacette['libelle'], $detailFacette['code_champ'], $detailFacette['code_ss_champ'], $detailFacette['nb_result']);
                 if ($charset != 'utf-8') {
                     $cacValue = json_encode(array(utf8_encode($name), utf8_encode($detailFacette['libelle']), $detailFacette['code_champ'], $detailFacette['code_ss_champ'], $id, $detailFacette['nb_result']));
                 } else {
                     $cacValue = json_encode(array($name, $detailFacette['libelle'], $detailFacette['code_champ'], $detailFacette['code_ss_champ'], $id, $detailFacette['nb_result']));
                 }
                 if (!isset($detailFacette['see_more'])) {
                     if ($opac_compare_notice_active * 1 == "1") {
                         if (!sizeof($facette_compare->facette_compare[$id])) {
                             $onclick = 'select_compare_facette(\'' . htmlentities($cacValue, ENT_QUOTES, $charset) . '\')';
                             $img = 'double_section_arrow_16.png';
                         } else {
                             $facette_compare->set_available_compare($id, true);
                             $onclick = '';
                             $img = 'vide.png';
                         }
                     }
                     $table_facette .= "\n\t\t\t\t\t\t\t<tr style='display: block;'>\n\t\t\t\t\t\t\t\t<td class='facette_col_coche'>\n\t\t\t\t\t\t\t\t\t<span class='facette_coche'>\n\t\t\t\t\t\t\t\t\t\t<input type='checkbox' name='check_facette[]' value='" . htmlentities($cacValue, ENT_QUOTES, $charset) . "'>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td  class='facette_col_info'>\n\t\t\t\t\t\t\t\t\t<a href='" . $link . "'>\n\t\t\t\t\t\t\t\t\t\t<span class='facette_libelle'>\n\t\t\t\t\t\t\t\t\t\t\t" . htmlentities(substr($detailFacette['libelle'], 0, 4) == "msg:" ? $msg[substr($detailFacette['libelle'], 4)] : $detailFacette['libelle'], ENT_QUOTES, $charset) . "\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span class='facette_number'>\n\t\t\t\t\t\t\t\t\t\t\t[" . htmlentities($detailFacette['nb_result'], ENT_QUOTES, $charset) . "]\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>";
                     $j++;
                 } elseif (!$flagSeeMore) {
                     $table_facette .= "\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td colspan='3'>\n\t\t\t\t\t\t\t\t\t<a href='javascript:facette_see_more(" . $idfacette . "," . json_encode(pmb_utf8_array_encode($facette_plus[$idfacette]), JSON_HEX_APOS | JSON_HEX_QUOT) . ");'>" . $msg["facette_plus_link"] . "</a>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>";
                     $flagSeeMore = true;
                 }
             }
             $table_facette .= "</table>";
         }
         $table_facette .= "<input type='hidden' value='' id='filtre_compare_facette' name='filtre_compare'>";
         $table_facette .= "<input class='bouton' type='button' value='" . htmlentities($msg["facette_filtre"], ENT_QUOTES, $charset) . "' name='filtre' onClick='valid_facettes_multi()'>";
         if ($opac_compare_notice_active * 1 == "1") {
             $table_facette .= "<input class='bouton' type='button' value='" . htmlentities($msg["facette_compare"], ENT_QUOTES, $charset) . "' name='compare' onClick='valid_facettes_compare()'>";
         }
     }
     $table = "<form name='facettes_multi' class='facettes_multis' method='POST' action='./index.php?lvl=more_results&mode=extended&facette_test=1'>";
     if (count($_SESSION['facette'])) {
         $table .= "<h3>" . htmlentities($msg['facette_active'], ENT_QUOTES, $charset) . "</h3>" . $table_facette_clicked . "<br/>";
     }
     if ($opac_compare_notice_active * 1 == "1") {
         //Le tableau des critères de comparaisons
         if (count($facette_compare->facette_compare)) {
             $table_compare = $facette_compare->gen_table_compare();
             $table .= "<h3 class='facette_compare_MainTitle'><table><tr><td style='width:90%;'>" . htmlentities($msg['facette_list_compare_crit'], ENT_QUOTES, $charset) . "</td>\n\t\t\t\t<td><a href='{$base_path}/index.php?lvl=more_results&get_last_query=1&reinit_compare=1' class='facette_compare_raz'><img alt='" . htmlentities($msg['facette_compare_reinit'], ENT_QUOTES, $charset) . "' title='" . htmlentities($msg['facette_compare_reinit'], ENT_QUOTES, $charset) . "' width='18px' height='18px' src='{$base_path}/images/cross.png'/></a></td></tr></table>\n\t\t\t\t</h3><table id='facette_compare'>" . $table_compare . "</table><br/>";
             //Le tableau des critères de comparaisons
             if (count($facette_compare->facette_groupby)) {
                 $table_groupby = $facette_compare->gen_table_groupby();
             }
             $table .= "<h3 class='facette_compare_SubTitle'><img id='facette_compare_not_clickable' src='" . get_url_icon('group_by.png') . "'/> " . htmlentities($msg['facette_list_groupby_crit'], ENT_QUOTES, $charset) . "</h3><table id='facette_groupby'>" . $table_groupby . "</table><br/>";
         }
         //le bouton de retour
         if ($_SESSION['filtre_compare'] == 'compare') {
             $table .= "<input type='button' class='bouton backToResults' value='" . htmlentities($msg['facette_compare_search_result'], ENT_QUOTES, $charset) . "' onclick='document.location.href=\"{$base_path}/index.php?lvl=more_results&get_last_query=1\"'/><br /><br />";
         } elseif ($_SESSION['filtre_compare'] != 'compare' && count($facette_compare->facette_compare)) {
             $table .= "<input type='button' class='bouton' value='" . htmlentities($msg['facette_compare_search_compare'], ENT_QUOTES, $charset) . "' onclick='valid_compare();'/><br /><br />";
         }
     }
     if (count($arrayFacettesNotClicked)) {
         if ($opac_compare_notice_active * 1 == "1") {
             $table .= "<div id='facettes_help'></div>";
             $table .= "<h3 class='facette_compare_listTitle'>" . htmlentities($msg['facette_list_compare'], ENT_QUOTES, $charset) . " &nbsp;<img onclick='open_popup(document.getElementById(\"facettes_help\"),\"" . htmlentities($msg['facette_compare_helper_message'], ENT_QUOTES, $charset) . "\");' height='18px' width='18px' title='" . htmlentities($msg['facette_compare_helper'], ENT_QUOTES, $charset) . "' alt='" . htmlentities($msg['facette_compare_helper'], ENT_QUOTES, $charset) . "' src='" . get_url_icon('quest.png') . "'/></h3>" . $table_facette . "<br/>";
         } else {
             $table .= "<h3 class='facette_compare_listTitle'>" . htmlentities($msg['facette_list'], ENT_QUOTES, $charset) . "</h3>" . $table_facette . "<br/>";
         }
     }
     $table .= "</form>";
     return $table;
 }
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>';
    }
}