";
}else{
$template="
$case_a_cocher";
if (!$this->no_header) {
$template.=$this->get_icon_html($this->notice->niveau_biblio, $this->notice->typdoc);
}
$template.=" |
!!heada!! | ".$this->notice_header_doclink." |
";
}
$template.="!!CONTENU!!
!!SUITE!!
";
if($this->notice->niveau_biblio != "b"){
$this->permalink = "index.php?lvl=notice_display&id=".$this->notice_id;
}else {
$this->permalink = "index.php?lvl=bulletin_display&id=".$this->bulletin_id;
}
if($opac_show_social_network){
if($this->notice_header_without_html == ""){
$this->do_header_without_html();
}
$template_in.="
";
}
if($img_tag) $li_tags="
$img_tag";
if($img_avis) $li_tags.="
$img_avis";
if($img_sugg) $li_tags.="
$img_sugg";
if($img_liste_lecture) $li_tags.="
$img_liste_lecture";
if($basket || $img_tag || $img_avis || $img_sugg || $opac_notice_enrichment){
$template_in.="
";
if ($basket) $template_in.="- $basket
";
if($opac_notice_enrichment){
if($what =='ISBD') $template_in.="- ".$msg['ISBD']."
";
else $template_in.="- ".$msg['Public']."
";
}
$template_in.="
$li_tags
";
}
if($what =='ISBD') {
$template_in.="
!!ISBD!!
!!PUBLIC!!
";
} else {
$template_in.="
!!PUBLIC!!
!!ISBD!!
";
}
$template_in.="
";
if (($opac_avis_display_mode==1) && (($this->avis_allowed && $this->avis_allowed !=2) || ($_SESSION["user_code"] && $this->avis_allowed ==2 && $allow_avis))) $this->affichage_avis_detail=$this->avis_detail();
// Serials : différence avec les monographies on affiche [périodique] et [article] devant l'ISBD
if ($this->notice->niveau_biblio =='s') {
if(!$flag_no_get_bulletin){
if($this->get_bulletins()){
if ($lvl == "notice_display")$voir_bulletins="
".$msg["see_bull"]."";
else $voir_bulletins="
".$msg["see_bull"]."";
}
}
//si visionneuse active...
if ($opac_visionneuse_allow && $this->notice->opac_visible_bulletinage) {
if($test=$this->get_bulletins_docnums()){
$voir_docnum_bulletins="
notice_id.");return false;\">".$msg["see_docnum_bull"]."
";
}
}
if($this->open_to_search()) {
$search_in_serial ="
".$msg["rechercher_in_serial"]."";
} else {
$search_in_serial ="";
}
$template_in = str_replace('!!ISBD!!', "
[".$msg['isbd_type_perio']."]".$voir_bulletins.$voir_docnum_bulletins.$search_in_serial." !!ISBD!!", $template_in);
$template_in = str_replace('!!PUBLIC!!', "
[".$msg['isbd_type_perio']."]".$voir_bulletins.$voir_docnum_bulletins.$search_in_serial." !!PUBLIC!!", $template_in);
} elseif ($this->notice->niveau_biblio =='a') {
$template_in = str_replace('!!ISBD!!', "
[".$msg['isbd_type_art']."] !!ISBD!!", $template_in);
$template_in = str_replace('!!PUBLIC!!', "
[".$msg['isbd_type_art']."] !!PUBLIC!!", $template_in);
} elseif ($this->notice->niveau_biblio =='b') {
$template_in = str_replace('!!ISBD!!', "
[".$msg['isbd_type_bul']."] !!ISBD!!", $template_in);
$template_in = str_replace('!!PUBLIC!!', "
[".$msg['isbd_type_bul']."] !!PUBLIC!!", $template_in);
}
$template_in.=$this->get_serialcirc_form_actions();
$template_in = str_replace('!!ISBD!!', $this->notice_isbd, $template_in);
$template_in = str_replace('!!PUBLIC!!', $this->notice_public, $template_in);
$template_in = str_replace('!!id!!', $this->notice_id, $template_in);
$this->do_image($template_in,$depliable);
$this->result = str_replace('!!id!!', $this->notice_id, $template);
if($this->notice_header_doclink){
$this->result = str_replace('!!heada!!', $this->notice_header_without_doclink, $this->result);
}else {
$this->result = str_replace('!!heada!!', $this->notice_header, $this->result);
}
$this->result = str_replace('!!CONTENU!!', $template_in, $this->result);
$this->affichage_simili_search_head=$this->get_simili_search($depliable);
if($this->display_childs) {
$this->notice_childs = $this->genere_notice_childs();
} else {
$this->notice_childs = "";
}
$this->result = str_replace('!!SUITE!!', $this->notice_childs.$this->affichage_resa_expl.$this->affichage_avis_detail.$this->affichage_demand.$this->affichage_scan_requests.$this->affichage_simili_search_head, $this->result);
} // fin genere_simple($depliable=1, $what='ISBD')
public function genere_ajax($aj_type_aff,$header_only_origine=0){
global $msg,$charset;
global $opac_url_base;
global $tdoc;
global $lvl; // pour savoir qui demande l'affichage
global $opac_notices_depliable;
global $opac_allow_simili_search;
global $opac_draggable;
if($opac_draggable){
$draggable='yes';
}else{
$draggable='no';
}
if ($this->cart_allowed){
if(isset($_SESSION["cart"]) && in_array($this->notice_id, $_SESSION["cart"])) {
$basket="
![\"".$msg['notice_title_basket_exist']."\"](\"".$opac_url_base."images/basket_exist.png\")
";
} else {
$title=$this->notice_header;
if(!$title)$title=$this->notice->tit1;
$basket="
notice_id."&header=".rawurlencode(strip_tags($title))."\" target=\"cart_info\" class=\"img_basket\" title=\"".$msg['notice_title_basket']."\">![\"".$msg['notice_title_basket']."\"](".$opac_url_base."images/basket_small_20x20.png)
";
}
}else $basket="";
$this->genere_ajax_param($aj_type_aff,$header_only_origine);
if($this->notice->niveau_biblio != "b"){
$this->permalink = $opac_url_base."index.php?lvl=notice_display&id=".$this->notice_id;
}else{
$this->permalink = $opac_url_base."index.php?lvl=bulletin_display&id=".$this->bulletin_id;
}
if($opac_allow_simili_search){
$simili_search_script_all="
";
}
$script_simili_search = $this->get_simili_script();
if($opac_notices_depliable == 2){
$template="
".$simili_search_script_all."
$case_a_cocher
";
if (!$this->no_header) {
$template.=$this->get_icon_html($this->notice->niveau_biblio, $this->notice->typdoc);
}
$template.= " ".$basket;
$template.=" |
!!heada!! | ".$this->notice_header_doclink." |
notice_affichage_enrichment." ".($opac_allow_simili_search ? "simili_search='1'" : "").">
";
}else{
$template="
".$simili_search_script_all."
$case_a_cocher
";
if (!$this->no_header) {
$template.=$this->get_icon_html($this->notice->niveau_biblio, $this->notice->typdoc);
}
$template.= " ".$basket;
$template.=" |
!!heada!! | ".$this->notice_header_doclink." |
notice_affichage_enrichment." ".($opac_allow_simili_search ? "simili_search='1'" : "").">
";
}
$template.="
permalink."\" style=\"display:none;\">Permalink
$simili_search_script_all
";
$template_in = str_replace('!!id!!', $this->notice_id, $template_in);
$this->do_image($template_in,$opac_notices_depliable);
$this->result = str_replace('!!id!!', $this->notice_id, $template);
if($this->notice_header_doclink){
$this->result = str_replace('!!heada!!', $this->notice_header_without_doclink, $this->result);
}elseif($this->notice_header)
$this->result = str_replace('!!heada!!', $this->notice_header, $this->result);
else $this->result = str_replace('!!heada!!', '', $this->result);
} // fin genere_ajax()
protected function get_resource_link_notice_header() {
global $msg;
if(!$this->notice->eformat) $info_bulle=$msg["open_link_url_notice"];
else $info_bulle=$this->notice->eformat;
// ajout du lien pour les ressources électroniques
$resource_link = "
notice->lien."\" target=\"_blank\" type='external_url_notice'>
";
return $resource_link;
}
// génération du header----------------------------------------------------
public function do_header($id_tpl=0) {
global $opac_notice_reduit_format ;
global $opac_url_base, $msg, $charset;
global $memo_notice;
global $opac_visionneuse_allow;
global $opac_photo_filtre_mimetype;
global $opac_url_base;
global $charset;
$this->notice_header="";
if(!$this->notice_id) return;
if(($this->notice->typdoc=='a') || ($this->notice->typdoc=='j')
|| ($this->notice->typdoc=='m') || ($this->notice->typdoc=='3') || ($this->notice->typdoc=='4') || ($this->notice->typdoc=='5')){
/*
* Ouvrage - Thèse / Mémoire
* Multimédia - Photo - Vidéo - Audio
*/
if($this->notice->serie_name) {
$this->notice_header = $this->notice->serie_name;
if($this->notice->tnvol) $this->notice_header .= '. '.$this->notice->tnvol;
} elseif ($this->notice->tnvol) $this->notice_header .= $this->notice->tnvol;
if ($this->notice_header) $this->notice_header .= ",
".$this->notice->tit1."";
else $this->notice_header = "
".$this->notice->tit1."";
if ($this->notice->tit4 != "") $this->notice_header .= " : ".$this->notice->tit4;
$this->notice_header .= ".";
//permet de fermer la balise
parente pour que éviter le prolongement du lien sur la fonction d'auteur (notices liées)
$this->notice_header .= "";
if ($this->auteurs_tous) $this->notice_header .= "
".$this->auteurs_tous;
if ($this->congres_tous) $this->notice_header .= "
".$this->congres_tous;
if ($this->notice->ed1_id) {
$editeur = new publisher($this->notice->ed1_id);
$this->notice_header .= "
".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur));
//Année édition
if ($this->notice->year) {
$this->notice_header .= ", ".$this->notice->year;
}
}
if ($this->notice->ed1_id) {
if($this->notice->npages) $this->notice_header .= ", ".$this->notice->npages;
} else {
if($this->notice->npages) $this->notice_header .= "
".$this->notice->npages;
}
//Collection
if ($this->notice->coll_id) {
$collection = new collection($this->notice->coll_id);
$this->notice_header .= " (".inslink($collection->name, str_replace("!!id!!", $this->notice->coll_id, $this->lien_rech_collection)) ;
if ($this->notice->nocoll) $this->notice_header .= ", ".$this->notice->nocoll;
$this->notice_header .= ")";
}
//Cote
$req='SELECT expl_cote FROM exemplaires WHERE expl_notice='.$this->notice_id.' LIMIT 1';
$res = pmb_mysql_query($req);
$tmp_notice_header = "";
if ($res) {
if(pmb_mysql_num_rows($res)){
$tmp_notice_header .= "
".$msg['cote_start']."
".pmb_mysql_result($res,0,0)."";
}
}
if ($this->notice->statut == 3) {
if ($tmp_notice_header != "") $tmp_notice_header .= "
".$this->statut_notice."";
else $tmp_notice_header .= "
".$this->statut_notice."";
}
$this->notice_header .= $tmp_notice_header;
} elseif(($this->notice->typdoc=='f') || ($this->notice->typdoc=='i')) {
/*
* Dossier
* Archive
*/
$this->notice_header .= "
".$this->notice->tit1."";
if ($this->notice->tit4 != "") $this->notice_header .= ". ".$this->notice->tit4;
//permet de fermer la balise
parente pour que éviter le prolongement du lien sur la fonction d'auteur (notices liées)
$this->notice_header .= "";
if ($this->auteurs_tous) $this->notice_header .= "
".$this->auteurs_tous;
if ($this->congres_tous) $this->notice_header .= "
".$this->congres_tous;
if ($this->notice->ed1_id) {
$editeur = new publisher($this->notice->ed1_id);
if ($this->auteurs_tous) {
$this->notice_header .= ". ".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur));
} else {
$this->notice_header .= "
".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur));
}
//Année édition
if ($this->notice->year) {
$this->notice_header .= ", ".$this->notice->year;
}
}
//Cote
$req='SELECT expl_cote FROM exemplaires WHERE expl_notice='.$this->notice_id.' LIMIT 1';
$res = pmb_mysql_query($req);
$tmp_notice_header = "";
if ($res) {
if(pmb_mysql_num_rows($res)){
$tmp_notice_header .= "
".$msg['cote_start']."
".pmb_mysql_result($res,0,0)."";
}
}
if ($this->notice->statut == 3) {
if ($tmp_notice_header != "") $tmp_notice_header .= "
".$this->statut_notice."";
else $tmp_notice_header .= "
".$this->statut_notice."";
}
$this->notice_header .= $tmp_notice_header;
} elseif(($this->notice->typdoc=='c') || (($this->notice->niveau_biblio == 's') && ($this->notice->typdoc=='e'))) {
/*
* Revue
* Revue de presse
*/
$this->notice_header .= "
".$this->notice->tit1."";
if ($this->notice->tit4 != "") $this->notice_header .= " : ".$this->notice->tit4;
if ($this->notice->code) $this->notice_header .= " (".$this->notice->code.")";
} elseif(($this->notice->typdoc=='d') || (($this->notice->niveau_biblio == 'a') && ($this->notice->typdoc=='e'))) {
/*
* Article de périodique
* Article de presse
*/
//Champs perso cp_cpt_tit
$perso_aff_1 = "";
$perso_aff_2 = "";
if (!$this->p_perso->no_special_fields) {
// $this->memo_perso_ permet aux affichages personnalisés dans notice_affichage_ext de gagner du temps
if(!$this->memo_perso_) $this->memo_perso_=$this->p_perso->show_fields($this->notice_id);
for ($i=0; $i
memo_perso_["FIELDS"]); $i++) {
$p=$this->memo_perso_["FIELDS"][$i];
if (/*$p['OPAC_SHOW'] && */$p["AFF"]) {
if ($p['NAME']=='cp_cpt_tit') {
$perso_aff_1 .= $p["AFF"];
} elseif ($p['NAME']=='cp_partie_revue') {
$perso_aff_2 .= $p["AFF"];
}
}
}
}
$this->notice_header .= "".$this->notice->tit1."";
if ($this->notice->tit4 != "") $this->notice_header .= " : ".$this->notice->tit4;
//permet de fermer la balise parente pour que éviter le prolongement du lien sur la fonction d'auteur (notices liées)
$this->notice_header .= "";
if ($perso_aff_1 != "") $this->notice_header .= ". ".$perso_aff_1;
if ($perso_aff_2 != "") $this->notice_header .= ". ".$perso_aff_2;
// if($this->notice->npages) $this->notice_header .= ", ".$this->notice->npages."";
if ($this->auteurs_tous) $this->notice_header .= "
".$this->auteurs_tous;
if ($this->congres_tous) $this->notice_header .= "
".$this->congres_tous;
//Si c'est un depouillement, ajout du titre de pério
if($this->notice->niveau_biblio == 'a' && $this->notice->niveau_hierar == 2 && $this->parent_title) {
$this->notice_header .= "
".$this->parent_title.(($this->parent_date != "" || $this->parent_date != "s.d.")?", ".$this->parent_date:", ".$this->parent_aff_date_date).(($this->parent_numero && ($this->parent_numero != "s.n.")) ? ", ".$msg['number']." ".$this->parent_numero : "") ;
}
if($this->notice->npages) $this->notice_header .= ", ".$this->notice->npages."";
} elseif($this->notice->typdoc=='b'){
/*
* Article d'ouvrage
*/
//Champs perso cp_cpt_tit
$perso_aff_1 = "";
if (!$this->p_perso->no_special_fields) {
// $this->memo_perso_ permet aux affichages personnalisés dans notice_affichage_ext de gagner du temps
if(!$this->memo_perso_) $this->memo_perso_=$this->p_perso->show_fields($this->notice_id);
for ($i=0; $imemo_perso_["FIELDS"]); $i++) {
$p=$this->memo_perso_["FIELDS"][$i];
if (/*$p['OPAC_SHOW'] && */$p["AFF"]) {
if ($p['NAME']=='cp_cpt_tit') {
$perso_aff_1 .= $p["AFF"];
}
}
}
}
$this->notice_header .= "".$this->notice->tit1."";
if ($this->notice->tit4 != "") $this->notice_header .= " : ".$this->notice->tit4;
//permet de fermer la balise parente pour que éviter le prolongement du lien sur la fonction d'auteur (notices liées)
$this->notice_header .= "";
if ($perso_aff_1 != "") $this->notice_header .= ". ".$perso_aff_1;
// if($this->notice->npages) $this->notice_header .= ", ".$this->notice->npages."";
if ($this->auteurs_tous) $this->notice_header .= "
".$this->auteurs_tous;
if ($this->congres_tous) $this->notice_header .= "
".$this->congres_tous;
if ($this->header_only && ($this->parents_in == "")) $this->do_parents(); //mode ajax
$this->notice_header .= $this->parents_in;
if($this->notice->npages) $this->notice_header .= ", ".$this->notice->npages."";
$this->notice_header .= $this->parents_in_cote;
} elseif($this->notice->typdoc=='g'){
/*
* Décision du CC
*/
//Champs perso cp_referent et cp_date_dec
$perso_aff_1 = "";
$perso_aff_2 = "";
if (!$this->p_perso->no_special_fields) {
// $this->memo_perso_ permet aux affichages personnalisés dans notice_affichage_ext de gagner du temps
if(!$this->memo_perso_) $this->memo_perso_=$this->p_perso->show_fields($this->notice_id);
for ($i=0; $imemo_perso_["FIELDS"]); $i++) {
$p=$this->memo_perso_["FIELDS"][$i];
if (/*$p['OPAC_SHOW'] && */$p["AFF"]) {
if ($p['NAME']=='cp_referent') {
$perso_aff_1 .= $p["AFF"];
} else if ($p['NAME']=='cp_datedec') {
$perso_aff_2 .= $p["AFF"];
}
}
}
}
$this->notice_header .= $perso_aff_1;
if ($perso_aff_2 != "") {
if ($this->notice_header != "") $this->notice_header .= " - ".$perso_aff_2;
else $this->notice_header .= $perso_aff_2;
}
if ($this->notice_header != "") $this->notice_header .= "
".$this->notice->tit1."";
else $this->notice_header .= "".$this->notice->tit1."";
if ($this->notice->tit4 != "") $this->notice_header .= " [".$this->notice->tit4."]";
} elseif($this->notice->typdoc=='l'){
/*
* Ressource électronique
*/
$this->notice_header .= "".$this->notice->tit1."";
if ($this->notice->tit4 != "") $this->notice_header .= " : ".$this->notice->tit4;
//permet de fermer la balise parente pour que éviter le prolongement du lien sur la fonction d'auteur (notices liées)
$this->notice_header .= "";
if ($this->auteurs_tous) $this->notice_header .= "
".$this->auteurs_tous;
if ($this->congres_tous) $this->notice_header .= "
".$this->congres_tous;
if ($this->notice->ed1_id) {
$editeur = new publisher($this->notice->ed1_id);
if ($this->auteurs_tous) {
$this->notice_header .= ". ".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur));
} else {
$this->notice_header .= "
".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur));
}
}
//Année édition
if ($this->notice->year) {
$this->notice_header .= ", ".$this->notice->year;
}
//Importance matérielle
if($this->notice->npages) $this->notice_header .= ", ".$this->notice->npages;
$this->notice_header .= ".";
} elseif($this->notice->typdoc=='6'){
/*
* Bulletin
*/
if ($this->parent_bulletin_title) $this->notice_header .= "".$this->parent_bulletin_title."
";
$this->notice_header .= $this->parent_title;
if ($this->parent_title_4 != "") $this->notice_header .= " : ".$this->parent_title_4;
if ($this->parent_date) $this->notice_header .= ", ".$this->parent_date;
if ($this->parent_numero) $this->notice_header .= ", ".$msg['number']." ".$this->parent_numero;
if ($this->notice->npages) $this->notice_header .= ", ".$this->notice->npages;
} else {
/*
* Default
*/
if($this->notice->serie_name) {
$this->notice_header = $this->notice->serie_name;
if($this->notice->tnvol) $this->notice_header .= '. '.$this->notice->tnvol;
} elseif ($this->notice->tnvol) $this->notice_header .= $this->notice->tnvol;
if ($this->notice_header) $this->notice_header .= ", ".$this->notice->tit1."";
else $this->notice_header = "".$this->notice->tit1."";
if ($this->notice->tit4 != "") $this->notice_header .= " : ".$this->notice->tit4;
$this->notice_header .= ".";
//permet de fermer la balise parente pour que éviter le prolongement du lien sur la fonction d'auteur (notices liées)
$this->notice_header .= "";
if ($this->auteurs_tous) $this->notice_header .= "
".$this->auteurs_tous;
if ($this->congres_tous) $this->notice_header .= "
".$this->congres_tous;
if ($this->notice->ed1_id) {
$editeur = new publisher($this->notice->ed1_id);
$this->notice_header .= "
".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur));
//Année édition
if ($this->notice->year) {
$this->notice_header .= ", ".$this->notice->year;
}
}
if ($this->notice->ed1_id) {
if($this->notice->npages) $this->notice_header .= ", ".$this->notice->npages;
} else {
if($this->notice->npages) $this->notice_header .= "
".$this->notice->npages;
}
//Collection
if ($this->notice->coll_id) {
$collection = new collection($this->notice->coll_id);
$this->notice_header .= " (".inslink($collection->name, str_replace("!!id!!", $this->notice->coll_id, $this->lien_rech_collection)) ;
if ($this->notice->nocoll) $this->notice_header .= ", ".$this->notice->nocoll;
$this->notice_header .= ")";
}
//Cote
$req='SELECT expl_cote FROM exemplaires WHERE expl_notice='.$this->notice_id.' LIMIT 1';
$res = pmb_mysql_query($req);
$tmp_notice_header = "";
if ($res) {
if(pmb_mysql_num_rows($res)){
$tmp_notice_header .= "
".$msg['cote_start']." ".pmb_mysql_result($res,0,0)."";
}
}
if ($this->notice->statut == 3) {
if ($tmp_notice_header != "") $tmp_notice_header .= " ".$this->statut_notice."";
else $tmp_notice_header .= "
".$this->statut_notice."";
}
$this->notice_header .= $tmp_notice_header;
}
// $this->notice_header .="
";
//$this->notice_header_without_html = $this->notice_header;
$this->notice_header = "";
//on ne propose à Zotero que les monos et les articles...
if($this->notice->niveau_biblio == "m" ||($this->notice->niveau_biblio == "a" && $this->notice->niveau_hierar == 2)) {
$this->notice_header =str_replace("!!zoteroNotice!!"," notice='".$this->notice_id."' ",$this->notice_header);
}else $this->notice_header =str_replace("!!zoteroNotice!!","",$this->notice_header);
$this->notice_header = 'statut_notice)?'title="'.htmlentities($this->statut_notice,ENT_QUOTES,$charset).'"':'').'>'.$this->notice_header;
$this->notice_header_doclink="";
if ($this->notice->lien) {
$this->notice_header_doclink .= $this->get_resource_link_notice_header();
}
$sql_explnum = $this->get_query_explnum_header();
$explnums = pmb_mysql_query($sql_explnum);
$explnumscount = pmb_mysql_num_rows($explnums);
if ( (is_null($this->dom_2) && $this->visu_explnum && (!$this->visu_explnum_abon || ($this->visu_explnum_abon && $_SESSION["user_code"]))) || ($this->rights & 16) ) {
if ($explnumscount == 1) {
$explnumrow = pmb_mysql_fetch_object($explnums);
if ($explnumrow->explnum_nomfichier){
if($explnumrow->explnum_nom == $explnumrow->explnum_nomfichier) $info_bulle=$msg["open_doc_num_notice"].$explnumrow->explnum_nomfichier;
else $info_bulle=$explnumrow->explnum_nom;
}elseif ($explnumrow->explnum_url){
if($explnumrow->explnum_nom == $explnumrow->explnum_url) $info_bulle=$msg["open_link_url_notice"].$explnumrow->explnum_url;
else $info_bulle=$explnumrow->explnum_nom;
}
$this->notice_header_doclink .= " ";
if ($opac_visionneuse_allow)
$allowed_mimetype = explode(",",str_replace("'","",$opac_photo_filtre_mimetype));
if ($opac_visionneuse_allow && $this->docnum_allowed && ($allowed_mimetype && in_array($expl->explnum_mimetype,$allowed_mimetype))){
$this->notice_header_doclink .="
explnum_id.");return false;\" alt='$alt' title='$alt'>";
}else{
$this->notice_header_doclink .= "explnum_id."\" target=\"_blank\">";
}
$this->notice_header_doclink .= "
notice_header_doclink .= " alt=\"";
$this->notice_header_doclink .= htmlentities($info_bulle,ENT_QUOTES,$charset);
$this->notice_header_doclink .= "\" title=\"";
$this->notice_header_doclink .= htmlentities($info_bulle,ENT_QUOTES,$charset);
$this->notice_header_doclink .= "\">";
$this->notice_header_doclink .= "";
} elseif ($explnumscount > 1) {
$explnumrow = pmb_mysql_fetch_object($explnums);
$info_bulle=$msg["info_docs_num_notice"];
$this->notice_header_doclink .= " ";
$this->notice_header_doclink .= "
";
}
}
$this->notice_header_doclink.=$this->get_icon_is_new();
//coins pour Zotero
$coins_span=$this->gen_coins_span();
$this->notice_header.=$coins_span;
$this->notice_header_without_doclink=$this->notice_header;
// $this->notice_header.=$this->notice_header_doclink;
$memo_notice[$this->notice_id]["header_without_doclink"]=$this->notice_header_without_doclink;
$memo_notice[$this->notice_id]["header_doclink"]= $this->notice_header_doclink;
$memo_notice[$this->notice_id]["header"]=$this->notice_header;
$memo_notice[$this->notice_id]["niveau_biblio"] = $this->notice->niveau_biblio;
$memo_notice[$this->notice_id]["typdoc"] = $this->notice->typdoc;
$this->notice_header_with_link=inslink($this->notice_header, str_replace("!!id!!", $this->notice_id, $this->lien_rech_notice)) ;
} // fin do_header()
// génération de l'affichage public----------------------------------------
public function do_public($short=0,$ex=1) {
global $dbh;
global $msg;
global $tdoc;
global $charset;
global $memo_notice;
global $opac_notice_affichage_class;
global $opac_url_base,$opac_permalink;
$this->notice_public= $this->genere_in_perio ();
if(!$this->notice_id) return;
// Notices parentes
//$this->notice_public.=$this->parents;
$this->notice_public .= "";
if(($this->notice->typdoc=='a') || ($this->notice->typdoc=='j')
|| ($this->notice->typdoc=='m') || ($this->notice->typdoc=='3') || ($this->notice->typdoc=='4') || ($this->notice->typdoc=='5')){
/*
* Ouvrage - Thèse / Mémoire
* Multimédia - Photo - Vidéo - Audio
*/
//Titre
$this->notice_public .= "".$msg['title']." : | ";
$this->notice_public .= "".$this->notice->tit1."" ;
$this->notice_public .= " |
";
// constitution de la mention de titre
if ($this->notice->serie_name) {
$this->notice_public .= "".$msg['tparent_start']." | ".inslink($this->notice->serie_name, str_replace("!!id!!", $this->notice->tparent_id, $this->lien_rech_serie));
$this->notice_public .=" |
";
}
//Partie
if ($this->notice->tnvol) {
$this->notice_public .= "".$msg['tnvol_start']." | ".$this->notice->tnvol;
$this->notice_public .=" |
";
}
//Complément du titre
if ($this->notice->tit4) {
$this->notice_public .= "".$msg['240']." : | ";
$this->notice_public .= "".$this->notice->tit4." |
";
}
//Titre parallèle
if ($this->notice->tit3) $this->notice_public .= "".$msg['other_title_t3']." : | ".$this->notice->tit2." |
" ;
//type de doc
if ($tdoc->table[$this->notice->typdoc]){
$this->notice_public .= "".$msg['typdocdisplay_start']." | ".$tdoc->table[$this->notice->typdoc]." |
";
}
//Auteurs
if ($this->auteurs_tous) $this->notice_public .= "".$msg['auteur_start']." | ".$this->auteurs_tous." |
";
//Congrès
if ($this->congres_tous) $this->notice_public .= "".$msg['congres_aff_public_libelle']." | ".$this->congres_tous." |
";
// mention d'édition
if ($this->notice->mention_edition) $this->notice_public .= "".$msg['mention_edition_start']." | ".$this->notice->mention_edition." |
";
// zone de l'éditeur
if ($this->notice->ed1_id) {
$editeur = new publisher($this->notice->ed1_id);
$this->publishers[]=$editeur;
$this->notice_public .= "".$msg['editeur_start']." | ".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur))." |
" ;
}
//Année de publication
if ($this->notice->year) {
$this->notice_public .= "".$msg['year_start']." | ".$this->notice->year." |
" ;
}
//Pagination
if($this->notice->npages) $this->notice_public .= "".$msg['npages_start']." | ".$this->notice->npages." |
";
//Matériel d'accompagnement
if ($this->notice->accomp) $this->notice_public .= "".$msg['accomp_start']." | ".$this->notice->accomp." |
";
//Collection et Sous-collection
if($this->notice->subcoll_id) {
$subcollection = new subcollection($this->notice->subcoll_id);
$collection = new collection($this->notice->coll_id);
$this->collections[]=$collection;
$this->notice_public .= "".$msg['coll_start']." | ".inslink($collection->name, str_replace("!!id!!", $this->notice->coll_id, $this->lien_rech_collection))." |
" ;
$this->notice_public .= "".$msg['subcoll_start']." | ".inslink($subcollection->name, str_replace("!!id!!", $this->notice->subcoll_id, $this->lien_rech_subcollection)) ;
if ($this->notice->nocoll) $this->notice_public .= ", ".$this->notice->nocoll." |
";
} elseif ($this->notice->coll_id) {
$collection = new collection($this->notice->coll_id);
$this->collections[]=$collection;
$this->notice_public .= "".$msg['coll_start']." | ".inslink($collection->name, str_replace("!!id!!", $this->notice->coll_id, $this->lien_rech_collection)) ;
if ($this->notice->nocoll) $this->notice_public .= ", ".$this->notice->nocoll." |
";
}
//ISBN ou NO. commercial
if ($this->notice->code) $this->notice_public .= "".$msg['code_start']." | ".$this->notice->code." |
";
//Note générale
if ($this->notice->n_gen) $zoneNote = nl2br(htmlentities($this->notice->n_gen,ENT_QUOTES, $charset));
if ($zoneNote) $this->notice_public .= "".$msg['n_gen_start']." | ".$zoneNote." |
";
//Langues
if (count($this->langues)) {
$this->notice_public .= "".$msg['537']." : | ".$this->construit_liste_langues($this->langues);
if (count($this->languesorg)) $this->notice_public .= " ".$msg['711']." : ".$this->construit_liste_langues($this->languesorg);
$this->notice_public.=" |
";
} elseif (count($this->languesorg)) {
$this->notice_public .= "".$msg['711']." : | ".$this->construit_liste_langues($this->languesorg)." |
";
}
//Catégories
if ($this->categories_toutes) $this->notice_public .= "".$msg['categories_start']." | ".$this->categories_toutes." |
";
//Indexation décimale
if($this->notice->indexint) {
$indexint = new indexint($this->notice->indexint);
$this->notice_public .= "".$msg['indexint_start']." | ".inslink($indexint->name.($indexint->comment ? " - ".nl2br(htmlentities($indexint->comment,ENT_QUOTES, $charset)) : ""), str_replace("!!id!!", $this->notice->indexint, $this->lien_rech_indexint))." |
" ;
}
//URL associée
if ($this->notice->lien) {
$ret .= $this->get_line_aff_suite($msg['lien_start'], $this->get_constructed_external_url(), 'lien');
if ($this->notice->eformat && substr($this->notice->eformat,0,3)!='RSS') $ret.="".$msg["eformat_start"]." | ".htmlentities($this->notice->eformat,ENT_QUOTES,$charset)." |
";
}
if ($this->notice->typdoc=='j') {
//Champs perso - Lieu de la soutenance
$perso_aff_1 = "" ;
if (!$this->p_perso->no_special_fields) {
// $this->memo_perso_ permet aux affichages personnalisés dans notice_affichage_ext de gagner du temps
if(!$this->memo_perso_) $this->memo_perso_=$this->p_perso->show_fields($this->notice_id);
for ($i=0; $imemo_perso_["FIELDS"]); $i++) {
$p=$this->memo_perso_["FIELDS"][$i];
if (/*$p['OPAC_SHOW'] && */$p["AFF"]) {
if ($p['NAME']=='cp_lieusout') {
$perso_aff_1 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
}
}
}
}
$this->notice_public .= $perso_aff_1;
}
} elseif(($this->notice->typdoc=='f') || ($this->notice->typdoc=='i')) {
/*
* Dossier
* Archive
*/
//type de doc
if ($tdoc->table[$this->notice->typdoc]){
$this->notice_public .= "".$msg['typdocdisplay_start']." | ".$tdoc->table[$this->notice->typdoc]." |
";
}
//Titre
$this->notice_public .= "".$msg['title']." : | ";
$this->notice_public .= "".$this->notice->tit1."" ;
$this->notice_public .= " |
";
//Complément du titre
if ($this->notice->tit4) {
$this->notice_public .= "".$msg['240']." : | ";
$this->notice_public .= "".$this->notice->tit4." |
";
}
//Auteurs
if ($this->auteurs_tous) $this->notice_public .= "".$msg['auteur_start']." | ".$this->auteurs_tous." |
";
//Congrès
if ($this->congres_tous) $this->notice_public .= "".$msg['congres_aff_public_libelle']." | ".$this->congres_tous." |
";
// zone de l'éditeur
if ($this->notice->ed1_id) {
$editeur = new publisher($this->notice->ed1_id);
$this->publishers[]=$editeur;
$this->notice_public .= "".$msg['editeur_start']." | ".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur))." |
" ;
}
//Année édition
if ($this->notice->year) {
$this->notice_public .= "".$msg['year_start']." | ".$this->notice->year." |
" ;
}
//Indexation décimale
if($this->notice->indexint) {
$indexint = new indexint($this->notice->indexint);
$this->notice_public .= "".$msg['indexint_start']." | ".inslink($indexint->name.($indexint->comment ? " - ".nl2br(htmlentities($indexint->comment,ENT_QUOTES, $charset)) : ""), str_replace("!!id!!", $this->notice->indexint, $this->lien_rech_indexint))." |
" ;
}
} elseif(($this->notice->typdoc=='c') || (($this->notice->niveau_biblio == 's') && ($this->notice->typdoc=='e'))) {
/*
* Revue juridique
* Revue de presse
*/
//type de doc
if ($tdoc->table[$this->notice->typdoc]){
$this->notice_public .= "".$msg['typdocdisplay_start']." | ".$tdoc->table[$this->notice->typdoc]." |
";
}
//Titre
$this->notice_public .= "".$msg['title']." : | ";
$this->notice_public .= "".$this->notice->tit1."" ;
$this->notice_public .= " |
";
//Complément du titre
if ($this->notice->tit4) {
$this->notice_public .= "".$msg['240']." : | ";
$this->notice_public .= "".$this->notice->tit4." |
";
}
// zone de l'éditeur
if ($this->notice->ed1_id) {
$editeur = new publisher($this->notice->ed1_id);
$this->publishers[]=$editeur;
$this->notice_public .= "".$msg['editeur_start']." | ".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur))." |
" ;
}
//Année de publication
if ($this->notice->year) {
$this->notice_public .= "".$msg['year_start']." | ".$this->notice->year." |
" ;
}
//ISSN
if ($this->notice->code) $this->notice_public .= "".$msg['issn']." | ".$this->notice->code." |
";
//Note générale
if ($this->notice->n_gen) $zoneNote = nl2br(htmlentities($this->notice->n_gen,ENT_QUOTES, $charset));
if ($zoneNote) $this->notice_public .= "".$msg['n_gen_start']." | ".$zoneNote." |
";
//Lien - En ligne
if ($this->notice->lien) {
$ret .= $this->get_line_aff_suite($msg['lien_start'], $this->get_constructed_external_url(), 'lien');
if ($this->notice->eformat && substr($this->notice->eformat,0,3)!='RSS') $ret.="".$msg["eformat_start"]." | ".htmlentities($this->notice->eformat,ENT_QUOTES,$charset)." |
";
}
//Champs personnalisés (en 2 parties)
$perso_aff_1 = "" ;
$perso_aff_2 = "" ;
if (!$this->p_perso->no_special_fields) {
// $this->memo_perso_ permet aux affichages personnalisés dans notice_affichage_ext de gagner du temps
if(!$this->memo_perso_) $this->memo_perso_=$this->p_perso->show_fields($this->notice_id);
for ($i=0; $imemo_perso_["FIELDS"]); $i++) {
$p=$this->memo_perso_["FIELDS"][$i];
if (/*$p['OPAC_SHOW'] && */$p["AFF"]) {
if ($p['NAME']=='cp_abrev') {
$perso_aff_1 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
} else if ($p['NAME']=='cp_titreabrev') {
$perso_aff_2 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
}
}
}
}
//Abréviation
$this->notice_public .= $perso_aff_1;
} elseif(($this->notice->typdoc=='d') || (($this->notice->niveau_biblio == 'a') && ($this->notice->typdoc=='e'))) {
/*
* Article de périodique
* Article de presse
*/
//Champs personnalisés (en 4 parties)
$perso_aff_1 = "" ;
$perso_aff_2 = "" ;
$perso_aff_3 = "" ;
$perso_aff_4 = "" ;
$perso_aff_5 = "" ;
$perso_aff_6 = "" ;
if (!$this->p_perso->no_special_fields) {
// $this->memo_perso_ permet aux affichages personnalisés dans notice_affichage_ext de gagner du temps
if(!$this->memo_perso_) $this->memo_perso_=$this->p_perso->show_fields($this->notice_id);
for ($i=0; $imemo_perso_["FIELDS"]); $i++) {
$p=$this->memo_perso_["FIELDS"][$i];
if (/*$p['OPAC_SHOW'] && */$p["AFF"]) {
if ($p['NAME']=='cp_theme') {
$perso_aff_1 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
} else if ($p['NAME']=='cp_cahier') {
$perso_aff_2 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
} else if ($p['NAME']=='cp_recueil') {
$perso_aff_3 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
} else if ($p['NAME']=='cp_revdoct') {
$perso_aff_4 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
} else if ($p['NAME']=='cp_cpt_tit') {
$perso_aff_5 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
} else if ($p['NAME']=='cp_partie_revue') {
$perso_aff_6 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
}
}
}
}
//Titre
$this->notice_public .= "".$msg['title']." : | ";
$this->notice_public .= "".$this->notice->tit1."" ;
$this->notice_public .= " |
";
//Complément du titre
if ($this->notice->tit4) {
$this->notice_public .= "".$msg['240']." : | ";
$this->notice_public .= "".$this->notice->tit4." |
";
}
//Autres compléments de titre
$this->notice_public .= $perso_aff_5;
//Partie revue
$this->notice_public .= $perso_aff_6;
//Auteurs
if ($this->auteurs_tous) $this->notice_public .= "".$msg['auteur_start']." | ".$this->auteurs_tous." |
";
//Congrès
if ($this->congres_tous) $this->notice_public .= "".$msg['congres_aff_public_libelle']." | ".$this->congres_tous." |
";
//Année édition
if ($this->notice->year) {
$this->notice_public .= "".$msg['year_start']." | ".$this->notice->year." |
" ;
}
//Pagination
if($this->notice->npages) $this->notice_public .= "".$msg['npages_start']." | ".$this->notice->npages." |
";
//Thématique
$this->notice_public .= $perso_aff_1;
//Cahier
$this->notice_public .= $perso_aff_2;
//Recueil
$this->notice_public .= $perso_aff_3;
//Revue doctrine
$this->notice_public .= $perso_aff_4;
} elseif($this->notice->typdoc=='b'){
/*
* Article d'ouvrage
*/
//Champs personnalisés
$perso_aff_1 = "" ;
if (!$this->p_perso->no_special_fields) {
// $this->memo_perso_ permet aux affichages personnalisés dans notice_affichage_ext de gagner du temps
if(!$this->memo_perso_) $this->memo_perso_=$this->p_perso->show_fields($this->notice_id);
for ($i=0; $imemo_perso_["FIELDS"]); $i++) {
$p=$this->memo_perso_["FIELDS"][$i];
if (/*$p['OPAC_SHOW'] && */$p["AFF"]) {
if ($p['NAME']=='cp_cpt_tit') {
$perso_aff_1 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
}
}
}
}
//Titre
$this->notice_public .= "".$msg['title']." : | ";
$this->notice_public .= "".$this->notice->tit1."" ;
$this->notice_public .= " |
";
//Complément du titre
if ($this->notice->tit4) {
$this->notice_public .= "".$msg['240']." : | ";
$this->notice_public .= "".$this->notice->tit4." |
";
}
//Autres compléments de titre
$this->notice_public .= $perso_aff_1;
//Titre en langue étrangère
if ($this->notice->tit3) $this->notice_public .= "".$msg['other_title_t3']." : | ".$this->notice->tit2." |
" ;
//type de doc
if ($tdoc->table[$this->notice->typdoc]){
$this->notice_public .= "".$msg['typdocdisplay_start']." | ".$tdoc->table[$this->notice->typdoc]." |
";
}
//Auteurs
if ($this->auteurs_tous) $this->notice_public .= "".$msg['auteur_start']." | ".$this->auteurs_tous." |
";
//Congrès
if ($this->congres_tous) $this->notice_public .= "".$msg['congres_aff_public_libelle']." | ".$this->congres_tous." |
";
// mention d'édition
if ($this->notice->mention_edition) $this->notice_public .= "".$msg['mention_edition_start']." | ".$this->notice->mention_edition." |
";
// zone de l'éditeur
if ($this->notice->ed1_id) {
$editeur = new publisher($this->notice->ed1_id);
$this->publishers[]=$editeur;
$this->notice_public .= "".$msg['editeur_start']." | ".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur))." |
" ;
}
//Année de publication
if ($this->notice->year) {
$this->notice_public .= "".$msg['year_start']." | ".$this->notice->year." |
" ;
}
//Pagination
if($this->notice->npages) $this->notice_public .= "".$msg['npages_start']." | ".$this->notice->npages." |
";
// langues
if (count($this->langues)) {
$this->notice_public .= "".$msg['537']." : | ".$this->construit_liste_langues($this->langues);
if (count($this->languesorg)) $this->notice_public .= " ".$msg['711']." : ".$this->construit_liste_langues($this->languesorg);
$this->notice_public.=" |
";
} elseif (count($this->languesorg)) {
$this->notice_public .= "".$msg['711']." : | ".$this->construit_liste_langues($this->languesorg)." |
";
}
//Catégories
if ($this->categories_toutes) $this->notice_public .= "".$msg['categories_start']." | ".$this->categories_toutes." |
";
//URL associée
if ($this->notice->lien) {
$ret .= $this->get_line_aff_suite($msg['lien_start'], $this->get_constructed_external_url(), 'lien');
if ($this->notice->eformat && substr($this->notice->eformat,0,3)!='RSS') $ret.="".$msg["eformat_start"]." | ".htmlentities($this->notice->eformat,ENT_QUOTES,$charset)." |
";
}
} elseif($this->notice->typdoc=='g'){
/*
* Décision du CC
*/
//Champs personnalisés (en 4 parties)
$perso_aff_1 = "" ;
$perso_aff_2 = "" ;
$perso_aff_3 = "" ;
$perso_aff_4 = "" ;
if (!$this->p_perso->no_special_fields) {
// $this->memo_perso_ permet aux affichages personnalisés dans notice_affichage_ext de gagner du temps
if(!$this->memo_perso_) $this->memo_perso_=$this->p_perso->show_fields($this->notice_id);
for ($i=0; $imemo_perso_["FIELDS"]); $i++) {
$p=$this->memo_perso_["FIELDS"][$i];
if (/*$p['OPAC_SHOW'] && */$p["AFF"]) {
if ($p['NAME']=='cp_referent') {
$perso_aff_1 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
} else if ($p['NAME']=='cp_datedec') {
$perso_aff_2 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
} else if ($p['NAME']=='cp_codedec') {
$perso_aff_3 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
} else if ($p['NAME']=='cp_type_dec') {
$perso_aff_4 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
}
}
}
}
//type de doc
if ($tdoc->table[$this->notice->typdoc]){
$this->notice_public .= "".$msg['typdocdisplay_start']." | ".$tdoc->table[$this->notice->typdoc]." |
";
}
//Référent
$this->notice_public .= $perso_aff_1;
//Titre
$this->notice_public .= "".$msg['title']." : | ";
$this->notice_public .= "".$this->notice->tit1."" ;
$this->notice_public .= " |
";
//Complément du titre
if ($this->notice->tit4) {
$this->notice_public .= "".$msg['240']." : | ";
$this->notice_public .= "".$this->notice->tit4." |
";
}
//Date de décision
$this->notice_public .= $perso_aff_2;
//Code décision
$this->notice_public .= $perso_aff_3;
//Type décision
$this->notice_public .= $perso_aff_4;
} elseif($this->notice->typdoc=='l'){
/*
* Ressource électronique
*/
//Champs personnalisés
$perso_aff_1 = "" ;
if (!$this->p_perso->no_special_fields) {
// $this->memo_perso_ permet aux affichages personnalisés dans notice_affichage_ext de gagner du temps
if(!$this->memo_perso_) $this->memo_perso_=$this->p_perso->show_fields($this->notice_id);
for ($i=0; $imemo_perso_["FIELDS"]); $i++) {
$p=$this->memo_perso_["FIELDS"][$i];
if (/*$p['OPAC_SHOW'] && */$p["AFF"]) {
if ($p['NAME']=='cp_cpt_tit') {
$perso_aff_1 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
}
}
}
}
//Titre
$this->notice_public .= "".$msg['title']." : | ";
$this->notice_public .= "".$this->notice->tit1."" ;
$this->notice_public .= " |
";
//Complément du titre
if ($this->notice->tit4) {
$this->notice_public .= "".$msg['240']." : | ";
$this->notice_public .= "".$this->notice->tit4." |
";
}
//Autres compléments de titre
$this->notice_public .= $perso_aff_1;
//Auteurs
if ($this->auteurs_tous) $this->notice_public .= "".$msg['auteur_start']." | ".$this->auteurs_tous." |
";
//Congrès
if ($this->congres_tous) $this->notice_public .= "".$msg['congres_aff_public_libelle']." | ".$this->congres_tous." |
";
// zone de l'éditeur
if ($this->notice->ed1_id) {
$editeur = new publisher($this->notice->ed1_id);
$this->publishers[]=$editeur;
$this->notice_public .= "".$msg['editeur_start']." | ".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur))." |
" ;
}
//Année de publication
if ($this->notice->year) {
$this->notice_public .= "".$msg['year_start']." | ".$this->notice->year." |
" ;
}
//Pagination
if($this->notice->npages) $this->notice_public .= "".$msg['npages_start']." | ".$this->notice->npages." |
";
//Indexation décimale
if($this->notice->indexint) {
$indexint = new indexint($this->notice->indexint);
$this->notice_public .= "".$msg['indexint_start']." | ".inslink($indexint->name.($indexint->comment ? " - ".nl2br(htmlentities($indexint->comment,ENT_QUOTES, $charset)) : ""), str_replace("!!id!!", $this->notice->indexint, $this->lien_rech_indexint))." |
" ;
}
//Catégories
if ($this->categories_toutes) $this->notice_public .= "".$msg['categories_start']." | ".$this->categories_toutes." |
";
} elseif($this->notice->typdoc=='6'){
/*
* Bulletin
*/
//Titre du bulletin
if($this->parent_bulletin_title) $this->notice_public .= "".$msg['title']." : | ".$this->parent_bulletin_title." |
";
//type de doc
if ($tdoc->table[$this->notice->typdoc]){
$this->notice_public .= "".$msg['typdocdisplay_start']." | ".$tdoc->table[$this->notice->typdoc]." |
";
}
//Mention de date
if($this->parent_date) $this->notice_public .= "".$msg['bull_mention_date']." | ".$this->parent_date." |
";
//Numéro du bulletin
if($this->parent_numero) $this->notice_public .= "".$msg['bull_numero_start']." | ".$this->parent_numero." |
";
//Pagination
if($this->notice->npages) $this->notice_public .= "".$msg['npages_start']." | ".$this->notice->npages." |
";
} else {
/*
* Default
*/
//Titre
$this->notice_public .= "".$msg['title']." : | ";
$this->notice_public .= "".$this->notice->tit1."" ;
$this->notice_public .= " |
";
// constitution de la mention de titre
if ($this->notice->serie_name) {
$this->notice_public .= "".$msg['tparent_start']." | ".inslink($this->notice->serie_name, str_replace("!!id!!", $this->notice->tparent_id, $this->lien_rech_serie));
$this->notice_public .=" |
";
}
//Partie
if ($this->notice->tnvol) {
$this->notice_public .= "".$msg['tnvol_start']." | ".$this->notice->tnvol;
$this->notice_public .=" |
";
}
//Complément du titre
if ($this->notice->tit4) {
$this->notice_public .= "".$msg['240']." : | ";
$this->notice_public .= "".$this->notice->tit4." |
";
}
//Titre parallèle
if ($this->notice->tit3) $this->notice_public .= "".$msg['other_title_t3']." : | ".$this->notice->tit2." |
" ;
//type de doc
if ($tdoc->table[$this->notice->typdoc]){
$this->notice_public .= "".$msg['typdocdisplay_start']." | ".$tdoc->table[$this->notice->typdoc]." |
";
}
//Auteurs
if ($this->auteurs_tous) $this->notice_public .= "".$msg['auteur_start']." | ".$this->auteurs_tous." |
";
//Congrès
if ($this->congres_tous) $this->notice_public .= "".$msg['congres_aff_public_libelle']." | ".$this->congres_tous." |
";
// mention d'édition
if ($this->notice->mention_edition) $this->notice_public .= "".$msg['mention_edition_start']." | ".$this->notice->mention_edition." |
";
// zone de l'éditeur
if ($this->notice->ed1_id) {
$editeur = new publisher($this->notice->ed1_id);
$this->publishers[]=$editeur;
$this->notice_public .= "".$msg['editeur_start']." | ".($editeur->ville ? $editeur->ville." : " : "").inslink($editeur->name, str_replace("!!id!!", $this->notice->ed1_id, $this->lien_rech_editeur))." |
" ;
}
//Année de publication
if ($this->notice->year) {
$this->notice_public .= "".$msg['year_start']." | ".$this->notice->year." |
" ;
}
//Pagination
if($this->notice->npages) $this->notice_public .= "".$msg['npages_start']." | ".$this->notice->npages." |
";
//Matériel d'accompagnement
if ($this->notice->accomp) $this->notice_public .= "".$msg['accomp_start']." | ".$this->notice->accomp." |
";
//Collection et Sous-collection
if($this->notice->subcoll_id) {
$subcollection = new subcollection($this->notice->subcoll_id);
$collection = new collection($this->notice->coll_id);
$this->collections[]=$collection;
$this->notice_public .= "".$msg['coll_start']." | ".inslink($collection->name, str_replace("!!id!!", $this->notice->coll_id, $this->lien_rech_collection))." |
" ;
$this->notice_public .= "".$msg['subcoll_start']." | ".inslink($subcollection->name, str_replace("!!id!!", $this->notice->subcoll_id, $this->lien_rech_subcollection)) ;
if ($this->notice->nocoll) $this->notice_public .= ", ".$this->notice->nocoll." |
";
} elseif ($this->notice->coll_id) {
$collection = new collection($this->notice->coll_id);
$this->collections[]=$collection;
$this->notice_public .= "".$msg['coll_start']." | ".inslink($collection->name, str_replace("!!id!!", $this->notice->coll_id, $this->lien_rech_collection)) ;
if ($this->notice->nocoll) $this->notice_public .= ", ".$this->notice->nocoll." |
";
}
//ISBN ou NO. commercial
if ($this->notice->code) $this->notice_public .= "".$msg['code_start']." | ".$this->notice->code." |
";
//Note générale
if ($this->notice->n_gen) $zoneNote = nl2br(htmlentities($this->notice->n_gen,ENT_QUOTES, $charset));
if ($zoneNote) $this->notice_public .= "".$msg['n_gen_start']." | ".$zoneNote." |
";
//Langues
if (count($this->langues)) {
$this->notice_public .= "".$msg['537']." : | ".$this->construit_liste_langues($this->langues);
if (count($this->languesorg)) $this->notice_public .= " ".$msg['711']." : ".$this->construit_liste_langues($this->languesorg);
$this->notice_public.=" |
";
} elseif (count($this->languesorg)) {
$this->notice_public .= "".$msg['711']." : | ".$this->construit_liste_langues($this->languesorg)." |
";
}
//Catégories
if ($this->categories_toutes) $this->notice_public .= "".$msg['categories_start']." | ".$this->categories_toutes." |
";
//Indexation décimale
if($this->notice->indexint) {
$indexint = new indexint($this->notice->indexint);
$this->notice_public .= "".$msg['indexint_start']." | ".inslink($indexint->name.($indexint->comment ? " - ".nl2br(htmlentities($indexint->comment,ENT_QUOTES, $charset)) : ""), str_replace("!!id!!", $this->notice->indexint, $this->lien_rech_indexint))." |
" ;
}
//URL associée
if ($this->notice->lien) {
$ret .= $this->get_line_aff_suite($msg['lien_start'], $this->get_constructed_external_url(), 'lien');
if ($this->notice->eformat && substr($this->notice->eformat,0,3)!='RSS') $ret.="".$msg["eformat_start"]." | ".htmlentities($this->notice->eformat,ENT_QUOTES,$charset)." |
";
}
if ($this->notice->typdoc=='j') {
//Champs perso - Lieu de la soutenance
$perso_aff_1 = "" ;
if (!$this->p_perso->no_special_fields) {
// $this->memo_perso_ permet aux affichages personnalisés dans notice_affichage_ext de gagner du temps
if(!$this->memo_perso_) $this->memo_perso_=$this->p_perso->show_fields($this->notice_id);
for ($i=0; $imemo_perso_["FIELDS"]); $i++) {
$p=$this->memo_perso_["FIELDS"][$i];
if (/*$p['OPAC_SHOW'] && */$p["AFF"]) {
if ($p['NAME']=='cp_lieusout') {
$perso_aff_1 .="".strip_tags($p["TITRE"])." | ".$p["AFF"]." |
";
}
}
}
}
$this->notice_public .= $perso_aff_1;
}
}
//statut de notice en commande
if ($this->notice->statut == 3) {
$this->notice_public .= "".$msg['statut_start']." |
".$this->statut_notice." |
";
}
// Permalink avec Id
if ($opac_permalink) {
if($this->notice->niveau_biblio != "b"){
$this->notice_public .= "".$msg["notice_permalink"]." | ".substr($opac_url_base."index.php?lvl=notice_display&id=".$this->notice_id,0,80)." |
";
}else {
$this->notice_public .= "".$msg["notice_permalink"]." | ".substr($opac_url_base."index.php?lvl=bulletin_display&id=".$this->bulletin_id,0,80)." |
";
}
}
//Identifiant de la notice
$this->notice_public .= "".$msg['notice_id_start']." | ".$this->notice_id." |
";
// if (!$short) $this->notice_public .= $this->aff_suite() ;
// else $this->notice_public.=$this->genere_in_perio();
$this->notice_public.="
\n";
//notice mère
$this->notice_public.=$this->parents;
//etat des collections
if ($this->notice->niveau_biblio=='s' && $this->notice->niveau_hierar==1) $this->notice_public.=$this->affichage_etat_collections();
// exemplaires, résas et compagnie
if ($ex) $this->affichage_resa_expl = $this->aff_resa_expl() ;
return;
} // fin do_public($short=0,$ex=1)
public function affichage_etat_collections() {
global $msg;
global $pmb_etat_collections_localise;
global $tpl_collstate_liste,$tpl_collstate_liste_line;
$tpl_collstate_liste[2]="
".$msg["collstate_form_emplacement"]." |
".$msg["collstate_form_support"]." |
".$msg["collstate_form_statut"]." |
".$msg["collstate_form_collections"]." |
".$msg["collstate_form_lacune"]." |
!!collstate_liste!!
";
$tpl_collstate_liste_line[2]="
!!emplacement_libelle!! |
!!type_libelle!! |
!!statut_libelle!! |
!!state_collections!! |
!!lacune!! |
";
$tpl_collstate_liste[3]="
".$msg["collstate_form_localisation"]." |
".$msg["collstate_form_emplacement"]." |
".$msg["collstate_form_support"]." |
".$msg["collstate_form_statut"]." |
".$msg["collstate_form_collections"]." |
".$msg["collstate_form_lacune"]." |
!!collstate_liste!!
";
$tpl_collstate_surloc_liste = "".$msg["collstate_form_surloc"]." | ";
$tpl_collstate_liste_line[3]="
!!localisation!! |
!!emplacement_libelle!! |
!!type_libelle!! |
!!statut_libelle!! |
!!state_collections!! |
!!lacune!! |
";
$collstate=new collstate(0,$this->notice_id);
if($pmb_etat_collections_localise) {
$collstate->get_display_list("",0,0,0,3);
} else {
$collstate->get_display_list("",0,0,0,2);
}
if($collstate->nbr) {
$affichage.= "".$msg["perio_etat_coll"]."
";
$affichage.=$collstate->liste;
}
return $affichage;
} // fin affichage_etat_collections()
public function aff_suite() {
//
}
// Construction des parents-----------------------------------------------------
public function do_parents() {
global $dbh;
global $msg;
global $charset;
global $memo_notice;
global $opac_notice_affichage_class;
global $parent_notice;
$this->parents = "";
$this->parents_in = '';
$this->parents_in_cote = '';
$r_type=array();
$ul_opened=false;
if($this->notice_relations->get_nb_parents()) {
$this->parents .= "";
$parents = $this->notice_relations->get_parents();
foreach ($parents as $relation_type=>$parents_relations) {
foreach ($parents_relations as $parent) {
if ($opac_notice_affichage_class) $notice_affichage=$opac_notice_affichage_class; else $notice_affichage="notice_affichage";
if(!$memo_notice[$parent->get_linked_notice()]["header_without_doclink"]) {
$parent_notice=new $notice_affichage($parent->get_linked_notice(),$this->liens,1,$this->to_print,1);
$parent_notice->visu_expl = 0 ;
$parent_notice->visu_explnum = 0 ;
if ($this->parents_header_without_html) {
$parent_notice->do_header_without_html();
} else {
$parent_notice->do_header();
}
}
//Présentation différente si il y en a un ou plusieurs
if (count($this->notice_relations->get_nb_parents())==1) {
// si une seule, peut-être est-ce une notice de bulletin, aller cherche $this->bulletin_id
$rqbull="select bulletin_id from bulletins where num_notice=".$this->notice_id;
$rqbullr=pmb_mysql_query($rqbull);
if ($rqbullr) {
if (pmb_mysql_num_rows($rqbullr)) {
$rqbulld=@pmb_mysql_fetch_object($rqbullr);
$this->bulletin_id=$rqbulld->bulletin_id;
}
}
}
if (!$r_type[$relation_type]) {
$r_type[$relation_type]=1;
if ($ul_opened) $this->parents.="";
else {
// $this->parents.="
";
$ul_opened=true;
}
$this->parents.="
".notice_relations::$liste_type_relation['up']->table[$relation_type]."";
$this->parents.="
\n";
}
$html_icon = $this->get_icon_html($parent_notice->notice->niveau_biblio, $parent_notice->notice->typdoc);
$this->parents.="
\n";
$this->parents.="
\n";
if(notice_relations::$liste_type_relation['up']->table[$relation_type]== "in"){
$this->parents_in.="
".notice_relations::$liste_type_relation['up']->table[$relation_type]." ";
if ($this->lien_rech_notice) $this->parents_in.="
";
$this->parents_in.= "".$parent_notice->notice->tit1."";
if ($this->lien_rech_notice) $this->parents_in.="";
//Année édition
if ($parent_notice->notice->year) {
$this->parents_in .= ", ".$parent_notice->notice->year;
}
//Cote
$req='SELECT expl_cote FROM exemplaires WHERE expl_notice='.$parent->get_linked_notice().' LIMIT 1';
$res = pmb_mysql_query($req);
$tmp_notice_header = "";
if ($res) {
if(pmb_mysql_num_rows($res)){
$this->parents_in_cote .= "
".$msg['cote_start']."
".pmb_mysql_result($res,0,0)."";
}
}
}
}
}
$this->parents .= "
";
}
} // fin do_parents()
public function get_display_author_name($author_name='', $author_rejete='') {
if ($author_rejete) $display = $author_name.", ".$author_rejete;
else $display = $author_name;
return $display;
}
protected function genere_childs_relation($relation_type, $child_notices) {
global $msg;
global $memo_notice;
$notice_childs = "".$relation_type."";
if (!$this->seule) {
$notice_childs .= "";
}
foreach ($child_notices as $i=>$child_data) {
if(($i<20) || $this->seule) {
$html_icon = $this->get_icon_html($memo_notice[$child_data['linked_notice']]["niveau_biblio"], $memo_notice[$child_data['linked_notice']]["typdoc"]);
$notice_childs .= "
";
} else {
break;
}
}
if ((count($child_notices)>20) && (!$this->seule)) {
$notice_childs .= $this->link_see_more(count($child_notices));
}
if (!$this->seule) {
$notice_childs.="
";
}
return $notice_childs;
}
// récupération des info de bulletinage (si applicable)
public function get_bul_info() {
global $dbh;
global $msg;
if ($this->notice->niveau_biblio == 'a') {
// récupération des données du bulletin et de la notice apparentée
$requete = "SELECT b.tit1,b.tit4,b.notice_id,a.*,c.*, date_format(date_date, '".$msg["format_date"]."') as aff_date_date ";
$requete .= "from analysis a, notices b, bulletins c";
$requete .= " WHERE a.analysis_notice=".$this->notice_id;
$requete .= " AND c.bulletin_id=a.analysis_bulletin";
$requete .= " AND c.bulletin_notice=b.notice_id";
$requete .= " LIMIT 1";
} elseif ($this->notice->niveau_biblio == 'b') {
// récupération des données du bulletin et de la notice apparentée
$requete = "SELECT tit1,tit4,notice_id,b.*, date_format(date_date, '".$msg["format_date"]."') as aff_date_date ";
$requete .= "from bulletins b, notices";
$requete .= " WHERE num_notice=$this->notice_id ";
$requete .= " AND bulletin_notice=notice_id ";
$requete .= " LIMIT 1";
}
$myQuery = pmb_mysql_query($requete, $dbh);
if (pmb_mysql_num_rows($myQuery)) {
$parent = pmb_mysql_fetch_object($myQuery);
$this->parent_title = $parent->tit1;
$this->parent_title_4 = $parent->tit4;
$this->parent_id = $parent->notice_id;
$this->bulletin_id = $parent->bulletin_id;
$this->parent_numero = $parent->bulletin_numero;
$this->parent_date = $parent->mention_date;
$this->parent_date_date = $parent->date_date;
$this->parent_aff_date_date = $parent->aff_date_date;
$this->parent_bulletin_title = $parent->bulletin_titre;
}
} // fin get_bul_info()
}// fin class notice_affichage_cconstitutionnel
?>