";
$expl_liste_all.=$expl_liste;
if($opac_aff_expl_localises && $_SESSION["empr_location"]) {
if($expl['expl_location']==$_SESSION["empr_location"]) {
$expl_liste_loc.=$expl_liste;
} else $nb_expl_autre_loc++;
}
$expl_liste="";
} // fin while
$expl_list_header_deb="
".$expl_list_header_deb;
//S'il y a des titres de champs perso dans les exemplaires
if($header_perso_aff) {
$expl_list_header_deb.=$header_perso_aff;
}
$expl_list_header_deb.="
";
if($opac_aff_expl_localises && $_SESSION["empr_location"] && $nb_expl_autre_loc) {
// affichage avec onglet selon la localisation
if(!$expl_liste_loc) $expl_liste_loc="
".$msg["no_expl"]."
";
$expl_liste_all=str_replace("!!EXPL!!",$expl_list_header_deb.$expl_liste_all,$expl_list_header_loc_tpl);
$expl_liste_all=str_replace("!!EXPL_LOC!!",$expl_list_header_deb.$expl_liste_loc,$expl_liste_all);
$expl_liste_all=str_replace("!!mylocation!!",$_SESSION["empr_location_libelle"],$expl_liste_all);
$expl_liste_all=str_replace("!!id!!",$id+$bull_id,$expl_liste_all);
} else {
// affichage de la liste d'exemplaires calculée ci-dessus
if (!$expl_liste_all && $opac_show_empty_items_block==1) {
$expl_liste_all = $expl_list_header.$expl_list_header_deb."
".$msg["no_expl"]."
".$expl_list_footer;
} elseif (!$expl_liste_all && $opac_show_empty_items_block==0) {
$expl_liste_all = "";
} else {
$expl_liste_all = $expl_list_header.$expl_list_header_deb.$expl_liste_all.$expl_list_footer;
}
}
return $expl_liste_all;
} // fin function get_display_expl_list
/**
* Génère la liste des exemplaires
* @param int $notice_id Identifiant de la notice
* @return string
*/
static public function get_display_expl_responsive_list($notice_id) {
global $dbh;
global $msg, $charset;
global $expl_list_header, $expl_list_footer;
global $opac_expl_data, $opac_expl_order, $opac_url_base;
global $pmb_transferts_actif,$transferts_statut_transferts;
global $memo_p_perso_expl;
global $opac_show_empty_items_block ;
global $opac_show_exemplaires_analysis;
global $expl_list_header_loc_tpl,$opac_aff_expl_localises;
global $opac_sur_location_activate;
$nb_expl_autre_loc=0;
$nb_perso_aff=0;
$record_datas = static::get_record_datas($notice_id);
$type = $record_datas->get_niveau_biblio();
$id = $record_datas->get_id();
$bull = $record_datas->get_bul_info();
$bull_id = $bull['bulletin_id'];
// les dépouillements ou périodiques n'ont pas d'exemplaire
if (($type=="a" && !$opac_show_exemplaires_analysis) || $type=="s") return "" ;
if(!$memo_p_perso_expl) $memo_p_perso_expl=new parametres_perso("expl");
$header_found_p_perso=0;
$expls_datas = $record_datas->get_expls_datas();
$expl_list_header_deb="
";
foreach ($expls_datas['colonnesarray'] as $colonne) {
$expl_list_header_deb .= "
";
$expl_liste_all.=$expl_liste;
if($opac_aff_expl_localises && $_SESSION["empr_location"]) {
if($expl['expl_location']==$_SESSION["empr_location"]) {
$expl_liste_loc.=$expl_liste;
} else $nb_expl_autre_loc++;
}
$expl_liste="";
} // fin while
//S'il y a des titres de champs perso dans les exemplaires
if($header_perso_aff) {
$expl_list_header_deb.=$header_perso_aff;
}
if($opac_aff_expl_localises && $_SESSION["empr_location"] && $nb_expl_autre_loc) {
// affichage avec onglet selon la localisation
if(!$expl_liste_loc) $expl_liste_loc="
".$msg["no_expl"]."
";
$expl_liste_all=str_replace("!!EXPL!!",$expl_list_header_deb.$expl_liste_all,$expl_list_header_loc_tpl);
$expl_liste_all=str_replace("!!EXPL_LOC!!",$expl_list_header_deb.$expl_liste_loc,$expl_liste_all);
$expl_liste_all=str_replace("!!mylocation!!",$_SESSION["empr_location_libelle"],$expl_liste_all);
$expl_liste_all=str_replace("!!id!!",$id+$bull_id,$expl_liste_all);
} else {
// affichage de la liste d'exemplaires calculée ci-dessus
if (!$expl_liste_all && $opac_show_empty_items_block==1) {
$expl_liste_all = $expl_list_header.$expl_list_header_deb."
".$msg["no_expl"]."
".$expl_list_footer;
} elseif (!$expl_liste_all && $opac_show_empty_items_block==0) {
$expl_liste_all = "";
} else {
$expl_liste_all = $expl_list_header.$expl_list_header_deb.$expl_liste_all.$expl_list_footer;
}
}
return $expl_liste_all;
} // fin function get_display_expl_responsive_list
/**
* Fontion qui génère le bloc H3 + table des autres lectures
* @param number $notice_id Identifiant de la notice
* @param number $bulletin_id Identifiant du bulletin
* @return string
*/
static public function get_display_other_readings($notice_id) {
global $dbh, $msg;
global $opac_autres_lectures_tri;
global $opac_autres_lectures_nb_mini_emprunts;
global $opac_autres_lectures_nb_maxi;
global $opac_autres_lectures_nb_jours_maxi;
global $opac_autres_lectures;
global $gestion_acces_active,$gestion_acces_empr_notice;
$record_datas = static::get_record_datas($notice_id);
$bull = $record_datas->get_bul_info();
$bulletin_id = $bull['bulletin_id'];
if (!$opac_autres_lectures || (!$notice_id && !$bulletin_id)) return "";
if (!$opac_autres_lectures_nb_maxi) $opac_autres_lectures_nb_maxi = 999999 ;
if ($opac_autres_lectures_nb_jours_maxi) $restrict_date=" date_add(oal.arc_fin, INTERVAL $opac_autres_lectures_nb_jours_maxi day)>=sysdate() AND ";
if ($notice_id) $pas_notice = " oal.arc_expl_notice!=$notice_id AND ";
if ($bulletin_id) $pas_bulletin = " oal.arc_expl_bulletin!=$bulletin_id AND ";
// Ajout ici de la liste des notices lues par les lecteurs de cette notice
$rqt_autres_lectures = "SELECT oal.arc_expl_notice, oal.arc_expl_bulletin, count(*) AS total_prets,
trim(concat(ifnull(notices_m.tit1,''),ifnull(notices_s.tit1,''),' ',ifnull(bulletin_numero,''), if(mention_date, concat(' (',mention_date,')') ,if (date_date, concat(' (',date_format(date_date, '%d/%m/%Y'),')') ,'')))) as tit, if(notices_m.notice_id, notices_m.notice_id, notices_s.notice_id) as not_id
FROM ((((pret_archive AS oal JOIN
(SELECT distinct arc_id_empr FROM pret_archive nbec where (nbec.arc_expl_notice='".$notice_id."' AND nbec.arc_expl_bulletin='".$bulletin_id."') AND nbec.arc_id_empr !=0) as nbec
ON (oal.arc_id_empr=nbec.arc_id_empr and oal.arc_id_empr!=0 and nbec.arc_id_empr!=0))
LEFT JOIN notices AS notices_m ON arc_expl_notice = notices_m.notice_id )
LEFT JOIN bulletins ON arc_expl_bulletin = bulletins.bulletin_id)
LEFT JOIN notices AS notices_s ON bulletin_notice = notices_s.notice_id)
WHERE $restrict_date $pas_notice $pas_bulletin oal.arc_id_empr !=0
GROUP BY oal.arc_expl_notice, oal.arc_expl_bulletin
HAVING total_prets>=$opac_autres_lectures_nb_mini_emprunts
ORDER BY $opac_autres_lectures_tri
";
$res_autres_lectures = pmb_mysql_query($rqt_autres_lectures) or die (" ".pmb_mysql_error()." ".$rqt_autres_lectures." ");
if (pmb_mysql_num_rows($res_autres_lectures)) {
$odd_even=1;
$inotvisible=0;
$ret="";
//droits d'acces emprunteur/notice
$acces_j='';
if ($gestion_acces_active==1 && $gestion_acces_empr_notice==1) {
$ac= new acces();
$dom_2= $ac->setDomain(2);
$acces_j = $dom_2->getJoin($_SESSION['id_empr_session'],4,'notice_id');
}
if($acces_j) {
$statut_j='';
$statut_r='';
} else {
$statut_j=',notice_statut';
$statut_r="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)":"").")";
}
while (($data=pmb_mysql_fetch_array($res_autres_lectures))) { // $inotvisible<=$opac_autres_lectures_nb_maxi
$requete = "SELECT 1 ";
$requete .= " FROM notices $acces_j $statut_j WHERE notice_id='".$data[not_id]."' $statut_r ";
$myQuery = pmb_mysql_query($requete, $dbh);
if (pmb_mysql_num_rows($myQuery) && $inotvisible<=$opac_autres_lectures_nb_maxi) { // pmb_mysql_num_rows($myQuery)
$inotvisible++;
$titre = $data['tit'];
// **********
$responsab = array("responsabilites" => array(),"auteurs" => array()); // les auteurs
$responsab = get_notice_authors($data['not_id']) ;
$as = array_search ("0", $responsab["responsabilites"]) ;
if ($as!== FALSE && $as!== NULL) {
$auteur_0 = $responsab["auteurs"][$as] ;
$auteur = new auteur($auteur_0["id"]);
$mention_resp = $auteur->isbd_entry;
} else {
$aut1_libelle = array();
$as = array_keys ($responsab["responsabilites"], "1" ) ;
for ($i = 0 ; $i < count($as) ; $i++) {
$indice = $as[$i] ;
$auteur_1 = $responsab["auteurs"][$indice] ;
$auteur = new auteur($auteur_1["id"]);
$aut1_libelle[]= $auteur->isbd_entry;
}
$mention_resp = implode (", ",$aut1_libelle) ;
}
$mention_resp ? $auteur = $mention_resp : $auteur="";
// on affiche les résultats
if ($odd_even==0) {
$pair_impair="odd";
$odd_even=1;
} else if ($odd_even==1) {
$pair_impair="even";
$odd_even=0;
}
if ($data['arc_expl_notice']) $tr_javascript=" class='$pair_impair' onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='$pair_impair'\" onmousedown=\"document.location='./index.php?lvl=notice_display&id=".$data['not_id']."&seule=1';\" style='cursor: pointer' ";
else $tr_javascript=" class='$pair_impair' onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='$pair_impair'\" onmousedown=\"document.location='./index.php?lvl=bulletin_display&id=".$data['arc_expl_bulletin']."';\" style='cursor: pointer' ";
$ret .= "
";
$ret .= "
".$titre."
";
$ret .= "
".$auteur."
";
$ret .= "
\n";
}
}
if ($ret) $ret = "
".$msg['autres_lectures']."
".$ret."
";
} else $ret="";
return $ret;
} // fin autres_lectures ($notice_id=0,$bulletin_id=0)
/**
* Ajoute l'image
* @param unknown $notice_id Identifiant de la notice
* @param unknown $entree Contenu avant l'ajout
* @param unknown $depliable
*/
static public function do_image($notice_id, &$entree,$depliable) {
global $charset;
global $opac_show_book_pics ;
global $opac_book_pics_url ;
global $opac_book_pics_msg;
global $opac_url_base ;
global $msg;
$record_datas = static::get_record_datas($notice_id);
if ($record_datas->get_code() || $record_datas->get_thumbnail_url()) {
if ($opac_show_book_pics=='1' && ($opac_book_pics_url || $record_datas->get_thumbnail_url())) {
$code_chiffre = pmb_preg_replace('/-|\.| /', '', $record_datas->get_code());
$url_image = $opac_book_pics_url ;
$url_image = $opac_url_base."getimage.php?url_image=".urlencode($url_image)."¬icecode=!!noticecode!!&vigurl=".urlencode($record_datas->get_thumbnail_url()) ;
$title_image_ok = "";
if(!$record_datas->get_thumbnail_url()) $title_image_ok = htmlentities($opac_book_pics_msg, ENT_QUOTES, $charset);
if(!trim($title_image_ok)){
$title_image_ok = htmlentities($record_datas->get_tit1(), ENT_QUOTES, $charset);
}
if ($depliable) $image = "get_thumbnail_url()."\" alt='".$msg["opac_notice_vignette_alt"]."'/>";
else {
if ($record_datas->get_thumbnail_url()) {
$url_image_ok=$record_datas->get_thumbnail_url();
} else {
$url_image_ok = str_replace("!!noticecode!!", $code_chiffre, $url_image) ;
}
$image = "";
}
} else $image="" ;
if ($image) {
$entree = "
$entree
$image
" ;
} else {
$entree = "
$entree
" ;
}
} else {
$entree = "
$entree
" ;
}
}
/**
* Retourne le script des notices similaires
* @return string
*/
static public function get_display_simili_script($notice_id) {
global $opac_allow_simili_search;
switch ($opac_allow_simili_search) {
case "0" :
$script_simili_search = "";
break;
case "1" :
$script_simili_search = "show_simili_search('".$notice_id."');";
$script_simili_search.= "show_expl_voisin_search('".$notice_id."');";
break;
case "2" :
$script_simili_search = "show_expl_voisin_search('".$notice_id."');";
break;
case "3" :
$script_simili_search = "show_simili_search('".$notice_id."');";
break;
}
return $script_simili_search;
}
/**
* Renvoie les états de collections
* @param int $notice_id Identifiant de la notice
* @return mixed
*/
static public function get_display_collstate($notice_id) {
global $msg;
global $pmb_etat_collections_localise;
$record_datas = static::get_record_datas($notice_id);
$collstate = $record_datas->get_collstate();
if($pmb_etat_collections_localise) {
$collstate->get_display_list("",0,0,0,1);
} else {
$collstate->get_display_list("",0,0,0,0);
}
if($collstate->nbr) {
$affichage.= "
".$msg["perio_etat_coll"]."
";
$affichage.=$collstate->liste;
}
return $affichage;
}
static protected function get_lang_list($tableau) {
$langues = "";
for ($i = 0 ; $i < sizeof($tableau) ; $i++) {
if ($langues) $langues.=" ";
$langues .= $tableau[$i]["langue"]." (".$tableau[$i]["lang_code"].")";
}
return $langues;
}
/**
* Fonction d'affichage des avis
* @param int $notice_id Identifiant de la notice
*/
static public function get_display_avis($notice_id) {
global $msg;
$record_datas = static::get_record_datas($notice_id);
$avis = $record_datas->get_avis();
$nombre_avis = "";
//Affichage des Etoiles et nombre d'avis
if ($avis['qte'] > 0) {
$nombre_avis = "get_id()."','avis','width=600,height=290,scrollbars=yes,resizable=yes'); w.focus(); return false;\">".$avis['qte']." ".$msg['notice_bt_avis']."";
$etoiles_moyenne = static::get_stars($avis['moyenne']);
$img_tag .= $nombre_avis."get_id()."','avis','width=600,height=290,scrollbars=yes,resizable=yes'); w.focus(); return false;\">".$etoiles_moyenne."";
} else {
$nombre_avis = "get_id()."','avis','width=600,height=290,scrollbars=yes,resizable=yes'); w.focus(); return false;\">".$msg['avis_aucun']."";
$img_tag .= $nombre_avis;
}
return $img_tag;
}
static public function get_display_avis_detail($notice_id) {
global $dbh, $msg;
global $action; // pour gérer l'affichage des avis en impression de panier
global $allow_avis_ajout;
global $avis_tpl_form1;
global $opac_avis_note_display_mode,$charset;
global $opac_avis_allow;
$record_datas = static::get_record_datas($notice_id);
$avis = $record_datas->get_avis();
$avis_tpl_form=$avis_tpl_form1;
$avis_tpl_form=str_replace("!!notice_id!!",$record_datas->get_id(),$avis_tpl_form);
$add_avis_onclick="show_add_avis(".$record_datas->get_id().");";
if (isset($avis['avis']) && count($avis['avis'])) {
$pair_impair="odd";
$ret="";
foreach ($avis['avis'] as $data) {
// on affiche les résultats
if ($pair_impair=="odd") $pair_impair="even"; else $pair_impair="odd";
$ret .= "
$avis_tpl_form" ;
}
}
return $ret;
}
static public function get_display_avis_only_stars($notice_id) {
$record_datas = static::get_record_datas($notice_id);
$avis = $record_datas->get_avis();
return "get_id()."','avis','width=600,height=290,scrollbars=yes,resizable=yes'); w.focus(); return false;\">".static::get_stars($avis['moyenne'])."";
}
/**
* Retourne l'affichage des étoiles
* @param float $moyenne
*/
static protected function get_stars($moyenne) {
$etoiles_moyenne="";
if (!$moyenne) {
for ($i = 0; $i < 5; $i++) {
$etoiles_moyenne .= "";
}
} else {
$cpt_star = 0;
for ($i = 1; $i <= $moyenne; $i++) {
$etoiles_moyenne.="";
$cpt_star++;
}
if (substr($moyenne,2,2) > 75) {
$etoiles_moyenne.="";
$cpt_star++;
} elseif (substr($moyenne,2,2) > 25) {
$etoiles_moyenne .= "";
$cpt_star++;
}
for ($cpt_star;$cpt_star < 5 ; $cpt_star++) {
$etoiles_moyenne .= "";
}
}
return $etoiles_moyenne;
}
/**
* Fonction d'affichage des suggestions
* @param int $notice_id Identifiant de la notice
* @return string
*/
static public function get_display_suggestion($notice_id){
global $msg;
$do_suggest="".$msg['suggest_notice_opac']."";
return $do_suggest;
}
/**
* Retourne l'affichage étendu d'une notice
* @param unknown $notice_id Identifiant de la notice
* @param string $django_directory Répertoire Django à utiliser
* @return string Code html d'affichage de la notice
*/
static public function get_display_extended($notice_id, $django_directory = "") {
global $include_path;
$record_datas = static::get_record_datas($notice_id);
$template = static::get_template("record_extended_display", $record_datas->get_niveau_biblio(), $record_datas->get_typdoc(), $django_directory);
return static::render($notice_id, $template);
}
/**
* Retourne l'affichage d'une notice dans un résultat de recherche
* @param int $notice_id Identifiant de la notice
* @param string $django_directory Répertoire Django à utiliser
* @return string Code html d'affichage de la notice
*/
static public function get_display_in_result($notice_id, $django_directory = "") {
global $include_path;
global $opac_notices_format_django_directory;
$record_datas = static::get_record_datas($notice_id);
$template = static::get_template("record_in_result_display", $record_datas->get_niveau_biblio(), $record_datas->get_typdoc(), $django_directory);
return static::render($notice_id, $template);
}
/**
* Retourne le bon template
* @param string $template_name Nom du template : record_extended ou record_in_result
* @param string $niveau_biblio Niveau bibliographique
* @param string $typdoc Type de document
* @param string $django_directory Répertoire Django à utiliser (paramètre opac_notices_format_django_directory par défaut)
* @return string Nom du template à appeler
*/
static public function get_template($template_name, $niveau_biblio, $typdoc, $django_directory = "") {
global $include_path;
global $opac_notices_format_django_directory;
if (!$django_directory) $django_directory = $opac_notices_format_django_directory;
if (file_exists($include_path."/templates/record/".$django_directory."/".$template_name."_".$niveau_biblio.$typdoc.".tpl.html")) {
return $include_path."/templates/record/".$django_directory."/".$template_name."_".$niveau_biblio.$typdoc.".tpl.html";
}
if (file_exists($include_path."/templates/record/common/".$template_name."_".$niveau_biblio.$typdoc.".tpl.html")) {
return $include_path."/templates/record/common/".$template_name."_".$niveau_biblio.$typdoc.".tpl.html";
}
if (file_exists($include_path."/templates/record/".$django_directory."/".$template_name."_".$niveau_biblio.".tpl.html")) {
return $include_path."/templates/record/".$django_directory."/".$template_name."_".$niveau_biblio.".tpl.html";
}
if (file_exists($include_path."/templates/record/common/".$template_name."_".$niveau_biblio.".tpl.html")) {
return $include_path."/templates/record/common/".$template_name."_".$niveau_biblio.".tpl.html";
}
if (file_exists($include_path."/templates/record/".$django_directory."/".$template_name.".tpl.html")) {
return $include_path."/templates/record/".$django_directory."/".$template_name.".tpl.html";
}
return $include_path."/templates/record/common/".$template_name.".tpl.html";
}
static public function get_liens_opac() {
global $liens_opac;
return $liens_opac;
}
/**
* Retourne l'affichage des documents numériques
* @param int $notice_id Identifiant de la notice
* @return string Rendu html des documents numériques
*/
static public function get_display_explnums($notice_id) {
global $include_path;
require_once($include_path."/explnum.inc.php");
$record_datas = static::get_record_datas($notice_id);
$bull = $record_datas->get_bul_info();
$bulletin_id = $bull['bulletin_id'];
if ($record_datas->get_niveau_biblio() == "b" && ($explnums = show_explnum_per_notice(0, $bulletin_id, ''))) {
return $explnums;
}
if ($explnums = show_explnum_per_notice($notice_id, 0, '')) {
return $explnums;
}
return "";
}
static public function get_display_size($notice_id) {
$record_datas = static::get_record_datas($notice_id);
$size = array();
if ($record_datas->get_npages()) $size[] = $record_datas->get_npages();
if ($record_datas->get_ill()) $size[] = $record_datas->get_ill();
if ($record_datas->get_size()) $size[] = $record_datas->get_size();
return implode(" / ", $size);
}
static public function get_display_demand($notice_id) {
global $msg, $include_path, $form_modif_demande, $form_linked_record, $demandes_active, $opac_demandes_allow_from_record;
if ($demandes_active && $opac_demandes_allow_from_record && $_SESSION['id_empr_session']) {
$record_datas = static::get_record_datas($notice_id);
$demande = new demandes();
$themes = new demandes_themes('demandes_theme','id_theme','libelle_theme',$demande->theme_demande);
$types = new demandes_types('demandes_type','id_type','libelle_type',$demande->type_demande);
$f_modif_demande = $form_modif_demande;
$f_modif_demande = str_replace('!!form_title!!',htmlentities($msg['demandes_creation'],ENT_QUOTES,$charset),$f_modif_demande);
$f_modif_demande = str_replace('!!sujet!!','',$f_modif_demande);
$f_modif_demande = str_replace('!!progression!!','',$f_modif_demande);
$f_modif_demande = str_replace('!!empr_txt!!','',$f_modif_demande);
$f_modif_demande = str_replace('!!idempr!!',$_SESSION['id_empr_session'],$f_modif_demande);
$f_modif_demande = str_replace('!!iduser!!',"",$f_modif_demande);
$f_modif_demande = str_replace('!!titre!!','',$f_modif_demande);
$etat=$demande->getStateValue();
$f_modif_demande = str_replace('!!idetat!!',$etat['id'],$f_modif_demande);
$f_modif_demande = str_replace('!!value_etat!!',$etat['comment'],$f_modif_demande);
$f_modif_demande = str_replace('!!select_theme!!',$themes->getListSelector(),$f_modif_demande);
$f_modif_demande = str_replace('!!select_type!!',$types->getListSelector(),$f_modif_demande);
$date = formatdate(today());
$date_debut=date("Y-m-d",time());
$date_dmde = "";
$f_modif_demande = str_replace('!!date_demande!!',$date_dmde,$f_modif_demande);
$f_modif_demande = str_replace('!!date_fin_btn!!',$date,$f_modif_demande);
$f_modif_demande = str_replace('!!date_debut_btn!!',$date,$f_modif_demande);
$f_modif_demande = str_replace('!!date_debut!!',$date_debut,$f_modif_demande);
$f_modif_demande = str_replace('!!date_fin!!',$date_debut,$f_modif_demande);
$f_modif_demande = str_replace('!!date_prevue!!',$date_debut,$f_modif_demande);
$f_modif_demande = str_replace('!!date_prevue_btn!!',$date,$f_modif_demande);
$f_modif_demande = str_replace('!!iddemande!!', '', $f_modif_demande);
$f_modif_demande = str_replace('!!form_linked_record!!', $form_linked_record, $f_modif_demande);
$f_modif_demande = str_replace('!!linked_record!!', $record_datas->get_tit1(), $f_modif_demande);
$f_modif_demande = str_replace("!!linked_record_id!!", $notice_id, $f_modif_demande);
$f_modif_demande = str_replace("!!linked_record_link!!", $record_datas->get_permalink(), $f_modif_demande);
$act_cancel = "demandDialog_".$notice_id.".hide();";
$act_form = "./empr.php?tab=request&lvl=list_dmde&sub=save_demande";
$f_modif_demande = str_replace('!!form_action!!',$act_form,$f_modif_demande);
$f_modif_demande = str_replace('!!cancel_action!!',$act_cancel,$f_modif_demande);
// Requires et début de formulaire
$html = "
".$f_modif_demande."
".$msg['do_demande_on_record']."
";
return $html;
}
return "";
}
/**
* Retourne le rendu html des documents numériques du bulletin parent de la notice d'article
* @param int $notice_id Identifiant de la notice
* @return string Rendu html des documents numériques du bulletin parent
*/
static public function get_display_bull_for_art_expl_num($notice_id) {
$record_datas = static::get_record_datas($notice_id);
$bul_infos = $record_datas->get_bul_info();
$paramaff["mine_type"]=1;
$retour = show_explnum_per_notice(0, $bul_infos['bulletin_id'],"",$paramaff);
return $retour;
}
}