aut."' "; $rqt_auteursuite = "select author_id as aut from authors where author_see='$id_aut->aut' and author_id!=0 "; $res_auteursuite = mysql_query($rqt_auteursuite, $dbh); while(($id_autsuite=mysql_fetch_object($res_auteursuite))) $clause_auteurs .= ", '".$id_autsuite->aut."' "; } $clause_auteurs .= " ) " ; $requete = "SELECT distinct notices.notice_id FROM notices, responsability "; $requete.= "where responsability_author $clause_auteurs and notice_id=responsability_notice "; $requete.= "ORDER BY index_serie,tnvol,index_sew"; $res = mysql_query($requete, $dbh); if ($res) while($row = mysql_fetch_assoc($res)) { $result[] = $row["notice_id"]; } //Je filtre les notices en fonction des droits $result=$this->filter_tabl_notices($result); return $result; } function get_author_information($author_id) { global $dbh; global $msg; $result = array(); $author_id += 0; if (!$author_id) throw new Exception("Missing parameter: author_id"); $sql = "SELECT * FROM authors WHERE author_id = ".$author_id; $res = mysql_query($sql); if (!$res) throw new Exception("Not found: author_id = ".$author_id); $row = mysql_fetch_assoc($res); $result = array( "author_id" => $row["author_id"], "author_type" => $row["author_type"], "author_name" => utf8_normalize($row["author_name"]), "author_rejete" => utf8_normalize($row["author_rejete"]), "author_see" => $row["author_see"], "author_date" => utf8_normalize($row["author_date"]), "author_web" => utf8_normalize($row["author_web"]), "author_comment" => utf8_normalize($row["author_comment"]), "author_lieu" => utf8_normalize($row["author_lieu"]), "author_ville" => utf8_normalize($row["author_ville"]), "author_pays" => utf8_normalize($row["author_pays"]), "author_subdivision" => utf8_normalize($row["author_subdivision"]), "author_numero" => utf8_normalize($row["author_numero"]) ); if(method_exists($this->proxy_parent,"pmbesAutLinks_getLinks")){ $result['author_links'] =$this->proxy_parent->pmbesAutLinks_getLinks(1, $author_id); }else{ $result['author_links'] = array(); } return $result; } function get_author_information_and_notices($author_id, $OPACUserId=-1) { $result = array( "information" => $this->get_author_information($author_id), "notice_ids" => $this->list_author_notices($author_id, $OPACUserId) ); return $result; } } ?>