Subversion Repositories eFlore/Applications.bibliobota

Rev

Rev 26 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26 Rev 27
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 5.1.1                                                                                    |
4
// | PHP version 5.1.1                                                                                    |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2006 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2006 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of eFlore.                                                                         |
8
// | This file is part of eFlore.                                                                         |
9
// |                                                                                                      |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
11
// | it under the terms of the GNU General Public License as published by                                 |
11
// | it under the terms of the GNU General Public License as published by                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id$
24
// CVS : $Id$
25
/**
25
/**
26
* Titre
26
* Titre
27
*
27
*
28
* Description
28
* Description
29
*
29
*
30
*@package eFlore
30
*@package eFlore
31
*@subpackage ef_fiche
31
*@subpackage ef_fiche
32
//Auteur original :
32
//Auteur original :
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
34
//Autres auteurs :
34
//Autres auteurs :
35
*@author        aucun
35
*@author        aucun
36
*@copyright     Tela-Botanica 2000-2006
36
*@copyright     Tela-Botanica 2000-2006
37
*@version       $Revision$ $Date$
37
*@version       $Revision$ $Date$
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
*/
39
*/
40
 
40
 
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
42
// |                                            ENTETE du PROGRAMME                                       |
42
// |                                            ENTETE du PROGRAMME                                       |
43
// +------------------------------------------------------------------------------------------------------+
43
// +------------------------------------------------------------------------------------------------------+
44
/** Inclusion du fichier de configuration de l'application Revue. */
44
/** Inclusion du fichier de configuration de l'application Revue. */
45
//require_once BB_CHEMIN_APPLI.'bb_revue/configuration/bbre_config.inc.php';
45
//require_once BB_CHEMIN_APPLI.'bb_revue/configuration/bbre_config.inc.php';
46
 
46
 
47
// +------------------------------------------------------------------------------------------------------+
47
// +------------------------------------------------------------------------------------------------------+
48
// |                                            CORPS du PROGRAMME                                        |
48
// |                                            CORPS du PROGRAMME                                        |
49
// +------------------------------------------------------------------------------------------------------+
49
// +------------------------------------------------------------------------------------------------------+
50
// Initialisation de la variable à retourner
50
// Initialisation de la variable à retourner
51
$retour = '';
51
$retour = '';
52
$retour .= '<!-- BiblioBota - Revue : DEBUT -->'."\n";
52
$retour .= '<!-- BiblioBota - Revue : DEBUT -->'."\n";
53
$retour .= '<div id="biblio_revue">';
53
$retour .= '<div id="biblio_revue">';
54
 
54
 
55
$aso_revues = array();
55
$aso_revues = array();
56
$query =    'SELECT '.$GLOBALS['tbl']['collection'].'.* '.
56
$query =    'SELECT '.$GLOBALS['tbl']['collection'].'.* '.
57
            'FROM '.$GLOBALS['tbl']['collection'].' '.
57
            'FROM '.$GLOBALS['tbl']['collection'].' '.
58
            'WHERE B_C_CACHER = 0 '.
58
            'WHERE B_C_CACHER = 0 '.
59
            'ORDER BY B_C_NOMCOMPLET ';
59
            'ORDER BY B_C_NOMCOMPLET ';
60
$do_query = mysql_query($query) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query));
60
$do_query = mysql_query($query) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query));
61
$nbre_revues_total = mysql_num_rows($do_query);
61
$nbre_revues_total = mysql_num_rows($do_query);
62
$nbre_revues_avec_article = 0;
62
$nbre_revues_avec_article = 0;
63
 
63
 
