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>'; }
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\"> </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>'; } }