Subversion Repositories eFlore/Applications.bibliobota

Rev

Rev 21 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21 Rev 26
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
// Titre de la page
-
 
55
$retour .= '<h1>'.'Liste des revues indexées dans la base de données du projet BiblioBota.'.'</h1>';
-
 
-
 
54
 
56
 
55
$aso_revues = array();
57
$query_tot =	'SELECT COUNT(*) AS cpt '.
56
$query =    'SELECT '.$GLOBALS['tbl']['collection'].'.* '.
58
				'FROM '.$GLOBALS['tbl']['collection'].' '.
57
            'FROM '.$GLOBALS['tbl']['collection'].' '.
-
 
58
            'WHERE B_C_CACHER = 0 '.
59
				'WHERE B_C_CACHER = 0';
59
            'ORDER BY B_C_NOMCOMPLET ';
60
$do_query_tot = mysql_query($query_tot) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_tot));
60
$do_query = mysql_query($query) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query));
61
$tmp_total = mysql_fetch_object($do_query_tot);
61
$nbre_revues_total = mysql_num_rows($do_query);
62
$nb_total = $tmp_total->cpt;
-
 
63
mysql_free_result($do_query_tot);
62
$nbre_revues_avec_article = 0;
-
 
63
 
-
 
64
if ($nbre_revues_total == 0) {
64
 
65
	// Titre de la page
65
if ($nb_total == 0) {
66
	$retour .= '<h1>'.'Revues indexées dans la base de données du projet BiblioBota.'.'</h1>';
66
	$retour .= '<p>'.'Pas encore de revues indexées...'.'</p>'."\n";
-
 
67
} else {
-
 
68
	$aso_revues = array();
-
 
69
    $query =    'SELECT '.$GLOBALS['tbl']['collection'].'.* '.
-
 
70
                'FROM '.$GLOBALS['tbl']['collection'].' '.
-
 
71
                'WHERE B_C_CACHER = 0 '.
-
 
72
                'ORDER BY B_C_NOMCOMPLET ';
-
 
73
	$do_query = mysql_query($query) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query));
67
	$retour .= '<p>'.'Pas encore de revues indexées...'.'</p>'."\n";
74
	$nb_results = mysql_num_rows($do_query);