64
if ($nbre_revues_total == 0) {
64
if ($nbre_revues_total == 0) {
65
	// Titre de la page
65
	// Titre de la page
66
	$retour .= '<h1>'.'Revues indexées dans la base de données du projet BiblioBota.'.'</h1>';
66
	$retour .= '<h1>'.'Revues indexées dans la base de données du projet BiblioBota.'.'</h1>';
67
	$retour .= '<p>'.'Pas encore de revues indexées...'.'</p>'."\n";
67
	$retour .= '<p>'.'Pas encore de revues indexées...'.'</p>'."\n";
68
} else {
68
} else {
69
	while ($row = mysql_fetch_object($do_query)) {
69
	while ($row = mysql_fetch_object($do_query)) {
70
		$aso_revue = array();
70
		$aso_revue = array();
71
        $aso_revue['id'] = $row->B_C_CRAI;
71
        $aso_revue['id'] = $row->B_C_CRAI;
72
        $aso_revue['idlink'] = $row->B_C_LKSTR;
72
        $aso_revue['idlink'] = $row->B_C_LKSTR;
73
        $aso_revue['nom_complet'] = $row->B_C_NOMCOMPLET;
73
        $aso_revue['nom_complet'] = $row->B_C_NOMCOMPLET;
74
        $aso_revue['abreviation'] = $row->B_C_ABREGE;
74
        $aso_revue['abreviation'] = $row->B_C_ABREGE;
75
        $aso_revue['date_debut'] = $row->B_C_DATECREATION;
75
        $aso_revue['date_debut'] = $row->B_C_DATECREATION;
76
        $aso_revue['suite_de'] = $row->B_C_FAISUITE;
76
        $aso_revue['suite_de'] = $row->B_C_FAISUITE;
77
        $aso_revue['date_fin'] = $row->B_C_DATEFIN;
77
        $aso_revue['date_fin'] = $row->B_C_DATEFIN;
78
        $aso_revue['periodicite'] = $row->B_C_PERIODICITE;
78
        $aso_revue['periodicite'] = $row->B_C_PERIODICITE;
79
        $aso_revue['contact_nom'] = $row->B_C_CONTACTNOM;
79
        $aso_revue['contact_nom'] = $row->B_C_CONTACTNOM;
80
        $aso_revue['contact_mail'] = $row->B_C_CONTACTMAIL;
80
        $aso_revue['contact_mail'] = $row->B_C_CONTACTMAIL;
81
        $aso_revue['logo'] = $row->B_C_IMAGE;
81
        $aso_revue['logo'] = $row->B_C_IMAGE;
82
        $aso_revue['commentaires'] = $row->B_C_COMMENT;
82
        $aso_revue['commentaires'] = $row->B_C_COMMENT;
83
        $aso_revue['date_maj'] = $row->B_C_MAJFICHE;
83
        $aso_revue['date_maj'] = $row->B_C_MAJFICHE;
84
		$aso_revue['fasc_nbre'] = 0;
84
		$aso_revue['fasc_nbre'] = 0;
85
		$aso_revue['fasc_date_premier'] = '';
85
		$aso_revue['fasc_date_premier'] = '';
86
		$aso_revue['fasc_date_dernier'] = '';
86
		$aso_revue['fasc_date_dernier'] = '';
87
		$aso_revue['fasc_maj_dernier'] = '';
87
		$aso_revue['fasc_maj_dernier'] = '';
88
		$aso_revue['fasc_nom_dernier'] = '';
88
		$aso_revue['fasc_nom_dernier'] = '';
89
		
89
		
90
		// Construction de l'url de la page contenant les info sur l'organisme:
90
		// Construction de l'url de la page contenant les info sur l'organisme:
91
		$Url = clone $GLOBALS['_BIBLIOBOTA_']['url'];
91
		$Url = clone $GLOBALS['_BIBLIOBOTA_']['url'];
92
		$Url->setId(BB_URL_APPLI_ORGA_ID);
92
		$Url->setId(BB_URL_APPLI_ORGA_ID);
93
		$Url->addQueryString('appli', 'bb_consultation');
93
		$Url->addQueryString('appli', 'bb_consultation');
94
		$Url->addQueryString('consultation', 'avancee');
94
		$Url->addQueryString('consultation', 'avancee');
95
		$Url->addQueryString('coll', $aso_revue['idlink']);
95
		$Url->addQueryString('coll', $aso_revue['idlink']);
96
		$aso_revue['url'] = $Url->getUrl();
96
		$aso_revue['url'] = $Url->getUrl();
97
		
97
		
98
		$aso_fasc_serie = array();
98
		$aso_fasc_serie = array();
99
		$query_fasc =	'SELECT '.$GLOBALS['tbl']['fascicule'].'.* '.
99
		$query_fasc =	'SELECT '.$GLOBALS['tbl']['fascicule'].'.* '.
100
	               		'FROM '.$GLOBALS['tbl']['fascicule'].' '.                		
100
	               		'FROM '.$GLOBALS['tbl']['fascicule'].' '.                		
101
						'WHERE  B_F_CRAICOLL = "'.$row->B_C_CRAI.'" '.
101
						'WHERE  B_F_CRAICOLL = "'.$row->B_C_CRAI.'" '.
102
						'AND B_F_CACHER = 0 '.
102
						'AND B_F_CACHER = 0 '.
103
						'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC';
103
						'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC';
104
		$do_query_fasc = mysql_query($query_fasc) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_fasc));
104
		$do_query_fasc = mysql_query($query_fasc) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_fasc));
-
 
105
		// Initialisation de la date
-
 
106
		$initialiser = true;		
-
 
107
		
