explnum = $explnum;
}
public function getPlayer(&$tpl) {
$visionneuse_path = "./opac_css/visionneuse";
if (in_array($this->explnum->explnum_mimetype, array("audio/mpeg", "audio/mp3"))) {
$player = $this->getPlayerAudio();
} else {
$player = $this->getPlayerVideo();
}
$tpl = str_replace("!!player!!", $player, $tpl);
}
private function getPlayerAudio() {
$visionneuse_path = "./opac_css/visionneuse";
$player = "
";
return $player;
}
private function getPlayerVideo() {
$visionneuse_path = "./opac_css/visionneuse";
$player = "
";
return $player;
}
public function getAjaxCall(&$tpl) {
global $base_path;
$ajaxCall = "
";
$tpl = str_replace("!!ajaxCall!!", $ajaxCall, $tpl);
}
public function getReturnLink(&$tpl) {
global $base_path;
global $dbh;
$returnLink = "";
if ($this->explnum->explnum_bulletin) { // Cas d'un bulletin
$returnLink = $base_path."/catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=".$this->explnum->explnum_bulletin;
} else {
$query = "select notice_id, niveau_biblio from notices where notice_id = ".$this->explnum->explnum_notice;
$result = mysql_query($query, $dbh);
if ($result && mysql_num_rows($result)) {
if ($notice = mysql_fetch_object($result)) {
if ($notice->niveau_biblio == 's') { // Cas d'une série
$returnLink = $base_path."/catalog.php?categ=serials&sub=view&serial_id=".$notice->notice_id;
} else if ($notice->niveau_biblio == 'm') { // Cas d'une monographie
$returnLink = $base_path."/catalog.php?categ=isbd&id=".$notice->notice_id;
} else if ($notice->niveau_biblio == 'a') { // Cas d'un article
$query = "select analysis_bulletin from analysis where analysis_notice = ".$notice->notice_id;
$result = mysql_query($query, $dbh);
if ($result && mysql_num_rows($result)) {
if ($analysis = mysql_fetch_object($result)) {
$returnLink = $base_path."/catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=".$analysis->analysis_bulletin."&art_to_show=".$notice->notice_id."#anchor_".$notice->notice_id;
}
}
}
}
}
}
$tpl = str_replace("!!return_link!!", $returnLink, $tpl);
}
}
?>