68
} else {
75
	while ($row = mysql_fetch_object($do_query)) {
69
	while ($row = mysql_fetch_object($do_query)) {
76
		$aso_revue = array();
70
		$aso_revue = array();
77
        $aso_revue['id'] = $row->B_C_CRAI;
71
        $aso_revue['id'] = $row->B_C_CRAI;
78
        $aso_revue['idlink'] = $row->B_C_LKSTR;
72
        $aso_revue['idlink'] = $row->B_C_LKSTR;
79
        $aso_revue['nom_complet'] = $row->B_C_NOMCOMPLET;
73
        $aso_revue['nom_complet'] = $row->B_C_NOMCOMPLET;
80
        $aso_revue['abreviation'] = $row->B_C_ABREGE;
74
        $aso_revue['abreviation'] = $row->B_C_ABREGE;
81
        $aso_revue['date_debut'] = $row->B_C_DATECREATION;
75
        $aso_revue['date_debut'] = $row->B_C_DATECREATION;
82
        $aso_revue['suite_de'] = $row->B_C_FAISUITE;
76
        $aso_revue['suite_de'] = $row->B_C_FAISUITE;
83
        $aso_revue['date_fin'] = $row->B_C_DATEFIN;
77
        $aso_revue['date_fin'] = $row->B_C_DATEFIN;
84
        $aso_revue['periodicite'] = $row->B_C_PERIODICITE;
78
        $aso_revue['periodicite'] = $row->B_C_PERIODICITE;
85
        $aso_revue['contact_nom'] = $row->B_C_CONTACTNOM;
79
        $aso_revue['contact_nom'] = $row->B_C_CONTACTNOM;
86
        $aso_revue['contact_mail'] = $row->B_C_CONTACTMAIL;
80
        $aso_revue['contact_mail'] = $row->B_C_CONTACTMAIL;
87
        $aso_revue['logo'] = $row->B_C_IMAGE;
81
        $aso_revue['logo'] = $row->B_C_IMAGE;
88
        $aso_revue['commentaires'] = $row->B_C_COMMENT;
82
        $aso_revue['commentaires'] = $row->B_C_COMMENT;
89
        $aso_revue['date_maj'] = $row->B_C_MAJFICHE;
83
        $aso_revue['date_maj'] = $row->B_C_MAJFICHE;
90
		$aso_revue['fasc_nbre'] = 0;
84
		$aso_revue['fasc_nbre'] = 0;
91
		$aso_revue['fasc_date_premier'] = '';
85
		$aso_revue['fasc_date_premier'] = '';
92
		$aso_revue['fasc_date_dernier'] = '';
86
		$aso_revue['fasc_date_dernier'] = '';
93
		$aso_revue['fasc_maj_dernier'] = '';
87
		$aso_revue['fasc_maj_dernier'] = '';
94
		$aso_revue['fasc_nom_dernier'] = '';
88
		$aso_revue['fasc_nom_dernier'] = '';
95
		
89
		
96
		// 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:
97
		$Url = clone $GLOBALS['_BIBLIOBOTA_']['url'];
91
		$Url = clone $GLOBALS['_BIBLIOBOTA_']['url'];
98
		$Url->setId(BB_URL_APPLI_ORGA_ID);
92
		$Url->setId(BB_URL_APPLI_ORGA_ID);
99
		$Url->addQueryString('appli', 'bb_consultation');
93
		$Url->addQueryString('appli', 'bb_consultation');
100
		$Url->addQueryString('consultation', 'avancee');
94
		$Url->addQueryString('consultation', 'avancee');
101
		$Url->addQueryString('coll', $aso_revue['idlink']);
95
		$Url->addQueryString('coll', $aso_revue['idlink']);
102
		$aso_revue['url'] = $Url->getUrl();
96
		$aso_revue['url'] = $Url->getUrl();
103
		
97
		
104
		$aso_fasc_serie = array();
98
		$aso_fasc_serie = array();
105
		$query_fasc =	'SELECT '.$GLOBALS['tbl']['fascicule'].'.* '.
99
		$query_fasc =	'SELECT '.$GLOBALS['tbl']['fascicule'].'.* '.
106
	               		'FROM '.$GLOBALS['tbl']['fascicule'].' '.                		
100
	               		'FROM '.$GLOBALS['tbl']['fascicule'].' '.                		
107
						'WHERE  B_F_CRAICOLL = "'.$row->B_C_CRAI.'" '.
101
						'WHERE  B_F_CRAICOLL = "'.$row->B_C_CRAI.'" '.
108
						'AND B_F_CACHER = 0 '.
102
						'AND B_F_CACHER = 0 '.
109
						'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC';
103
						'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC';
110
		$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));
111
		while ($row_fasc = mysql_fetch_object($do_query_fasc)) {
105
		while ($row_fasc = mysql_fetch_object($do_query_fasc)) {
112
			if (!isset($aso_fasc_serie[$row_fasc->B_F_CRAISERIE])) {
106
			if (!isset($aso_fasc_serie[$row_fasc->B_F_CRAISERIE])) {
113
				$aso_fasc = array();
107
				$aso_fasc = array();
114
				$aso_fasc['nbre_fasc'] = 1;
108
				$aso_fasc['nbre_fasc'] = 1;
115
				$aso_fasc['nom_serie'] = $row_fasc->B_F_CRAISERIE;
109
				$aso_fasc['nom_serie'] = $row_fasc->B_F_CRAISERIE;
116
				$aso_fasc['nom_fin_serie'] = $row_fasc->B_SER_SOUSTITRE;
110
				$aso_fasc['nom_fin_serie'] = $row_fasc->B_SER_SOUSTITRE;
117
				$aso_fasc['nom_fin_fasc'] = $row_fasc->B_F_TITRE;
111
				$aso_fasc['nom_fin_fasc'] = $row_fasc->B_F_TITRE;
118
				$aso_fasc_serie[$row_fasc->B_F_CRAISERIE] = $aso_fasc;
112
				$aso_fasc_serie[$row_fasc->B_F_CRAISERIE] = $aso_fasc;
119
			} else {
113
			} else {
120
				$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc']++;
114
				$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc']++;
121
			}
115
			}
122
			// Nombre de fascicule dans la collection
116
			// Nombre de fascicule dans la collection
123
			$aso_revue['fasc_nbre']++;
117
			$aso_revue['fasc_nbre']++;
124
			// Calcule de la date du premier fascicule et de la date du dernier
118
			// Calcule de la date du premier fascicule et de la date du dernier
125
			if (preg_match('/^(\d{4})(?:\.(\d{2})|)$/', $row_fasc->B_F_DATE, $match)) {
119
			if (preg_match('/^(\d{4})(?:\.(\d{2})|)$/', $row_fasc->B_F_DATE, $match)) {
126
				if (isset($match[1]) && $match[1] != '') {
120
				if (isset($match[1]) && $match[1] != '') {
127
					$annee = $match[1];
121
					$annee = $match[1];
128
					$mois = '01';
122
					$mois = '01';
129
					if (isset($match[2]) && $match[2] != '') {
123
					if (isset($match[2]) && $match[2] != '') {
130
						$mois = $match[2];
124
						$mois = $match[2];
131
					}
125
					}
132
					$date = $annee.'-'.$mois;
126
					$date = $annee.'-'.$mois;
133
					
127
					
134
					// Initialisation avec une date.
128
					// Initialisation avec une date.
135
					if ($aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc'] == 1) {
129
					if ($aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc'] == 1) {
136
						$aso_revue['fasc_date_premier'] = $date;
130
						$aso_revue['fasc_date_premier'] = $date;
137
						$aso_revue['fasc_date_dernier'] = $date;
131
						$aso_revue['fasc_date_dernier'] = $date;
138
						$aso_fasc['date_debut'] = $date;
132
						$aso_fasc['date_debut'] = $date;
139
						$aso_fasc['date_fin'] = $date;
133
						$aso_fasc['date_fin'] = $date;
140
					}
134
					}
141
					
135
					
142
					// Date premier fascicule dans la série
136
					// Date premier fascicule dans la série
143
					if (strcasecmp($date, $aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_debut']) < 0) {
137
					if (strcasecmp($date, $aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_debut']) < 0) {
144
						$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_debut'] = $date;
138
						$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_debut'] = $date;
145
					}
139
					}
146
					// Date premier fascicule dans la collection
140
					// Date premier fascicule dans la collection
147
					//echo $date.'<'.$aso_revue['fasc_date_premier'].'/'.strcasecmp($date, $aso_revue['fasc_date_premier']).'<br>';
141
					//echo $date.'<'.$aso_revue['fasc_date_premier'].'/'.strcasecmp($date, $aso_revue['fasc_date_premier']).'<br>';
148
					if (strcasecmp($date, $aso_revue['fasc_date_premier']) < 0) {
142
					if (strcasecmp($date, $aso_revue['fasc_date_premier']) < 0) {
149
						//echo $aso_revue['fasc_date_premier'].'<'.$date.'<br>';
143
						//echo $aso_revue['fasc_date_premier'].'<'.$date.'<br>';
150
						$aso_revue['fasc_date_premier'] = $date;
144
						$aso_revue['fasc_date_premier'] = $date;
151
						 
145
						 
152
					}
146
					}
153
					// Date dernier fascicule dans la série
147
					// Date dernier fascicule dans la série
154
					if (strcasecmp($date, $aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_fin']) > 0) {
148
					if (strcasecmp($date, $aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_fin']) > 0) {
155
						$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_fin'] = $date;
149
						$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_fin'] = $date;
156
						$aso_revue['fasc_nom_dernier'] = $row_fasc->B_F_TITRE;
150
						$aso_revue['fasc_nom_dernier'] = $row_fasc->B_F_TITRE;
157
						$aso_revue['fasc_maj_dernier'] = $row_fasc->B_F_MAJFICHE;
151
						$aso_revue['fasc_maj_dernier'] = $row_fasc->B_F_MAJFICHE;
158
					}
152
					}
159
					// Date dernier fascicule dans la collection
153
					// Date dernier fascicule dans la collection
160
					if (strcasecmp($date, $aso_revue['fasc_date_dernier']) > 0) {
154
					if (strcasecmp($date, $aso_revue['fasc_date_dernier']) > 0) {
161
						$aso_revue['fasc_date_dernier'] = $date;
155
						$aso_revue['fasc_date_dernier'] = $date;
162
					}
156
					}
163
				} 
157
				} 
164
				
158
				
165
			}
159
			}
166
		}
160
		}
167
		mysql_free_result($do_query_fasc);
161
		mysql_free_result($do_query_fasc);
168
		ksort($aso_fasc_serie, SORT_DESC);
162
		ksort($aso_fasc_serie, SORT_DESC);
169
		$aso_revue['aso_fasc_serie'] = $aso_fasc_serie;
163
		$aso_revue['aso_fasc_serie'] = $aso_fasc_serie;
170
		
164
		
171
		$query_art =	'SELECT COUNT('.$GLOBALS['tbl']['article'].'.B_A_IDART) AS nbre_article '.
165
		$query_art =	'SELECT COUNT('.$GLOBALS['tbl']['article'].'.B_A_IDART) AS nbre_article '.
172
	               		'FROM '.$GLOBALS['tbl']['article'].' '.		
166
	               		'FROM '.$GLOBALS['tbl']['article'].' '.		
173
						'WHERE B_A_CRAICOLL = "'.$row->B_C_CRAI.'" '.
167
						'WHERE B_A_CRAICOLL = "'.$row->B_C_CRAI.'" '.
174
						'GROUP BY B_A_CRAICOLL';
168
						'GROUP BY B_A_CRAICOLL';
175
		//echo $query_art.'<br/>';
169
		//echo $query_art.'<br/>';
176
		$resultat_art = mysql_query($query_art) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_art));
170
		$resultat_art = mysql_query($query_art) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_art));
177
		$ligne_article = mysql_fetch_assoc($resultat_art);
171
		$ligne_article = mysql_fetch_assoc($resultat_art);
178
		//echo '<pre>'.print_r($ligne_article, true).'</pre>';
172
		//echo '<pre>'.print_r($ligne_article, true).'</pre>';
179
		$aso_revue['nbre_article'] = $ligne_article['nbre_article']; 
173
		$aso_revue['nbre_article'] = $ligne_article['nbre_article'];
-
 
174
		if ($aso_revue['nbre_article'] != 0) {
-
 
175
			$nbre_revues_avec_article++;
-
 
176
		} 
180
		$aso_revues[] = $aso_revue;
177
		$aso_revues[] = $aso_revue;
181
	}