105
		while ($row_fasc = mysql_fetch_object($do_query_fasc)) {
108
		while ($row_fasc = mysql_fetch_object($do_query_fasc)) {
106
			if (!isset($aso_fasc_serie[$row_fasc->B_F_CRAISERIE])) {
109
			if (!isset($aso_fasc_serie[$row_fasc->B_F_CRAISERIE])) {
107
				$aso_fasc = array();
110
				$aso_fasc = array();
108
				$aso_fasc['nbre_fasc'] = 1;
111
				$aso_fasc['nbre_fasc'] = 1;
109
				$aso_fasc['nom_serie'] = $row_fasc->B_F_CRAISERIE;
112
				$aso_fasc['nom_serie'] = $row_fasc->B_F_CRAISERIE;
110
				$aso_fasc['nom_fin_serie'] = $row_fasc->B_SER_SOUSTITRE;
113
				$aso_fasc['nom_fin_serie'] = $row_fasc->B_SER_SOUSTITRE;
111
				$aso_fasc['nom_fin_fasc'] = $row_fasc->B_F_TITRE;
114
				$aso_fasc['nom_fin_fasc'] = $row_fasc->B_F_TITRE;
112
				$aso_fasc_serie[$row_fasc->B_F_CRAISERIE] = $aso_fasc;
115
				$aso_fasc_serie[$row_fasc->B_F_CRAISERIE] = $aso_fasc;
113
			} else {
116
			} else {
114
				$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc']++;
117
				$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc']++;
115
			}
118
			}
116
			// Nombre de fascicule dans la collection
119
			// Nombre de fascicule dans la collection
117
			$aso_revue['fasc_nbre']++;
120
			$aso_revue['fasc_nbre']++;
118
			// Calcule de la date du premier fascicule et de la date du dernier
121
			// Calcule de la date du premier fascicule et de la date du dernier
119
			if (preg_match('/^(\d{4})(?:\.(\d{2})|)$/', $row_fasc->B_F_DATE, $match)) {
122
			if (preg_match('/^(\d{4})(?:\.(\d{2})|)$/', $row_fasc->B_F_DATE, $match)) {
120
				if (isset($match[1]) && $match[1] != '') {
123
				if (isset($match[1]) && $match[1] != '') {
121
					$annee = $match[1];
124
					$annee = $match[1];
122
					$mois = '01';
125
					$mois = '00';
123
					if (isset($match[2]) && $match[2] != '') {
126
					if (isset($match[2]) && $match[2] != '') {
124
						$mois = $match[2];
127
						$mois = $match[2];
125
					}
128
					}
126
					$date = $annee.'-'.$mois;
129
					$date = $annee.'-'.$mois;
127
					
130
					
128
					// Initialisation avec une date.
131
					// Initialisation avec une date pour la série courrante
129
					if ($aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc'] == 1) {
-
 
130
						$aso_revue['fasc_date_premier'] = $date;
-
 
131
						$aso_revue['fasc_date_dernier'] = $date;
132
					if ($aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc'] == 1) {
132
						$aso_fasc['date_debut'] = $date;
133
						$aso_fasc['date_debut'] = $date;
133
						$aso_fasc['date_fin'] = $date;
134
						$aso_fasc['date_fin'] = $date;
134
					}
135
					}
-
 
136
					// Initialisation avec une date pour la collection toute série confondue					
-
 
137
					if ($initialiser) {
-
 
138
						$initialiser = false;
-
 
139
						$aso_revue['fasc_date_premier'] = $date;
-
 
140
						$aso_revue['fasc_date_dernier'] = $date;
135
					
141
					}		
136
					// Date premier fascicule dans la série
142
					// Date premier fascicule dans la série
137
					if (strcasecmp($date, $aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_debut']) < 0) {
143
					if (strcasecmp($date, $aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_debut']) < 0) {
138
						$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_debut'] = $date;
144
						$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_debut'] = $date;
139
					}
145
					}
140
					// Date premier fascicule dans la collection
146
					// Date premier fascicule dans la collection
141
					//echo $date.'<'.$aso_revue['fasc_date_premier'].'/'.strcasecmp($date, $aso_revue['fasc_date_premier']).'<br>';
147
					//echo $date.'<'.$aso_revue['fasc_date_premier'].'/'.strcasecmp($date, $aso_revue['fasc_date_premier']).'<br>';
142
					if (strcasecmp($date, $aso_revue['fasc_date_premier']) < 0) {
148
					if (strcasecmp($date, $aso_revue['fasc_date_premier']) < 0) {
143
						//echo $aso_revue['fasc_date_premier'].'<'.$date.'<br>';
149
						//echo $aso_revue['fasc_date_premier'].'<'.$date.'<br>';
144
						$aso_revue['fasc_date_premier'] = $date;
150
						$aso_revue['fasc_date_premier'] = $date;
145
						 
151
						 
146
					}
152
					}
147
					// Date dernier fascicule dans la série
153
					// Date dernier fascicule dans la série
148
					if (strcasecmp($date, $aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_fin']) > 0) {
154
					if (strcasecmp($date, $aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_fin']) > 0) {
149
						$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_fin'] = $date;
155
						$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_fin'] = $date;
150
						$aso_revue['fasc_nom_dernier'] = $row_fasc->B_F_TITRE;
156
						$aso_revue['fasc_nom_dernier'] = $row_fasc->B_F_TITRE;
151
						$aso_revue['fasc_maj_dernier'] = $row_fasc->B_F_MAJFICHE;
157
						$aso_revue['fasc_maj_dernier'] = $row_fasc->B_F_MAJFICHE;
152
					}
158
					}
153
					// Date dernier fascicule dans la collection
159
					// Date dernier fascicule dans la collection
154
					if (strcasecmp($date, $aso_revue['fasc_date_dernier']) > 0) {
160
					if (strcasecmp($date, $aso_revue['fasc_date_dernier']) > 0) {
155
						$aso_revue['fasc_date_dernier'] = $date;
161
						$aso_revue['fasc_date_dernier'] = $date;
156
					}
162
					}
157
				} 
163
				} 
158
				
164
				
159
			}
165
			}
160
		}
166
		}
161
		mysql_free_result($do_query_fasc);
167
		mysql_free_result($do_query_fasc);
162
		ksort($aso_fasc_serie, SORT_DESC);
168
		ksort($aso_fasc_serie, SORT_DESC);
163
		$aso_revue['aso_fasc_serie'] = $aso_fasc_serie;
169
		$aso_revue['aso_fasc_serie'] = $aso_fasc_serie;
164
		
170
		
165
		$query_art =	'SELECT COUNT('.$GLOBALS['tbl']['article'].'.B_A_IDART) AS nbre_article '.
171
		$query_art =	'SELECT COUNT('.$GLOBALS['tbl']['article'].'.B_A_IDART) AS nbre_article '.
166
	               		'FROM '.$GLOBALS['tbl']['article'].' '.		
172
	               		'FROM '.$GLOBALS['tbl']['article'].' '.		
167
						'WHERE B_A_CRAICOLL = "'.$row->B_C_CRAI.'" '.
173
						'WHERE B_A_CRAICOLL = "'.$row->B_C_CRAI.'" '.
168
						'GROUP BY B_A_CRAICOLL';
174
						'GROUP BY B_A_CRAICOLL';
169
		//echo $query_art.'<br/>';
175
		//echo $query_art.'<br/>';
170
		$resultat_art = mysql_query($query_art) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_art));
176
		$resultat_art = mysql_query($query_art) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_art));
