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)."\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)."\n"; } else { $notice_langue_temp.=" ".htmlspecialchars($tmp_lang->code_langue)."\n"; } } $notice.=" \n"; $notice.=$notice_langue_temp; $notice.=" \n"; } //Titre if ($rn->tit1!='') { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->tit1)."\n"; if ($rn->tit2!='') { $notice.=" ".htmlspecialchars($rn->tit2)."\n"; } if ($rn->tit3!='') { $notice.=" ".htmlspecialchars($rn->tit3)."\n"; } if ($rn->tit4!='') { $notice.=" ".htmlspecialchars($rn->tit4)."\n"; } $notice.=" \n"; } //Mention d'édition if ($rn->mention_edition) { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->mention_edition)."\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)."\n"; if ($red->ed_ville!='') $notice.=" ".htmlspecialchars($red->ed_ville)."\n"; if ($rn->year!='') $notice.=" ".htmlspecialchars($rn->year)."\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)."\n"; if ($red->ed_ville!='') $notice.=" ".htmlspecialchars($red->ed_ville)."\n"; if ($rn->year!='') $notice.=" ".htmlspecialchars($rn->year)."\n"; $notice.=" \n"; } //Collation if ($rn->npages || $rn->ill || $rn->size || $rn->accomp) { $notice.=" \n"; if ($rn->npages) $notice.=" ".htmlspecialchars($rn->npages)."\n"; if ($rn->ill) $notice.=" ".htmlspecialchars($rn->ill)."\n"; if ($rn->size) $notice.=" ".htmlspecialchars($rn->size)."\n"; if ($rn->accomp) $notice.=" ".htmlspecialchars($rn->accomp)."\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)."\n"; if ($rn->nocoll!='') $notice.=" ".htmlspecialchars($rn->nocoll)."\n"; if ($col->collection_issn!='') $notice.=" ".htmlspecialchars($col->collection_issn)."\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)."\n"; } } $notice.=" \n"; } //Notes //Générale if ($rn->n_gen) { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->n_gen)."\n"; $notice.=" \n"; } //de contenu if ($rn->n_contenu) { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->n_contenu)."\n"; $notice.=" \n"; } //Résumé if ($rn->n_resume) { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->n_resume)."\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)."\n"; if ($rn->tnvol) $notice.=" ".htmlspecialchars($rn->tnvol)."\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)."\n"; $notice.=" lnk:perio\n"; $notice.=" \n"; $notice.=" \n"; $notice.=" ".htmlspecialchars(formatdate($row->date_date))."\n"; if($row->mention_date) $notice.=" ".htmlspecialchars($row->mention_date)."\n"; $notice.=" ".htmlspecialchars($row->bulletin_numero)."\n"; if($row->bulletin_titre!='') $notice.=" ".htmlspecialchars($row->bulletin_titre)."\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)."\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)."\n"; if ($auth->author_rejete!='') $notice.=" ".htmlspecialchars($auth->author_rejete)."\n"; if ($auth->responsability_fonction!='') $notice.=" ".$auth->responsability_fonction."\n"; if ($auth->author_date!="") $notice.=" ".htmlspecialchars($auth->author_date)."\n"; if ($auth->author_web!='') $notice.=" ".htmlspecialchars($auth->author_web)."\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)."\n"; if ($auth->author_subdivision!='') $notice.=" ".htmlspecialchars($auth->author_subdivision)."\n"; if ($auth->author_rejete!='') $notice.=" ".htmlspecialchars($auth->author_rejete)."\n"; if ($auth->author_numero!='') $notice.=" ".htmlspecialchars($auth->author_numero)."\n"; if ($auth->responsability_fonction!='') $notice.=" ".$auth->responsability_fonction."\n"; if ($auth->author_date!="") $notice.=" ".htmlspecialchars($auth->author_date)."\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)."\n"; if ($auth->author_lieu!='') $notice.=" ".htmlspecialchars($auth->author_lieu)."\n"; if ($auth->author_ville!='') $notice.=" ".htmlspecialchars($auth->author_ville)."\n"; if ($auth->author_pays!='') $notice.=" ".htmlspecialchars($auth->author_pays)."\n"; if ($auth->author_web!='') $notice.=" ".htmlspecialchars($auth->author_web)."\n"; $notice.=" \n"; } } //URL if ($rn->lien!='') { $notice.=" \n"; $notice.=" ".htmlspecialchars($rn->lien)."\n"; if ($rn->eformat!='') $notice.=" ".htmlspecialchars($rn->eformat)."\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))."\n"; $notice.=" ".htmlspecialchars($mes_pp->t_fields[$field_id]["TITRE"])."\n"; $notice.=" ".htmlspecialchars($mes_pp->t_fields[$field_id]["NAME"])."\n"; $notice.=" \n";; } } } } $notice.="
\n"; return $notice; } ?>