178
	}
182
	mysql_free_result($do_query);
179
	mysql_free_result($do_query);
-
 
180
	
183
	if ($GLOBALS['_GEN_commun']['info_application']->affichage_type == 'tableau') {	
181
	if ($GLOBALS['_GEN_commun']['info_application']->affichage_type == 'tableau') {	
-
 
182
		// Titre de la page
-
 
183
		$retour .= '<h1>'.$nbre_revues_total.' revues indexées'.'</h1>';
-
 
184
		$retour .= 	'<p>'.
-
 
185
						'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.'.
-
 
187
					'</p>';
184
		$o = 1;
188
		$o = 1;
185
		$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";
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";
186
		$retour .= '<thead><tr>'.
190
		$retour .= '<thead><tr>'.
187
				'<th>Collection</th>'.
191
				'<th>Collection</th>'.
188
				'<th>Date début (collection)</th>'.
192
				'<th>Date début (collection)</th>'.
189
				'<th>Date fin (collection)</th>'.
193
				'<th>Date fin (collection)</th>'.
190
				'<th title="Nombre de fascicules pour la collection, toutes séries confondues">Nombre fascicules</th>'.
194
				'<th title="Nombre de fascicules pour la collection, toutes séries confondues">Nombre fascicules</th>'.
191
				'<th title="Nombre d\'articles pour la collection, toutes séries et fascicules confondues">Nombre d\'articles</th>'.
195
				'<th title="Nombre d\'articles pour la collection, toutes séries et fascicules confondues">Nombre d\'articles</th>'.
192
				'<th>Périodicité</th>'.
196
				'<th>Périodicité</th>'.
193
				'<th>Contact</th>'.
197
				'<th>Contact</th>'.
194
				'<th title="Nom du dernier fascicule indexée dans la dernière série">Dernier fascicule</th>'.
198
				'<th title="Nom du dernier fascicule indexée dans la dernière série">Dernier fascicule</th>'.
195
				'<th title="Date de publication du dernier fascicule indexée dans la dernière série">Date dernier fascicule</th>'.
199
				'<th title="Date de publication du dernier fascicule indexée dans la dernière série">Date dernier fascicule</th>'.
196
				'</tr></thead>'."\n";
200
				'</tr></thead>'."\n";
197
		$retour .= '<tbody>';
201
		$retour .= '<tbody>';
198
		foreach ($aso_revues as $revue) {
202
		foreach ($aso_revues as $revue) {
199
			$retour .= '<tr>';
203
			$retour .= '<tr>';
200
			$retour .= '<th>';
204
			$retour .= '<th>';
201
		    if ($revue['nom_complet'] != '') {
205
		    if ($revue['nom_complet'] != '') {
202
	            $retour .= 	'<h5 class="bbre_titre">'.
206
	            $retour .= 	'<h5 class="bbre_titre">'.
203
	            				'<a href="'.$revue['url'].'">'.
207
	            				'<a href="'.$revue['url'].'">'.
204
	            					$revue['nom_complet'].
208
	            					$revue['nom_complet'].
205
	            				'</a>'.
209
	            				'</a>'.
206
							'</h5>';
210
							'</h5>';
207
	            if ($revue['suite_de'] != '') {
211
	            if ($revue['suite_de'] != '') {
208
					$retour .= '<p><span class="bb_intitule">Fait suite à : </span>'.$revue['suite_de'].'</p>';
212
					$retour .= '<p><span class="bb_intitule">Fait suite à : </span>'.$revue['suite_de'].'</p>';
209
				}
213
				}
210
				if ($revue['abreviation'] != '') {
214
				if ($revue['abreviation'] != '') {
211
					$retour .= '<p><span class="bb_intitule">Abréviation : </span>'.$revue['abreviation'].'</p>';
215
					$retour .= '<p><span class="bb_intitule">Abréviation : </span>'.$revue['abreviation'].'</p>';
212
				}
216
				}
213
	            if ($revue['commentaires'] != '') {
217
	            if ($revue['commentaires'] != '') {
214
	            	$retour .= '<p>'.$revue['commentaires'].'</p>';
218
	            	$retour .= '<p>'.$revue['commentaires'].'</p>';
215
	        	}
219
	        	}
216
	            if ($revue['logo'] != '') {
220
	            if ($revue['logo'] != '') {
217
	            	$retour .= '<img class="bbre_couverture" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$revue['logo'].'" alt="Couverture de la revue '.$revue['nom_complet'].'"/>';
221
	            	$retour .= '<img class="bbre_couverture" src="'.BB_CHEMIN_IMAGES_ILLUSTRATION.$revue['logo'].'" alt="Couverture de la revue '.$revue['nom_complet'].'"/>';
218
	        	}
222
	        	}
219
	        	$retour .= '<p class="texte_inactif">Id. coll. : '.$revue['id'].' - Mise à jour : '.date('d/m/Y', $revue['date_maj']).'</p>';
223
	        	$retour .= '<p class="texte_inactif">Id. coll. : '.$revue['id'].' - Mise à jour : '.date('d/m/Y', $revue['date_maj']).'</p>';
220
			} else {
224
			} else {
221
				$retour .= '?';
225
				$retour .= '?';
222
			}
226
			}
223
	        $retour .= '</th>';
227
	        $retour .= '</th>';
224
			$retour .= '<td>';
228
			$retour .= '<td>';
225
			if ($revue['date_debut'] != '') {
229
			if ($revue['date_debut'] != '') {
226
				$retour .= $revue['date_debut'];
230
				$retour .= $revue['date_debut'];
227
			} else {
231
			} else {
228
				$retour .= '?';
232
				$retour .= '?';
229
			}
233
			}
230
			$retour .= '</td>';
234
			$retour .= '</td>';
231
			$retour .= '<td>';
235
			$retour .= '<td>';
232
			if ($revue['date_fin'] != '') {
236
			if ($revue['date_fin'] != '') {
233
				$retour .= $revue['date_fin'];
237
				$retour .= $revue['date_fin'];
234
			} else {
238
			} else {
235
				$retour .= '?';
239
				$retour .= '?';
236
			}
240
			}
237
			$retour .= '</td>';
241
			$retour .= '</td>';
238
			$retour .= '<td>';
242
			$retour .= '<td>';
239
			if ($revue['fasc_nbre'] != '') {
243
			if ($revue['fasc_nbre'] != '') {
240
				$retour .= $revue['fasc_nbre'];
244
				$retour .= $revue['fasc_nbre'];
241
			} else {
245
			} else {
242
				$retour .= 0;
246
				$retour .= 0;
243
			}
247
			}
244
			$retour .= '</td>';
248
			$retour .= '</td>';
245
			$retour .= '<td>';
249
			$retour .= '<td>';
246
			if ($revue['nbre_article'] != '') {
250
			if ($revue['nbre_article'] != '') {
247
				$retour .= $revue['nbre_article'];
251
				$retour .= $revue['nbre_article'];
248
			} else {
252
			} else {
249
				$retour .= 0;
253
				$retour .= 0;
250
			}
254
			}
251
			$retour .= '</td>';
255
			$retour .= '</td>';
252
			$retour .= '<td>';
256
			$retour .= '<td>';
253
			if ($revue['periodicite'] != '') {
257
			if ($revue['periodicite'] != '') {
254
				$retour .= $revue['periodicite'];
258
				$retour .= $revue['periodicite'];
255
			} else {
259
			} else {
256
				$retour .= '?';
260
				$retour .= '?';
257
			}
261
			}
258
			$retour .= '</td>';
262
			$retour .= '</td>';
259
			$retour .= '<td>';
263
			$retour .= '<td>';
260
			if ($revue['contact_nom'] != '') {
264
			if ($revue['contact_nom'] != '') {
261
				if ($contact_mail != '') {
265
				if ($contact_mail != '') {
262
					$retour .= '<a href="mailto:'.$revue['contact_mail'].'">'.$revue['contact_nom'].'</a>';
266
					$retour .= '<a href="mailto:'.$revue['contact_mail'].'">'.$revue['contact_nom'].'</a>';
263
				} else {
267
				} else {
264
					$retour .= $revue['contact_nom'];
268
					$retour .= $revue['contact_nom'];
265
				}
269
				}
266
			} else {
270
			} else {
267
				$retour .= '?';
271
				$retour .= '?';
268
			}
272
			}
269
			$retour .= '</td>';
273
			$retour .= '</td>';
270
			$retour .= '<td>';
274
			$retour .= '<td>';
271
			if ($revue['fasc_nom_dernier'] != '') {
275
			if ($revue['fasc_nom_dernier'] != '') {
272
				$retour .= $revue['fasc_nom_dernier'];
276
				$retour .= $revue['fasc_nom_dernier'];
273
			} else {
277
			} else {
274
				$retour .= '?';
278
				$retour .= '?';
275
			}
279
			}
276
			$retour .= '</td>';
280
			$retour .= '</td>';
277
			$retour .= '<td>';
281
			$retour .= '<td>';
278
			if ($revue['fasc_date_dernier'] != '') {
282
			if ($revue['fasc_date_dernier'] != '') {
279
				$retour .= '<p>'.donnerDateConviviale($revue['fasc_date_dernier']).'</p>';
283
				$retour .= '<p>'.donnerDateConviviale($revue['fasc_date_dernier']).'</p>';
280
				$retour .= '<p class="texte_inactif">Mise à jour : '.date('d/m/Y', $revue['fasc_maj_dernier']).'</p>';
284
				$retour .= '<p class="texte_inactif">Mise à jour : '.date('d/m/Y', $revue['fasc_maj_dernier']).'</p>';
281
				
285
				
282
			} else {
286
			} else {
283
				$retour .= '?';
287
				$retour .= '?';
284
			}
288
			}
285
			$retour .= '</td>';
289
			$retour .= '</td>';
286
			$retour .= '</tr>'."\n";
290
			$retour .= '</tr>'."\n";
287
	        $o++;
291
	        $o++;
288
		}
292
		}
289
		$retour .= '</tbody>'."\n";
293
		$retour .= '</tbody>'."\n";
290
		$retour .= '</table>'."\n";
294
		$retour .= '</table>'."\n";
291
	} else {
295
	} else {
-
 
296
		// Titre de la page
-
 
297
		$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>';
292
		$o = 1;
299
		$o = 1;
293
		$retour .= '<ul id="liste_biblio_revue">'."\n";
300
		$retour .= '<ul id="liste_biblio_revue">'."\n";
294
		$nbre_revue_sans_article = 0;
301
		$nbre_revue_sans_article = 0;
295
		foreach ($aso_revues as $revue) {
302
		foreach ($aso_revues as $revue) {
296
			if ($revue['nbre_article'] != '' && $revue['nbre_article'] > 0) {
303
			if ($revue['nbre_article'] != '' && $revue['nbre_article'] > 0) {
297
				$retour .= '<li>';
304
				$retour .= '<li>';
298
				if ($revue['nom_complet'] != '') {
305
				if ($revue['nom_complet'] != '') {
299
		            $retour .= 	'<h5 class="bbre_titre">'.
306
		            $retour .= 	'<h5 class="bbre_titre">'.
300
		            				'<a href="'.$revue['url'].'">'.
307
		            				'<a href="'.$revue['url'].'">'.
301
		            					$revue['nom_complet'].
308
		            					$revue['nom_complet'].
302
		            				'</a>'.
309
		            				'</a>'.
303
								'.</h5>';
310
								'.</h5>';
304
				}
311
				}
305
				if ($revue['periodicite'] != '') {
312
				if ($revue['periodicite'] != '') {
306
					$retour .= ' '.$revue['periodicite'].'.';
313
					$retour .= ' '.$revue['periodicite'].'.';
307
				} else {
314
				} else {
308
					$retour .= ' Périodicité inconnue';
315
					$retour .= ' Périodicité inconnue';
309
				}
316
				}
310
				$retour .= ' De ';
317
				$retour .= ' Indexation des fascicules de ';
311
				if ($revue['fasc_date_premier'] != '') {
318
				if ($revue['fasc_date_premier'] != '') {
312
					$retour .= donnerDateConviviale($revue['fasc_date_premier']);
319
					$retour .= donnerDateConviviale($revue['fasc_date_premier']);
313
				} else {
320
				} else {
314
					$retour .= '?';
321
					$retour .= '?';
315
				}
322
				}
316
				$retour .= ' à ';
323
				$retour .= ' à ';
317
				if ($revue['fasc_date_dernier'] != '') {
324
				if ($revue['fasc_date_dernier'] != '') {
318
					$retour .= donnerDateConviviale($revue['fasc_date_dernier']).'. ';
325
					$retour .= donnerDateConviviale($revue['fasc_date_dernier']).'. ';
319
				} else {
326
				} else {
320
					$retour .= '?. ';
327
					$retour .= '?. ';
321
				}
328
				}
322
				if ($revue['fasc_nbre'] != '') {
329
				if ($revue['fasc_nbre'] != '') {
323
					$retour .= $revue['fasc_nbre'];
330
					$retour .= $revue['fasc_nbre'];
324
				} else {
331
				} else {
325
					$retour .= 0;
332
					$retour .= 0;
326
				}
333
				}
327
				$retour .= ' fascicules et ';
334
				$retour .= ' fascicules et ';
328
				if ($revue['nbre_article'] != '') {
335
				if ($revue['nbre_article'] != '') {
329
					$retour .= $revue['nbre_article'];
336
					$retour .= $revue['nbre_article'];
330
				} else {
337
				} else {
331
					$retour .= 0;
338
					$retour .= 0;
332
				}
339
				}
333
				$retour .= ' articles indexés.';
340
				$retour .= ' articles.';
334
				$o++;
341
				$o++;
335
				$retour .= '</li>'."\n";
342
				$retour .= '</li>'."\n";
336
			} else {
343
			} else {
337
				$nbre_revue_sans_article++;
344
				$nbre_revue_sans_article++;
338
			}
345
			}
339
		}
346
		}
340
		$retour .= '<li>';
347
		$retour .= '<li>';
341
		$retour .= 'Nombre de revue dont aucun article n\'est indexé dans la base : '.$nbre_revue_sans_article;
348
		$retour .= 'Nombre de revue dont aucun article n\'est indexé dans la base : '.$nbre_revue_sans_article;
342
		$retour .= '</li>'."\n";
349
		$retour .= '</li>'."\n";
343
		$retour .= '</ul>'."\n";
350
		$retour .= '</ul>'."\n";
344
	}
351
	}