171
		$ligne_article = mysql_fetch_assoc($resultat_art);
177
		$ligne_article = mysql_fetch_assoc($resultat_art);
172
		//echo '<pre>'.print_r($ligne_article, true).'</pre>';
178
		//echo '<pre>'.print_r($ligne_article, true).'</pre>';
173
		$aso_revue['nbre_article'] = $ligne_article['nbre_article'];
179
		$aso_revue['nbre_article'] = $ligne_article['nbre_article'];
174
		if ($aso_revue['nbre_article'] != 0) {
180
		if ($aso_revue['nbre_article'] != 0) {
175
			$nbre_revues_avec_article++;
181
			$nbre_revues_avec_article++;
176
		} 
182
		} 
177
		$aso_revues[] = $aso_revue;
183
		$aso_revues[] = $aso_revue;
178
	}
184
	}
179
	mysql_free_result($do_query);
185
	mysql_free_result($do_query);
180
	
186
	
181
	if ($GLOBALS['_GEN_commun']['info_application']->affichage_type == 'tableau') {	
187
	if ($GLOBALS['_GEN_commun']['info_application']->affichage_type == 'tableau') {	
182
		// Titre de la page
188
		// Titre de la page
183
		$retour .= '<h1>'.$nbre_revues_total.' revues indexées'.'</h1>';
189
		$retour .= '<h1>'.$nbre_revues_total.' revues indexées'.'</h1>';
184
		$retour .= 	'<p>'.
190
		$retour .= 	'<p>'.
185
						'Liste de toutes les revues indexées dans la base de données du projet BiblioBota. '.'<br />'.
191
						'Liste de toutes les revues indexées dans la base de données du projet BiblioBota. '.'<br />'.
186
						'Les revues ne possédant pas d\'articles indexés figurent dans ce tableau.'.
192
						'Les revues ne possédant pas d\'articles indexés figurent dans ce tableau.'.
187
					'</p>';
193
					'</p>';
188
		$o = 1;
194
		$o = 1;
189
		$retour .= '<table id="liste_biblio_revue" class="table_bordure" summary="Tableau résumant les informations sur les revues indexées dans la base de données du projet BiblioBota.">'."\n";
195
		$retour .= '<table id="liste_biblio_revue" class="table_bordure" summary="Tableau résumant les informations sur les revues indexées dans la base de données du projet BiblioBota.">'."\n";
190
		$retour .= '<thead><tr>'.
196
		$retour .= '<thead><tr>'.
191
				'<th>Collection</th>'.
197
				'<th>Collection</th>'.
192
				'<th>Date début (collection)</th>'.
198
				'<th>Date début (collection)</th>'.
-
 
199
				'<th>Date début (indexation)</th>'.
193
				'<th>Date fin (collection)</th>'.
200
				'<th>Date fin (collection)</th>'.
-
 
201
				'<th>Date fin (indexation)</th>'.
194
				'<th title="Nombre de fascicules pour la collection, toutes séries confondues">Nombre fascicules</th>'.
202
				'<th title="Nombre de fascicules pour la collection, toutes séries confondues">Nombre fascicules</th>'.
195
				'<th title="Nombre d\'articles pour la collection, toutes séries et fascicules confondues">Nombre d\'articles</th>'.
203
				'<th title="Nombre d\'articles pour la collection, toutes séries et fascicules confondues">Nombre d\'articles</th>'.
196
				'<th>Périodicité</th>'.
204
				'<th>Périodicité</th>'.
197
				'<th>Contact</th>'.
205
				'<th>Contact</th>'.
198
				'<th title="Nom du dernier fascicule indexée dans la dernière série">Dernier fascicule</th>'.
206
				'<th title="Nom du dernier fascicule indexée dans la dernière série">Dernier fascicule</th>'.
199
				'<th title="Date de publication du dernier fascicule indexée dans la dernière série">Date dernier fascicule</th>'.
207
				'<th title="Date de publication du dernier fascicule indexée dans la dernière série">Date dernier fascicule</th>'.
200
				'</tr></thead>'."\n";
208
				'</tr></thead>'."\n";
201
		$retour .= '<tbody>';
209
		$retour .= '<tbody>';
202
		foreach ($aso_revues as $revue) {
210
		foreach ($aso_revues as $revue) {
203
			$retour .= '<tr>';
211
			$retour .= '<tr>';
204
			$retour .= '<th>';
212
			$retour .= '<th>';
205
		    if ($revue['nom_complet'] != '') {
213
		    if ($revue['nom_complet'] != '') {
206
	            $retour .= 	'<h5 class="bbre_titre">'.
214
	            $retour .= 	'<h5 class="bbre_titre">'.
207
	            				'<a href="'.$revue['url'].'">'.
215
	            				'<a href="'.$revue['url'].'">'.
208
	            					$revue['nom_complet'].
216
	            					$revue['nom_complet'].
209
	            				'</a>'.
217
	            				'</a>'.
210
							'</h5>';
218
							'</h5>';
211
	            if ($revue['suite_de'] != '') {
219
	            if ($revue['suite_de'] != '') {
212
					$retour .= '<p><span class="bb_intitule">Fait suite à : </span>'.$revue['suite_de'].'</p>';
220
					$retour .= '<p><span class="bb_intitule">Fait suite à : </span>'.$revue['suite_de'].'</p>';
213
				}
221
				}
214
				if ($revue['abreviation'] != '') {
222
				if ($revue['abreviation'] != '') {
215
					$retour .= '<p><span class="bb_intitule">Abréviation : </span>'.$revue['abreviation'].'</p>';
223
					$retour .= '<p><span class="bb_intitule">Abréviation : </span>'.$revue['abreviation'].'</p>';
216
				}
224
				}
217
	            if ($revue['commentaires'] != '') {
225
	            if ($revue['commentaires'] != '') {
218
	            	$retour .= '<p>'.$revue['commentaires'].'</p>';
226
	            	$retour .= '<p>'.$revue['commentaires'].'</p>';
219
	        	}
227
	        	}
220
	            if ($revue['logo'] != '') {
228
	            if ($revue['logo'] != '') {
221
	            	$retour .= '<img class="bbre_couverture" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$revue['logo'].'" alt="Couverture de la revue '.$revue['nom_complet'].'"/>';
229
	            	$retour .= '<img class="bbre_couverture" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$revue['logo'].'" alt="Couverture de la revue '.$revue['nom_complet'].'"/>';
222
	        	}
230
	        	}
223
	        	$retour .= '<p class="texte_inactif">Id. coll. : '.$revue['id'].' - Mise à jour : '.date('d/m/Y', $revue['date_maj']).'</p>';
231
	        	$retour .= '<p class="texte_inactif">Id. coll. : '.$revue['id'].' - Mise à jour : '.date('d/m/Y', $revue['date_maj']).'</p>';
224
			} else {
232
			} else {
225
				$retour .= '?';
233
				$retour .= '?';
226
			}
234
			}
227
	        $retour .= '</th>';
235
	        $retour .= '</th>';
228
			$retour .= '<td>';
236
			$retour .= '<td>';
229
			if ($revue['date_debut'] != '') {
237
			if ($revue['date_debut'] != '') {
230
				$retour .= $revue['date_debut'];
238
				$retour .= $revue['date_debut'];
231
			} else {
239
			} else {
232
				$retour .= '?';
240
				$retour .= '?';
233
			}
241
			}
234
			$retour .= '</td>';
242
			$retour .= '</td>';
235
			$retour .= '<td>';
243
			$retour .= '<td>';
-
 
244
			if ($revue['fasc_date_premier'] != '') {
-
 
245
				$retour .= donnerDateConviviale($revue['fasc_date_premier']);
-
 
246
			} else {
-
 
247
				$retour .= '?';
-
 
248
			}
-
 
249
			$retour .= '</td>';
-
 
250
			$retour .= '<td>';
236
			if ($revue['date_fin'] != '') {
251
			if ($revue['date_fin'] != '') {
237
				$retour .= $revue['date_fin'];
252
				$retour .= $revue['date_fin'];
238
			} else {
253
			} else {
239
				$retour .= '?';
254
				$retour .= '?';
240
			}
255
			}
241
			$retour .= '</td>';
256
			$retour .= '</td>';
242
			$retour .= '<td>';
257
			$retour .= '<td>';
-
 
258
			if ($revue['fasc_date_dernier'] != '') {
-
 
259
				$retour .= donnerDateConviviale($revue['fasc_date_dernier']);
-
 
260
			} else {
-
 
261
				$retour .= '?';
-
 
262
			}
-
 
263
			$retour .= '</td>';
-
 
264
			$retour .= '<td>';
243
			if ($revue['fasc_nbre'] != '') {
265
			if ($revue['fasc_nbre'] != '') {
244
				$retour .= $revue['fasc_nbre'];
266
				$retour .= $revue['fasc_nbre'];
245
			} else {
267
			} else {
246
				$retour .= 0;
268
				$retour .= 0;
247
			}
269
			}
248
			$retour .= '</td>';
270
			$retour .= '</td>';
249
			$retour .= '<td>';
271
			$retour .= '<td>';
250
			if ($revue['nbre_article'] != '') {
272
			if ($revue['nbre_article'] != '') {
251
				$retour .= $revue['nbre_article'];
273
				$retour .= $revue['nbre_article'];
252
			} else {
274
			} else {
253
				$retour .= 0;
275
				$retour .= 0;
254
			}
276
			}
255
			$retour .= '</td>';
277
			$retour .= '</td>';
256
			$retour .= '<td>';
278
			$retour .= '<td>';
257
			if ($revue['periodicite'] != '') {
279
			if ($revue['periodicite'] != '') {
258
				$retour .= $revue['periodicite'];
280
				$retour .= $revue['periodicite'];
259
			} else {
281
			} else {
260
				$retour .= '?';
282
				$retour .= '?';
261
			}
283
			}
262
			$retour .= '</td>';
284
			$retour .= '</td>';
263
			$retour .= '<td>';
285
			$retour .= '<td>';
264
			if ($revue['contact_nom'] != '') {
286
			if ($revue['contact_nom'] != '') {
265
				if ($contact_mail != '') {
287
				if ($contact_mail != '') {
266
					$retour .= '<a href="mailto:'.$revue['contact_mail'].'">'.$revue['contact_nom'].'</a>';
288
					$retour .= '<a href="mailto:'.$revue['contact_mail'].'">'.$revue['contact_nom'].'</a>';
267
				} else {
289
				} else {
268
					$retour .= $revue['contact_nom'];
290
					$retour .= $revue['contact_nom'];
269
				}
291
				}
270
			} else {
292
			} else {
271
				$retour .= '?';
293
				$retour .= '?';
272
			}
294
			}
273
			$retour .= '</td>';
295
			$retour .= '</td>';
274
			$retour .= '<td>';
296
			$retour .= '<td>';
275
			if ($revue['fasc_nom_dernier'] != '') {
297
			if ($revue['fasc_nom_dernier'] != '') {
276
				$retour .= $revue['fasc_nom_dernier'];
298
				$retour .= $revue['fasc_nom_dernier'];
277
			} else {
299
			} else {
278
				$retour .= '?';
300
				$retour .= '?';
279
			}
301
			}
280
			$retour .= '</td>';
302
			$retour .= '</td>';
281
			$retour .= '<td>';
303
			$retour .= '<td>';
282
			if ($revue['fasc_date_dernier'] != '') {
304
			if ($revue['fasc_date_dernier'] != '') {
283
				$retour .= '<p>'.donnerDateConviviale($revue['fasc_date_dernier']).'</p>';
305
				$retour .= '<p>'.donnerDateConviviale($revue['fasc_date_dernier']).'</p>';
284
				$retour .= '<p class="texte_inactif">Mise à jour : '.date('d/m/Y', $revue['fasc_maj_dernier']).'</p>';
306
				$retour .= '<p class="texte_inactif">Mise à jour : '.date('d/m/Y', $revue['fasc_maj_dernier']).'</p>';
285
				
307
				
286
			} else {
308
			} else {
287
				$retour .= '?';
309
				$retour .= '?';
288
			}
310
			}
289
			$retour .= '</td>';
311
			$retour .= '</td>';
290
			$retour .= '</tr>'."\n";
312
			$retour .= '</tr>'."\n";
291
	        $o++;
313
	        $o++;
292
		}
314
		}
293
		$retour .= '</tbody>'."\n";
315
		$retour .= '</tbody>'."\n";
294
		$retour .= '</table>'."\n";
316
		$retour .= '</table>'."\n";
295
	} else {
317
	} else {
296
		// Titre de la page
318
		// Titre de la page
297
		$retour .= '<h1>'.$nbre_revues_avec_article.' revues indexées'.'</h1>';
319
		$retour .= '<h1>'.$nbre_revues_avec_article.' revues indexées'.'</h1>';
298
		$retour .= '<p>'.'Liste des revues possédant des articles indexés dans la base de données du projet BiblioBota.'.'</p>';
320
		$retour .= '<p>'.'Liste des revues possédant des articles indexés dans la base de données du projet BiblioBota.'.'</p>';
299
		$o = 1;
321
		$o = 1;
300
		$retour .= '<ul id="liste_biblio_revue">'."\n";
322
		$retour .= '<ul id="liste_biblio_revue">'."\n";
301
		$nbre_revue_sans_article = 0;
323
		$nbre_revue_sans_article = 0;
302
		foreach ($aso_revues as $revue) {
324
		foreach ($aso_revues as $revue) {
303
			if ($revue['nbre_article'] != '' && $revue['nbre_article'] > 0) {
325
			if ($revue['nbre_article'] != '' && $revue['nbre_article'] > 0) {
304
				$retour .= '<li>';
326
				$retour .= '<li>';
305
				if ($revue['nom_complet'] != '') {
327
				if ($revue['nom_complet'] != '') {
306
		            $retour .= 	'<h5 class="bbre_titre">'.
328
		            $retour .= 	'<h5 class="bbre_titre">'.
307
		            				'<a href="'.$revue['url'].'">'.
329
		            				'<a href="'.$revue['url'].'">'.
308
		            					$revue['nom_complet'].
330
		            					$revue['nom_complet'].
309
		            				'</a>'.
331
		            				'</a>'.
310
								'.</h5>';
332
								'.</h5>';
311
				}
333
				}
312
				if ($revue['periodicite'] != '') {
334
				if ($revue['periodicite'] != '') {
313
					$retour .= ' '.$revue['periodicite'].'.';
335
					$retour .= ' '.$revue['periodicite'].'.';
314
				} else {
336
				} else {
315
					$retour .= ' Périodicité inconnue';
337
					$retour .= ' Périodicité inconnue';
316
				}
338
				}
317
				$retour .= ' Indexation des fascicules de ';
339
				$retour .= ' Indexation des fascicules de ';
318
				if ($revue['fasc_date_premier'] != '') {
340
				if ($revue['fasc_date_premier'] != '') {
319
					$retour .= donnerDateConviviale($revue['fasc_date_premier']);
341
					$retour .= donnerDateConviviale($revue['fasc_date_premier']);
320
				} else {
342
				} else {
321
					$retour .= '?';
343
					$retour .= '?';
322
				}
344
				}
323
				$retour .= ' à ';
345
				$retour .= ' à ';
324
				if ($revue['fasc_date_dernier'] != '') {
346
				if ($revue['fasc_date_dernier'] != '') {
325
					$retour .= donnerDateConviviale($revue['fasc_date_dernier']).'. ';
347
					$retour .= donnerDateConviviale($revue['fasc_date_dernier']).'. ';
326
				} else {
348
				} else {
327
					$retour .= '?. ';
349
					$retour .= '?. ';
328
				}
350
				}
329
				if ($revue['fasc_nbre'] != '') {
351
				if ($revue['fasc_nbre'] != '') {
330
					$retour .= $revue['fasc_nbre'];
352
					$retour .= $revue['fasc_nbre'];
331
				} else {
353
				} else {
332
					$retour .= 0;
354
					$retour .= 0;
333
				}
355
				}
334
				$retour .= ' fascicules et ';
356
				$retour .= ' fascicules et ';
335
				if ($revue['nbre_article'] != '') {
357
				if ($revue['nbre_article'] != '') {
336
					$retour .= $revue['nbre_article'];
358
					$retour .= $revue['nbre_article'];
337
				} else {
359
				} else {
338
					$retour .= 0;
360
					$retour .= 0;
339
				}
361
				}
340
				$retour .= ' articles.';
362
				$retour .= ' articles.';
341
				$o++;
363
				$o++;
342
				$retour .= '</li>'."\n";
364
				$retour .= '</li>'."\n";
343
			} else {
365
			} else {
344
				$nbre_revue_sans_article++;
366
				$nbre_revue_sans_article++;
345
			}
367
			}
346
		}
368
		}
347
		$retour .= '<li>';
369
		$retour .= '<li>';
348
		$retour .= 'Nombre de revue dont aucun article n\'est indexé dans la base : '.$nbre_revue_sans_article;
370
		$retour .= 'Nombre de revue dont aucun article n\'est indexé dans la base : '.$nbre_revue_sans_article;
349
		$retour .= '</li>'."\n";
371
		$retour .= '</li>'."\n";
350
		$retour .= '</ul>'."\n";
372
		$retour .= '</ul>'."\n";
351
	}
373
	}
