filter_tabl_notices($result); return $result; } function get_publisher_information($publisher_id) { global $dbh; global $msg; $result = array(); $publisher_id += 0; if (!$publisher_id) throw new Exception("Missing parameter: publisher_id"); $sql = "SELECT * FROM publishers WHERE ed_id = ".$publisher_id; $res = mysql_query($sql); if (!$res) throw new Exception("Not found: publisher_id = ".$publisher_id); $row = mysql_fetch_assoc($res); $result = array( "publisher_id" => $row["ed_id"], "publisher_name" => utf8_normalize($row["ed_name"]), "publisher_address1" => utf8_normalize($row["ed_adr1"]), "publisher_address2" => utf8_normalize($row["ed_adr2"]), "publisher_zipcode" => utf8_normalize($row["ed_cp"]), "publisher_city" => utf8_normalize($row["ed_ville"]), "publisher_country" => utf8_normalize($row["ed_pays"]), "publisher_web" => utf8_normalize($row["ed_web"]), "publisher_comment" => utf8_normalize($row["ed_comment"]), "publisher_links" => $this->proxy_parent->pmbesAutLinks_getLinks(3, $publisher_id), ); return $result; } function get_publisher_information_and_notices($publisher_id, $OPACUserId=-1) { return array( "information" => $this->get_publisher_information($publisher_id), "notice_ids" => $this->list_publisher_notices($publisher_id, $OPACUserId=-1) ); } } ?>