Subversion Repositories eFlore/Applications.bibliobota

Compare Revisions

Ignore whitespace Rev 26 → Rev 27

/trunk/applications/bb_revue/bb_revue.php
102,6 → 102,9
'AND B_F_CACHER = 0 '.
'ORDER BY B_F_CRAISERIE, B_F_NUMERO DESC';
$do_query_fasc = mysql_query($query_fasc) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $query_fasc));
// Initialisation de la date
$initialiser = true;
while ($row_fasc = mysql_fetch_object($do_query_fasc)) {
if (!isset($aso_fasc_serie[$row_fasc->B_F_CRAISERIE])) {
$aso_fasc = array();
119,20 → 122,23
if (preg_match('/^(\d{4})(?:\.(\d{2})|)$/', $row_fasc->B_F_DATE, $match)) {
if (isset($match[1]) && $match[1] != '') {
$annee = $match[1];
$mois = '01';
$mois = '00';
if (isset($match[2]) && $match[2] != '') {
$mois = $match[2];
}
$date = $annee.'-'.$mois;
// Initialisation avec une date.
// Initialisation avec une date pour la série courrante
if ($aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['nbre_fasc'] == 1) {
$aso_revue['fasc_date_premier'] = $date;
$aso_revue['fasc_date_dernier'] = $date;
$aso_fasc['date_debut'] = $date;
$aso_fasc['date_fin'] = $date;
}
// Initialisation avec une date pour la collection toute série confondue
if ($initialiser) {
$initialiser = false;
$aso_revue['fasc_date_premier'] = $date;
$aso_revue['fasc_date_dernier'] = $date;
}
// Date premier fascicule dans la série
if (strcasecmp($date, $aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_debut']) < 0) {
$aso_fasc_serie[$row_fasc->B_F_CRAISERIE]['date_debut'] = $date;
190,7 → 196,9
$retour .= '<thead><tr>'.
'<th>Collection</th>'.
'<th>Date début (collection)</th>'.
'<th>Date début (indexation)</th>'.
'<th>Date fin (collection)</th>'.
'<th>Date fin (indexation)</th>'.
'<th title="Nombre de fascicules pour la collection, toutes séries confondues">Nombre fascicules</th>'.
'<th title="Nombre d\'articles pour la collection, toutes séries et fascicules confondues">Nombre d\'articles</th>'.
'<th>Périodicité</th>'.
233,6 → 241,13
}
$retour .= '</td>';
$retour .= '<td>';
if ($revue['fasc_date_premier'] != '') {
$retour .= donnerDateConviviale($revue['fasc_date_premier']);
} else {
$retour .= '?';
}
$retour .= '</td>';
$retour .= '<td>';
if ($revue['date_fin'] != '') {
$retour .= $revue['date_fin'];
} else {
240,6 → 255,13
}
$retour .= '</td>';
$retour .= '<td>';
if ($revue['fasc_date_dernier'] != '') {
$retour .= donnerDateConviviale($revue['fasc_date_dernier']);
} else {
$retour .= '?';
}
$retour .= '</td>';
$retour .= '<td>';
if ($revue['fasc_nbre'] != '') {
$retour .= $revue['fasc_nbre'];
} else {
361,6 → 383,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log$
* Revision 1.7 2007/02/13 18:33:23 jp_milcent
* Modification des titres.
*
* Revision 1.6 2007/02/13 17:41:06 jp_milcent
* Amélioration et corrections de bogues.
*