$row->collection_id,
'name' => $row->collection_name
);
}
}
// affichage des notices associées
$recordslist = "
";
if(!$page) $page=1;
$debut =($page-1)*$opac_nb_aut_rec_per_page;
if($nbr_lignes) {
// on lance la vraie requête
//$requete = "SELECT notice_id FROM notices, notice_statut WHERE (ed1_id='$id' or ed2_id='$id') and (statut=id_notice_statut and ((notice_visible_opac=1 and notice_visible_opac_abon=0)".($_SESSION["user_code"]?" or (notice_visible_opac_abon=1 and notice_visible_opac=1)":"")."))";
$requete = "SELECT notice_id FROM notices $acces_j $statut_j WHERE (ed1_id='$id' or ed2_id='$id') $statut_r ";
//gestion du tri
if (isset($_GET["sort"])) {
$_SESSION["last_sortnotices"]=$_GET["sort"];
}
if ($nbr_lignes>$opac_nb_max_tri) {
$_SESSION["last_sortnotices"]="";
}
if ($_SESSION["last_sortnotices"]!="") {
$sort = new sort('notices','session');
$requete = $sort->appliquer_tri($_SESSION["last_sortnotices"], $requete, "notice_id", $debut, $opac_nb_aut_rec_per_page);
} else {
$requete .= " LIMIT $debut,$opac_nb_aut_rec_per_page ";
}
//fin gestion du tri
$res = @pmb_mysql_query($requete, $dbh);
if ($opac_notices_depliable) $recordslist.= $begin_result_liste;
//gestion du tri
if ($nbr_lignes<=$opac_nb_max_tri) {
$pos=strpos($_SERVER['REQUEST_URI'],"?");
$pos1=strpos($_SERVER['REQUEST_URI'],"get");
if ($pos1==0) $pos1=strlen($_SERVER['REQUEST_URI']);
else $pos1=$pos1-3;
$para=urlencode(substr($_SERVER['REQUEST_URI'],$pos+1,$pos1-$pos+1));
$para1=substr($_SERVER['REQUEST_URI'],$pos+1,$pos1-$pos+1);
$affich_tris_result_liste=str_replace("!!page_en_cours!!",$para,$affich_tris_result_liste);
$affich_tris_result_liste=str_replace("!!page_en_cours1!!",$para1,$affich_tris_result_liste);
$recordslist.= $affich_tris_result_liste;
if ($_SESSION["last_sortnotices"]!="") {
$recordslist.= "
".$msg['tri_par']." ".$sort->descriptionTriParId($_SESSION["last_sortnotices"])." ";
}
} else $recordslist.= "
";
//fin gestion du tri
$recordslist.= $add_cart_link;
if($opac_visionneuse_allow && $nbexplnum_to_photo){
$recordslist.= "
".$link_to_visionneuse;
$sendToVisionneuseByGet = str_replace("!!mode!!","publisher_see",$sendToVisionneuseByGet);
$sendToVisionneuseByGet = str_replace("!!idautorite!!",$id,$sendToVisionneuseByGet);
$recordslist.= $sendToVisionneuseByGet;
}
if ($opac_show_suggest) {
$bt_sugg = "
".$msg[empr_bt_make_sugg]."";
$recordslist.= $bt_sugg;
}
//affinage
//enregistrement de l'endroit actuel dans la session
rec_last_authorities();
// Gestion des alertes à partir de la recherche simple
include_once($include_path."/alert_see.inc.php");
$recordslist.= $alert_see_mc_values;
//affichage
$recordslist.= "
".$msg["affiner_recherche"]."";
//fin affinage
//Etendre
if ($opac_allow_external_search) $recordslist.= "
".$msg["connecteurs_external_search_sources"]."";
//fin etendre
$recordslist.= "
\n";
$recordslist.= aff_notice(-1);
$nb=0;
$recherche_ajax_mode=0;
while(($obj=pmb_mysql_fetch_object($res))) {
if($nb++>4) $recherche_ajax_mode=1;
$recordslist.= pmb_bidi(aff_notice($obj->notice_id, 0, 1, 0, "", "", 0, 0, $recherche_ajax_mode));
}
$recordslist.= aff_notice(-2);
$recordslist.= "
\n";
pmb_mysql_free_result($res);
// constitution des liens
$nbepages = ceil($nbr_lignes/$opac_nb_aut_rec_per_page);
// $recordslist.= "
\n";
$recordslist.= "