| Line 100... |
Line 100... |
| 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;
|
| Line 117... |
Line 120... |
| 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;
|
| Line 127... |
Line 130... |
| 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;
|
| - |
|
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;
|
| 134 |
}
|
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 |
}
|
| Line 188... |
Line 194... |
| 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>'.
|
| Line 231... |
Line 239... |
| 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 |
}
|
| Line 359... |
Line 381... |
| 359 |
|
381 |
|
| 360 |
}
|
382 |
}
|
| 361 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
383 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 362 |
*
|
384 |
*
|
| - |
|
385 |
* $Log$
|
| - |
|
386 |
* Revision 1.7 2007/02/13 18:33:23 jp_milcent
|
| - |
|
387 |
* Modification des titres.
|
| 363 |
* $Log$
|
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
|