345
}
352
}
346
$retour .= '</div>';
353
$retour .= '</div>';
347
$retour .= '<!-- BiblioBota - Revue : FIN -->'."\n";
354
$retour .= '<!-- BiblioBota - Revue : FIN -->'."\n";
348
$sortie .= $retour;
355
$sortie .= $retour;
349
 
356
 
350
 
357
 
351
function fomaterDate($date) {
358
function fomaterDate($date) {
352
	
359
	
353
}
360
}
354
/* +--Fin du code ----------------------------------------------------------------------------------------+
361
/* +--Fin du code ----------------------------------------------------------------------------------------+
355
*
362
*
356
* $Log$
363
* $Log$
-
 
364
* Revision 1.6  2007/02/13 17:41:06  jp_milcent
-
 
365
* Amélioration et corrections de bogues.
-
 
366
*
357
* Revision 1.5  2007/01/02 17:45:16  jp_milcent
367
* Revision 1.5  2007/01/02 17:45:16  jp_milcent
358
* Ajout d'un affichage simplifié.
368
* Ajout d'un affichage simplifié.
359
*
369
*
360
* Revision 1.4  2006/09/12 16:13:05  jp_milcent
370
* Revision 1.4  2006/09/12 16:13:05  jp_milcent
361
* Ajout de nouvelles informations à la liste des revues.
371
* Ajout de nouvelles informations à la liste des revues.
362
*
372
*
363
* Revision 1.3  2006/07/28 12:46:47  jp_milcent
373
* Revision 1.3  2006/07/28 12:46:47  jp_milcent
364
* Début modification de l'interface de l'appli revue.
374
* Début modification de l'interface de l'appli revue.
365
*
375
*
366
* Revision 1.2  2006/05/29 14:19:07  jp_milcent
376
* Revision 1.2  2006/05/29 14:19:07  jp_milcent
367
* Ajout d'une classe css à l'image de la couverture de la revue.
377
* Ajout d'une classe css à l'image de la couverture de la revue.
368
* Correction du chemin d'accés à l'image.
378
* Correction du chemin d'accés à l'image.
369
*
379
*
370
* Revision 1.1  2006/05/23 16:20:50  jp_milcent
380
* Revision 1.1  2006/05/23 16:20:50  jp_milcent
371
* Ajout de l'application affichant la liste des revues disponibles dans la base de données de BiblioBota.
381
* Ajout de l'application affichant la liste des revues disponibles dans la base de données de BiblioBota.
372
*
382
*
373
*
383
*
374
* +-- Fin du code ----------------------------------------------------------------------------------------+
384
* +-- Fin du code ----------------------------------------------------------------------------------------+
375
*/
385
*/
376
?>
386
?>