352
}
374
}
353
$retour .= '</div>';
375
$retour .= '</div>';
354
$retour .= '<!-- BiblioBota - Revue : FIN -->'."\n";
376
$retour .= '<!-- BiblioBota - Revue : FIN -->'."\n";
355
$sortie .= $retour;
377
$sortie .= $retour;
356
 
378
 
357
 
379
 
358
function fomaterDate($date) {
380
function fomaterDate($date) {
359
	
381
	
360
}
382
}
361
/* +--Fin du code ----------------------------------------------------------------------------------------+
383
/* +--Fin du code ----------------------------------------------------------------------------------------+
362
*
384
*
363
* $Log$
385
* $Log$
-
 
386
* Revision 1.7  2007/02/13 18:33:23  jp_milcent
-
 
387
* Modification des titres.
-
 
388
*
364
* Revision 1.6  2007/02/13 17:41:06  jp_milcent
389
* Revision 1.6  2007/02/13 17:41:06  jp_milcent
365
* Amélioration et corrections de bogues.
390
* Amélioration et corrections de bogues.
366
*
391
*
367
* Revision 1.5  2007/01/02 17:45:16  jp_milcent
392
* Revision 1.5  2007/01/02 17:45:16  jp_milcent
368
* Ajout d'un affichage simplifié.
393
* Ajout d'un affichage simplifié.
369
*
394
*
370
* Revision 1.4  2006/09/12 16:13:05  jp_milcent
395
* Revision 1.4  2006/09/12 16:13:05  jp_milcent
371
* Ajout de nouvelles informations à la liste des revues.
396
* Ajout de nouvelles informations à la liste des revues.
372
*
397
*
373
* Revision 1.3  2006/07/28 12:46:47  jp_milcent
398
* Revision 1.3  2006/07/28 12:46:47  jp_milcent
374
* Début modification de l'interface de l'appli revue.
399
* Début modification de l'interface de l'appli revue.
375
*
400
*
376
* Revision 1.2  2006/05/29 14:19:07  jp_milcent
401
* Revision 1.2  2006/05/29 14:19:07  jp_milcent
377
* Ajout d'une classe css à l'image de la couverture de la revue.
402
* Ajout d'une classe css à l'image de la couverture de la revue.
378
* Correction du chemin d'accés à l'image.
403
* Correction du chemin d'accés à l'image.
379
*
404
*
380
* Revision 1.1  2006/05/23 16:20:50  jp_milcent
405
* Revision 1.1  2006/05/23 16:20:50  jp_milcent
381
* Ajout de l'application affichant la liste des revues disponibles dans la base de données de BiblioBota.
406
* Ajout de l'application affichant la liste des revues disponibles dans la base de données de BiblioBota.
382
*
407
*
383
*
408
*
384
* +-- Fin du code ----------------------------------------------------------------------------------------+
409
* +-- Fin du code ----------------------------------------------------------------------------------------+
385
*/
410
*/
386
?>
411
?>