typdoc; $bl=$rn->niveau_biblio; $hl=$rn->niveau_hierar; $notice.="\n"; $notice.=" n\n"; $notice.="
".$dt."
\n"; $notice.=" ".$bl."\n"; $notice.=" ".$hl."\n"; $notice.=" 1\n"; $notice.=" i\n"; //ISBN if ($rn->code!='') { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->code,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } //Langage $rqttmp_lang = "select type_langue,code_langue from notices_langues where num_notice='$id' order by ordre_langue "; $restmp_lang = mysql_query($rqttmp_lang); if(mysql_num_rows($restmp_lang)) { $ind="0 "; $notice_langue_temp=""; while (($tmp_lang = mysql_fetch_object($restmp_lang))) { if($tmp_lang->type_langue) { $ind="1 "; $notice_langue_temp.=" ".htmlspecialchars($tmp_lang->code_langue,ENT_QUOTES,$charset)."\n"; } else { $notice_langue_temp.=" ".htmlspecialchars($tmp_lang->code_langue,ENT_QUOTES,$charset)."\n"; } } $notice.=" \n"; $notice.=$notice_langue_temp; $notice.=" \n"; } //Titre if ($rn->tit1!='') { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->tit1,ENT_QUOTES,$charset)."\n"; if ($rn->tit2!='') { $notice.=" ".htmlspecialchars($rn->tit2,ENT_QUOTES,$charset)."\n"; } if ($rn->tit3!='') { $notice.=" ".htmlspecialchars($rn->tit3,ENT_QUOTES,$charset)."\n"; } if ($rn->tit4!='') { $notice.=" ".htmlspecialchars($rn->tit4,ENT_QUOTES,$charset)."\n"; } $notice.=" \n"; } //Mention d'édition if ($rn->mention_edition) { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->mention_edition,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } //Editeurs if ($rn->ed1_id) { $requete="select * from publishers where ed_id=".$rn->ed1_id; $resultat=mysql_query($requete); $red=mysql_fetch_object($resultat); $notice.=" \n"; $notice.=" ".htmlspecialchars($red->ed_name,ENT_QUOTES,$charset)."\n"; if ($red->ed_ville!='') $notice.=" ".htmlspecialchars($red->ed_ville,ENT_QUOTES,$charset)."\n"; if ($rn->year!='') $notice.=" ".htmlspecialchars($rn->year,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } if ($rn->ed2_id) { $requete="select * from publishers where ed_id=".$rn->ed2_id; $resultat=mysql_query($requete); $red=mysql_fetch_object($resultat); $notice.=" \n"; $notice.=" ".htmlspecialchars($red->ed_name,ENT_QUOTES,$charset)."\n"; if ($red->ed_ville!='') $notice.=" ".htmlspecialchars($red->ed_ville,ENT_QUOTES,$charset)."\n"; if ($rn->year!='') $notice.=" ".htmlspecialchars($rn->year,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } //Collation if ($rn->npages || $rn->ill || $rn->size || $rn->accomp) { $notice.=" \n"; if ($rn->npages) $notice.=" ".htmlspecialchars($rn->npages,ENT_QUOTES,$charset)."\n"; if ($rn->ill) $notice.=" ".htmlspecialchars($rn->ill,ENT_QUOTES,$charset)."\n"; if ($rn->size) $notice.=" ".htmlspecialchars($rn->size,ENT_QUOTES,$charset)."\n"; if ($rn->accomp) $notice.=" ".htmlspecialchars($rn->accomp,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } //Collection if ($rn->coll_id) { $requete="select * from collections where collection_id=".$rn->coll_id; $resultat=mysql_query($requete); if (($col = mysql_fetch_object($resultat))) { $notice.=" \n"; $notice.=" ".htmlspecialchars($col->collection_name,ENT_QUOTES,$charset)."\n"; if ($rn->nocoll!='') $notice.=" ".htmlspecialchars($rn->nocoll,ENT_QUOTES,$charset)."\n"; if ($col->collection_issn!='') $notice.=" ".htmlspecialchars($col->collection_issn,ENT_QUOTES,$charset)."\n"; } //sous-collection if ($rn->subcoll_id){ $requete="select * from sub_collections where sub_coll_id=".$rn->subcoll_id; $resultat=mysql_query($requete); if (($subcol = mysql_fetch_object($resultat))) { $notice.=" ".htmlspecialchars($subcol->sub_coll_name,ENT_QUOTES,$charset)."\n"; } } $notice.=" \n"; } //Notes //Générale if ($rn->n_gen) { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->n_gen,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } //de contenu if ($rn->n_contenu) { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->n_contenu,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } //Résumé if ($rn->n_resume) { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->n_resume,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } //Titre de série $serie=""; if ($rn->tparent_id!=0 || $rn->tnvol!='') { $requete="select serie_name from series where serie_id=".$rn->tparent_id; $resultat=mysql_query($requete); if (mysql_num_rows($resultat)) $serie=mysql_result($resultat,0,0); $notice.=" \n"; if ($serie!='') $notice.=" ".htmlspecialchars($serie,ENT_QUOTES,$charset)."\n"; if ($rn->tnvol) $notice.=" ".htmlspecialchars($rn->tnvol,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } if($bl=='a') { //liens vers les périodiques et bulletins pour les notices d'article $req_link = "SELECT notice_id, tit1, code "; $req_link.= "bulletin_id, bulletin_numero, date_date, mention_date, bulletin_titre, bulletin_numero "; $req_link.= "from analysis,bulletins,notices WHERE analysis_notice=".$id." and bulletin_id=analysis_bulletin and bulletin_notice=notice_id "; $result_link=mysql_query($req_link); if (mysql_num_rows($result_link)) { $row=mysql_fetch_object($result_link); $notice.=" \n"; $notice.=" ".htmlspecialchars($row->tit1,ENT_QUOTES,$charset)."\n"; $notice.=" lnk:perio\n"; $notice.=" \n"; $notice.=" \n"; $notice.=" ".htmlspecialchars(formatdate($row->date_date),ENT_QUOTES,$charset)."\n"; if($row->mention_date) $notice.=" ".htmlspecialchars($row->mention_date,ENT_QUOTES,$charset)."\n"; $notice.=" ".htmlspecialchars($row->bulletin_numero,ENT_QUOTES,$charset)."\n"; if($row->bulletin_titre!='') $notice.=" ".htmlspecialchars($row->bulletin_titre,ENT_QUOTES,$charset)."\n"; $notice.=" lnk:bull\n"; $notice.=" \n"; } } //Descripteurs $requete="SELECT libelle_categorie FROM categories, notices_categories WHERE notcateg_notice=".$id." and categories.num_noeud = notices_categories.num_noeud ORDER BY ordre_categorie"; $resultat=mysql_query($requete); if (mysql_num_rows($resultat)) { while (($row=mysql_fetch_object($resultat))) { $notice.=" \n"; $notice.=" ".htmlspecialchars($row->libelle_categorie,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } } //Auteurs //Recherche des auteurs; $requete = "select author_type, author_name, author_rejete, author_date, responsability_fonction, responsability_type ,author_subdivision, author_lieu,author_ville, author_pays,author_numero,author_web from authors, responsability where responsability_notice=".$id." and responsability_author=author_id"; $resultat = mysql_query($requete); while (($auth=mysql_fetch_object($resultat))) { //Si c'est un 70 (individuel) alors on l'exporte if ($auth->author_type == "70") { // Personne physique $notice.=" \n"; $notice.=" ".htmlspecialchars($auth->author_name,ENT_QUOTES,$charset)."\n"; if ($auth->author_rejete!='') $notice.=" ".htmlspecialchars($auth->author_rejete,ENT_QUOTES,$charset)."\n"; if ($auth->responsability_fonction!='') $notice.=" ".$auth->responsability_fonction."\n"; if ($auth->author_date!="") $notice.=" ".htmlspecialchars($auth->author_date,ENT_QUOTES,$charset)."\n"; if ($auth->author_web!='') $notice.=" ".htmlspecialchars($auth->author_web,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } elseif (($auth->author_type == "71") || ($auth->author_type == "72")) { //Collectivité $notice.=" \n"; } elseif ($auth->author_type == "72") { $notice.="' ind='12'>\n"; } $notice.=" ".htmlspecialchars($auth->author_name,ENT_QUOTES,$charset)."\n"; if ($auth->author_subdivision!='') $notice.=" ".htmlspecialchars($auth->author_subdivision,ENT_QUOTES,$charset)."\n"; if ($auth->author_rejete!='') $notice.=" ".htmlspecialchars($auth->author_rejete,ENT_QUOTES,$charset)."\n"; if ($auth->author_numero!='') $notice.=" ".htmlspecialchars($auth->author_numero,ENT_QUOTES,$charset)."\n"; if ($auth->responsability_fonction!='') $notice.=" ".$auth->responsability_fonction."\n"; if ($auth->author_date!="") $notice.=" ".htmlspecialchars($auth->author_date,ENT_QUOTES,$charset)."\n"; $lieu=$auth->author_lieu; if($auth->author_ville) { if($lieu) $lieu.="; "; $lieu.=$auth->author_ville; } if($auth->author_pays) { if($lieu) $lieu.="; "; $lieu.=$auth->author_pays; } if ($lieu!='') $notice.=" ".htmlspecialchars($lieu,ENT_QUOTES,$charset)."\n"; if ($auth->author_lieu!='') $notice.=" ".htmlspecialchars($auth->author_lieu,ENT_QUOTES,$charset)."\n"; if ($auth->author_ville!='') $notice.=" ".htmlspecialchars($auth->author_ville,ENT_QUOTES,$charset)."\n"; if ($auth->author_pays!='') $notice.=" ".htmlspecialchars($auth->author_pays,ENT_QUOTES,$charset)."\n"; if ($auth->author_web!='') $notice.=" ".htmlspecialchars($auth->author_web,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } } //URL if ($rn->lien!='') { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->lien,ENT_QUOTES,$charset)."\n"; if ($rn->eformat!='') $notice.=" ".htmlspecialchars($rn->eformat,ENT_QUOTES,$charset)."\n"; $notice.=" \n"; } //Champs perso de notice traite par la table notice_custom $mes_pp= new parametres_perso("notices"); $mes_pp->get_values($id); $values = $mes_pp->values; foreach ( $values as $field_id => $vals ) { if($mes_pp->t_fields[$field_id]["EXPORT"]) { //champ exportable foreach ( $vals as $value ) { if ($value) { $notice.=" \n"; $notice.=" ".htmlspecialchars($mes_pp->get_formatted_output(array($value),$field_id),ENT_QUOTES,$charset)."\n"; $notice.=" ".htmlspecialchars($mes_pp->t_fields[$field_id]["TITRE"],ENT_QUOTES,$charset)."\n"; $notice.=" ".htmlspecialchars($mes_pp->t_fields[$field_id]["NAME"],ENT_QUOTES,$charset)."\n"; $notice.=" \n";; } } } } $notice.="
\n"; return $notice; } ?>