Subversion Repositories eFlore/Applications.bibliobota

Rev

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

Rev 2 Rev 10
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 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: bbc_affichage_media.fonct.php,v 1.1 2005-11-23 10:22:25 jp_milcent Exp $
22
// CVS : $Id: bbc_affichage_media.fonct.php,v 1.2 2006-09-20 13:18:35 jp_milcent Exp $
23
/**
23
/**
24
* Fonctions de création de l'affichage des résultats d'un média.
24
* Fonctions de création de l'affichage des résultats d'un média.
25
*
25
*
26
* Contient une fonction créant l'affichage des résultats pour le paramètre "media".
26
* Contient une fonction créant l'affichage des résultats pour le paramètre "media".
27
*
27
*
28
*@package BiblioBota-Consultation
28
*@package BiblioBota-Consultation
29
*@subpackage Fonctions
29
*@subpackage Fonctions
30
//Auteur original :
30
//Auteur original :
31
*@author        Jean-Charles GRANGER <tela@vecteur.org>
31
*@author        Jean-Charles GRANGER <tela@vecteur.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
33
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
34
*@copyright     Tela-Botanica 2000-2004
34
*@copyright     Tela-Botanica 2000-2004
35
*@version       $Revision: 1.1 $ $Date: 2005-11-23 10:22:25 $
35
*@version       $Revision: 1.2 $ $Date: 2006-09-20 13:18:35 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
*/
37
*/
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
40
// |                                            ENTETE du PROGRAMME                                       |
40
// |                                            ENTETE du PROGRAMME                                       |
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
42
                                    /*Mettre ici les inclusions de fichiers*/                             
42
                                    /*Mettre ici les inclusions de fichiers*/                             
43
 
43
 
44
                    
44
                    
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
46
// |                                           LISTE de FONCTIONS                                         |
46
// |                                           LISTE de FONCTIONS                                         |
47
// +------------------------------------------------------------------------------------------------------+
47
// +------------------------------------------------------------------------------------------------------+
48
                                        /*Mettre ici la liste de fonctions.*/
48
                                        /*Mettre ici la liste de fonctions.*/
49
 
49
 
50
/** Fonction mkresu() - Traitement des requêtes.
50
/** Fonction mkresu() - Traitement des requêtes.
51
*
51
*
52
* Fonction traitant la requête d'intérogation de la base de données pour le
52
* Fonction traitant la requête d'intérogation de la base de données pour le
53
* paramêtre "media".
53
* paramêtre "media".
54
*
54
*
55
* @return  string les résultats à afficher.
55
* @return  string les résultats à afficher.
56
*/
56
*/
57
function mkresu()
57
function mkresu()
58
{
58
{
59
    global $result_final;
59
    global $result_final;
60
    global $nbr_final;
60
    global $nbr_final;
61
    global $tbl;
61
    global $tbl;
62
    global $TabFinder;
62
    global $TabFinder;
63
    global $nbr_total;
63
    global $nbr_total;
64
    global $var_biblio;
64
    global $var_biblio;
65
    global $query_dom;
65
    global $query_dom;
66
    global $phy;
66
    global $phy;
67
    
67
    
68
    // Initialisation des variables
68
    // Initialisation des variables
69
    
69
    
70
    $retour = '';
70
    $retour = '';
71
    $retour .= '<ul id="bb_liste_resultat_media">'."\n";
71
    $retour .= '<ul id="bb_liste_resultat_media">'."\n";
72
    $j = 1;
72
    $j = 1;
73
    while ($row = mysql_fetch_object($result_final)) {
73
    while ($row = mysql_fetch_object($result_final)) {
74
        $retour .= '<li>';
74
        $retour .= '<li>';
75
        
75
        
76
        // Récupération des données
76
        // Récupération des données
77
        $get_idstr = $row->B_S_IDSTR;
77
        $get_idstr = $row->B_S_IDSTR;
78
        $get_nomstr =  $row->B_S_NOM;
78
        $get_nomstr =  $row->B_S_NOM;
79
        $get_iditem = $row->B_I_IDITEM;
79
        $get_iditem = $row->B_I_IDITEM;
80
        $get_titreitem = $row->B_I_TITRE;
80
        $get_titreitem = $row->B_I_TITRE;
81
        $get_auteuritem = $row->B_I_AUTEURS;
81
        $get_auteuritem = $row->B_I_AUTEURS;
82
        $get_geo = $row->B_I_GEO;
82
        $get_geo = $row->B_I_GEO;
83
        $get_langue = $row->B_I_LANGUE;
83
        $get_langue = $row->B_I_LANGUE;
84
        $get_resumcle = $row->B_I_RESUMCLE;
84
        $get_resumcle = $row->B_I_RESUMCLE;
85
        $get_image = $row->B_I_IMAGE;
85
        $get_image = $row->B_I_IMAGE;
86
        $get_saisie = $row->B_AS_LIBELLE;
86
        $get_saisie = $row->B_AS_LIBELLE;
87
        $get_comment = $row->B_I_COMMENT;
87
        $get_comment = $row->B_I_COMMENT;
88
        $get_domaine_id = $row->B_D_ID;
88
        $get_domaine_id = $row->B_D_ID;
89
        $get_domaine_nom = $row->B_D_LABEL;
89
        $get_domaine_nom = $row->B_D_LABEL;
90
        
90
        
91
        if ($get_domaine_id != 1) {
91
        if ($get_domaine_id != 1) {
92
            $retour .= '<span class="texte_unactive">['.$get_domaine_nom.']</span>'."\n";
92
            $retour .= '<span class="texte_unactive">['.$get_domaine_nom.']</span>'."\n";
93
        }
93
        }
94
        
94
        
95
        if (BB_ARGUMENT_REGROUPEMENT == 'article') {
95
        if (BB_ARGUMENT_REGROUPEMENT == 'article') {
96
            $get_idcoll = $row->B_C_CRAI;
96
            $get_idcoll = $row->B_C_CRAI;
97
            $get_seriecoll = $row->B_SER_IDSERIE;
97
            $get_seriecoll = $row->B_SER_IDSERIE;
98
            $get_titreserie = $row->B_SER_SOUSTITRE;
98
            $get_titreserie = $row->B_SER_SOUSTITRE;
99
            $get_nomcoll = $row->B_C_NOMCOMPLET;
99
            $get_nomcoll = $row->B_C_NOMCOMPLET;
100
            $get_abrege = $row->B_C_ABREGE;
100
            $get_abrege = $row->B_C_ABREGE;
101
            $get_idfasc = $row->B_F_NUMERO;
101
            $get_idfasc = $row->B_F_NUMERO;
102
            $get_titrefasc = $row->B_F_TITRE;
102
            $get_titrefasc = $row->B_F_TITRE;
103
            $get_datefasc = $row->B_F_DATE;
103
            $get_datefasc = $row->B_F_DATE;
104
            $get_debut = $row->B_A_PAGEDEBUT;
104
            $get_debut = $row->B_A_PAGEDEBUT;
105
            $get_fin = $row->B_A_PAGEFIN;
105
            $get_fin = $row->B_A_PAGEFIN;
106
        } else {
106
        } else {
107
            $collection_book = $row->B_M_COLLECTION;
107
            $collection_book = $row->B_M_COLLECTION;
108
            $numcoll_book = $row->B_M_NUMCOLL;
108
            $numcoll_book = $row->B_M_NUMCOLL;
109
            $isbn = $row->B_M_ISBN;
109
            $isbn = $row->B_M_ISBN;
110
            $editeur = $row->B_M_EDITEUR;
110
            $editeur = $row->B_M_EDITEUR;
111
            $get_datefasc = $row->B_M_DATE;
111
            $get_datefasc = $row->B_M_DATE;
112
            $prix = $row->B_M_PRIX;
112
            $prix = $row->B_M_PRIX;
113
            $idmonnaie = $row->B_M_LKMONNAIE;
113
            $idmonnaie = $row->B_M_LKMONNAIE;
114
            $monnaie = $row->GEN_MON_SYMBOLE;
114
            $monnaie = $row->GEN_MON_SYMBOLE;
115
            $converter = $row->GEN_MON_VAL1EURO;
115
            $converter = $row->GEN_MON_VAL1EURO;
116
            $volume = $row->B_M_VOLUME;
116
            $volume = $row->B_M_VOLUME;
117
            $edite = $row->B_M_EDITE;
117
            $edite = $row->B_M_EDITE;
118
            $vendu = $row->B_M_VEND;
118
            $vendu = $row->B_M_VEND;
119
        }
119
        }
120
        
120
        
121
        if ((BB_ARGUMENT_REGROUPEMENT == 'media') || (BB_ARGUMENT_REGROUPEMENT == 'mixte')) {
121
        if ((BB_ARGUMENT_REGROUPEMENT == 'media') || (BB_ARGUMENT_REGROUPEMENT == 'mixte')) {
122
            $id_phy = $row->B_IP_ID;
122
            $id_phy = $row->B_IP_ID;
123
            $item_phy = $row->B_IP_LABEL;
123
            $item_phy = $row->B_IP_LABEL;
124
            $icon_phy = $row->B_IP_IMAGE;
124
            $icon_phy = $row->B_IP_IMAGE;
125
            $id_log = $row->B_IL_ID;
125
            $id_log = $row->B_IL_ID;
126
            $item_log = $row->B_IL_LABEL;
126
            $item_log = $row->B_IL_LABEL;
127
            $icon_log = $row->B_IL_IMAGE;
127
            $icon_log = $row->B_IL_IMAGE;
128
            
128
            
129
            $retour .= '<span class="texte_inactif">';
129
            $retour .= '<span class="texte_inactif">';
130
            
130
            
131
            if ($icon_phy != '') {
131
            if ($icon_phy != '') {
132
                $retour .= '<img class="bb_img_icone" src="'.BB_CHEMIN_IMAGES_TYPE_PHYSIQUE.$icon_phy.'" alt="'.$item_phy.'" /> ';
132
                $retour .= '<img class="bb_img_icone" src="'.BB_CHEMIN_IMAGES_TYPE_PHYSIQUE.$icon_phy.'" alt="'.$item_phy.'" /> ';
133
            } else {
133
            } else {
134
                $retour .= '['.$item_phy.']';
134
                $retour .= '['.$item_phy.']';
135
            }
135
            }
136
            if (($icon_phy == '') && ($icon_log)) {
136
            if (($icon_phy == '') && ($icon_log)) {
137
                $retour .= ' - ';
137
                $retour .= ' - ';
138
            }
138
            }
139
            if ($icon_log != '') {
139
            if ($icon_log != '') {
140
                $retour .= ' <img class="bb_img_icone" src="'.BB_CHEMIN_IMAGES_TYPE_LOGIQUE.$icon_log.'" alt="'.$item_log.'" />';
140
                $retour .= ' <img class="bb_img_icone" src="'.BB_CHEMIN_IMAGES_TYPE_LOGIQUE.$icon_log.'" alt="'.$item_log.'" />';
141
            } else {
141
            } else {
142
                $retour .= '['.$item_log.']';
142
                $retour .= '['.$item_log.']';
143
            }
143
            }
144
            $retour .= '</span> ';
144
            $retour .= '</span> ';
145
        }
145
        }
146
        
146
        
147
        // début de l'affichage
147
        // début de l'affichage
148
        
148
        
149
        if ($get_auteuritem != '') {
149
        if ($get_auteuritem != '') {
150
            $retour .= "\n";
-
 
151
            $get_auteuritem = strtolower(ColorizeFound($get_auteuritem, stripslashes($TabFinder['auteur'])));
150
            $retour .= "\n".ColorizeFound($get_auteuritem, str_replace('. - ', '.-', ucwords(strtolower(str_replace('.-', '. - ', stripslashes($TabFinder['auteur']))))));
152
            $retour .= ucwords($get_auteuritem);
-
 
153
        } else {
151
        } else {
154
            $retour .= 'Anonyme';
152
            $retour .= 'Anonyme';
155
        }
153
        }
156
        
154
        
157
        $retour .= ' -'."\n".'<b>'.ColorizeFound($get_titreitem, stripslashes($TabFinder['chaine'])).'</b>'."\n";
155
        $retour .= ' -'."\n".'<b>'.ColorizeFound($get_titreitem, stripslashes($TabFinder['chaine'])).'</b>'."\n";
158
        
156
        
159
        if ($get_datefasc > 0) {
157
        if ($get_datefasc > 0) {
160
            $retour .= ' - ' . DAT_formaterDateYYYYMMJJ($get_datefasc);
158
            $retour .= ' - ' . DAT_formaterDateYYYYMMJJ($get_datefasc);
161
        }
159
        }
162
        
160
        
163
        if (($get_resumcle != '') || ($get_comment != '')) {
161
        if (($get_resumcle != '') || ($get_comment != '')) {
164
            $retour .= ' - <i>';
162
            $retour .= ' - <i>';
165
            if ($get_resumcle != '') {
163
            if ($get_resumcle != '') {
166
                $retour .= ColorizeFound($get_resumcle, strtolower(stripslashes($TabFinder['chaine'])));
164
                $retour .= ColorizeFound($get_resumcle, strtolower(stripslashes($TabFinder['chaine'])));
167
            }
165
            }
168
            if (($get_resumcle != '') && ($get_comment != '')) {
166
            if (($get_resumcle != '') && ($get_comment != '')) {
169
                $retour .= ' - ';
167
                $retour .= ' - ';
170
            }
168
            }
171
            if ($get_comment != '') {
169
            if ($get_comment != '') {
172
                $retour .= ColorizeFound($get_comment, strtolower(stripslashes($TabFinder['chaine'])));
170
                $retour .= ColorizeFound($get_comment, strtolower(stripslashes($TabFinder['chaine'])));
173
            }
171
            }
174
            $retour .= '</i>';
172
            $retour .= '</i>';
175
        }
173
        }
176
        
174
        
177
        if ((!empty($get_debut)) && (!empty($get_fin))) {
175
        if ((!empty($get_debut)) && (!empty($get_fin))) {
178
            if (($get_debut > 0)||($get_fin > 0)) {
176
            if (($get_debut > 0)||($get_fin > 0)) {
179
                $retour .= ', p. ';
177
                $retour .= ', p. ';
180
                $retour .= $get_debut;
178
                $retour .= $get_debut;
181
                if (($get_debut > 0) && ($get_fin > 0)) {
179
                if (($get_debut > 0) && ($get_fin > 0)) {
182
                    $retour .= '-';
180
                    $retour .= '-';
183
                }
181
                }
184
                $retour .= $get_fin;
182
                $retour .= $get_fin;
185
            }
183
            }
186
        }
184
        }
187
        
185
        
188
        if ((!empty($volume))) {
186
        if ((!empty($volume))) {
189
            $retour .= ' - '.$volume;
187
            $retour .= ' - '.$volume;
190
        }
188
        }
191
        
189
        
192
        if (!empty($get_geo)) {
190
        if (!empty($get_geo)) {
193
            $retour .= ' - '.'Départ./Région : '.'<i>' . ColorizeFound($get_geo,ucFirst(stripslashes($TabFinder['geo']))).'</i>';
191
            $retour .= ' - '.'Départ./Région : '.'<i>' . ColorizeFound($get_geo,ucFirst(stripslashes($TabFinder['geo']))).'</i>';
194
        }
192
        }
195
        
193
        
196
        $retour .= ' - ';
194
        $retour .= ' - ';
197
        
195
        
198
        if (BB_ARGUMENT_REGROUPEMENT == 'article') {
196
        if (BB_ARGUMENT_REGROUPEMENT == 'article') {
199
            if (!empty($get_nomstr)) $retour .= "$get_nomstr, ";
197
            if (!empty($get_nomstr)) $retour .= "$get_nomstr, ";
200
            
198
            
201
            if (empty($get_abrege)) {
199
            if (empty($get_abrege)) {
202
                $retour .= $get_nomcoll;
200
                $retour .= $get_nomcoll;
203
            } else {
201
            } else {
204
                $retour .= $get_abrege;
202
                $retour .= $get_abrege;
205
            }
203
            }
206
            
204
            
207
            if (!empty($get_titreserie)) {
205
            if (!empty($get_titreserie)) {
208
                $retour .= ', '.$get_titreserie;
206
                $retour .= ', '.$get_titreserie;
209
            }
207
            }
210
            
208
            
211
            if (($var_biblio['open_biblio_str'] == true) && ($get_nomstr != '')) {
209
            if (($var_biblio['open_biblio_str'] == true) && ($get_nomstr != '')) {
212
                $retour .= ', <a href="'.BB_URL_COURANTE_CONSULTATION_AVANCEE.'&amp;art='.$get_idcoll.'-'.$get_seriecoll.'-'.$get_idfasc.
210
                $retour .= ', <a href="'.BB_URL_COURANTE_CONSULTATION_AVANCEE.'&amp;art='.$get_idcoll.'-'.$get_seriecoll.'-'.$get_idfasc.
213
                                '&amp;arg_0=str%3D'.$get_idstr.'&amp;arg_1=coll%3D'.$get_idstr.
211
                                '&amp;arg_0=str%3D'.$get_idstr.'&amp;arg_1=coll%3D'.$get_idstr.
214
                                '&amp;arg_2=book%3D'.$get_idstr.'&amp;arg_3=media%3D'.$get_idstr.'">'.
212
                                '&amp;arg_2=book%3D'.$get_idstr.'&amp;arg_3=media%3D'.$get_idstr.'">'.
215
                                $get_titrefasc.
213
                                $get_titrefasc.
216
                        '</a>';
214
                        '</a>';
217
            } else {
215
            } else {
218
                $retour .= ', '.$get_titrefasc;
216
                $retour .= ', '.$get_titrefasc;
219
            }
217
            }
220
        } else if (BB_ARGUMENT_REGROUPEMENT == 'media') {
218
        } else if (BB_ARGUMENT_REGROUPEMENT == 'media') {
221
            $retour .= 'Editeur : ';
219
            $retour .= 'Editeur : ';
222
            if (($var_biblio['open_biblio_str'] == true) && ($editeur != '') && ($edite == 1) && ($get_idstr != '')) {
220
            if (($var_biblio['open_biblio_str'] == true) && ($editeur != '') && ($edite == 1) && ($get_idstr != '')) {
223
                // sert à accéder à des pages différentes selon le type physique
221
                // sert à accéder à des pages différentes selon le type physique
224
                // désactivé pour homogénéiser les accès au popup
222
                // désactivé pour homogénéiser les accès au popup
225
                if ($id_phy == $phy['perio']) {
223
                if ($id_phy == $phy['perio']) {
226
                    $tmp_word = 'str';
224
                    $tmp_word = 'str';
227
                    $tmp_page = 0;
225
                    $tmp_page = 0;
228
                } else {
226
                } else {
229
                    $tmp_word = 'str';
227
                    $tmp_word = 'str';
230
                    $tmp_page = 0;
228
                    $tmp_page = 0;
231
                }
229
                }
232
                $retour .= ' <a href="'.BB_URL_COURANTE_CONSULTATION_AVANCEE.'&amp;page='.$tmp_page.'&amp;'.
230
                $retour .= ' <a href="'.BB_URL_COURANTE_CONSULTATION_AVANCEE.'&amp;page='.$tmp_page.'&amp;'.
233
                            $tmp_word.'='.$get_idstr.'&amp;arg_0=str%3D'.$get_idstr.'&amp;arg_1=coll%3D'.$get_idstr.'&amp;arg_2=book%3D'.$get_idstr.
231
                            $tmp_word.'='.$get_idstr.'&amp;arg_0=str%3D'.$get_idstr.'&amp;arg_1=coll%3D'.$get_idstr.'&amp;arg_2=book%3D'.$get_idstr.
234
                            '&amp;arg_3=media%3D'.$get_idstr.'">'.$editeur.'</a>';
232
                            '&amp;arg_3=media%3D'.$get_idstr.'">'.$editeur.'</a>';
235
            } else if (!empty($editeur)) {
233
            } else if (!empty($editeur)) {
236
                $retour .= $editeur;
234
                $retour .= $editeur;
237
            } else {
235
            } else {
238
                $retour .= 'inconnu';
236
                $retour .= 'inconnu';
239
            }
237
            }
240
        } else {
238
        } else {
241
            if ($var_biblio['open_biblio_str'] == true) {
239
            if ($var_biblio['open_biblio_str'] == true) {
242
                $retour .= '<a href="'.BB_URL_COURANTE_CONSULTATION_AVANCEE.'&amp;str='.$get_idstr.
240
                $retour .= '<a href="'.BB_URL_COURANTE_CONSULTATION_AVANCEE.'&amp;str='.$get_idstr.
243
                            '&amp;arg_0=str%3D'.$get_idstr.'&amp;arg_1=coll%3D'.$get_idstr.
241
                            '&amp;arg_0=str%3D'.$get_idstr.'&amp;arg_1=coll%3D'.$get_idstr.
244
                            '&amp;arg_2=book%3D'.$get_idstr.'&amp;arg_3=media%3D'.$get_idstr.'">
242
                            '&amp;arg_2=book%3D'.$get_idstr.'&amp;arg_3=media%3D'.$get_idstr.'">
245
                            '.$get_nomstr.
243
                            '.$get_nomstr.
246
                        '</a>';
244
                        '</a>';
247
            } else {
245
            } else {
248
                $retour .= $get_nomstr;
246
                $retour .= $get_nomstr;
249
            }
247
            }
250
        }
248
        }
251
        
249
        
252
        if (((!empty($collection_book) && ($collection_book != ''))) || ((!empty($numcoll_book) && ($numcoll_book != '')))) {
250
        if (((!empty($collection_book) && ($collection_book != ''))) || ((!empty($numcoll_book) && ($numcoll_book != '')))) {
253
            $retour .= ' - '.'Collection : '.$collection_book.' '.$numcoll_book;
251
            $retour .= ' - '.'Collection : '.$collection_book.' '.$numcoll_book;
254
        }
252
        }
255
        
253
        
256
        if ((!empty($isbn) && ($isbn != ''))) {
254
        if ((!empty($isbn) && ($isbn != ''))) {
257
            $retour .= ' - '.'ISBN : '.$isbn;
255
            $retour .= ' - '.'ISBN : '.$isbn;
258
        }
256
        }
259
        
257
        
260
        if ((!empty($prix) && ($prix > 0))) {
258
        if ((!empty($prix) && ($prix > 0))) {
261
            $retour .= ' - '.$prix.' '.$monnaie;
259
            $retour .= ' - '.$prix.' '.$monnaie;
262
        }
260
        }
263
        
261
        
264
        if ((!empty($vendu)&&($vendu == -1))) {
262
        if ((!empty($vendu)&&($vendu == -1))) {
265
            $retour .= ' - <img class="'.BB_CLASS_IMG_EPUISE.'" src="'.BB_IMG_EPUISE.'" alt="'.'Epuisé'.'" />';
263
            $retour .= ' - <img class="'.BB_CLASS_IMG_EPUISE.'" src="'.BB_IMG_EPUISE.'" alt="'.'Epuisé'.'" />';
266
        }
264
        }
267
        
265
        
268
        if ((!empty($var_biblio['val_euro'])) && (!empty($idmonnaie)) && (!empty($converter))) {
266
        if ((!empty($var_biblio['val_euro'])) && (!empty($idmonnaie)) && (!empty($converter))) {
269
            if (($var_biblio['val_euro'] != $idmonnaie) && ($converter > 0) && ($prix > 0)) {
267
            if (($var_biblio['val_euro'] != $idmonnaie) && ($converter > 0) && ($prix > 0)) {
270
                $retour .= ' ('.'env. '.round($prix/$converter,2).' &euro;)';
268
                $retour .= ' ('.'env. '.round($prix/$converter,2).' &euro;)';
271
            }
269
            }
272
        }
270
        }
273
        
271
        
274
        if ((!empty($get_langue) && ($get_langue != ''))) {
272
        if ((!empty($get_langue) && ($get_langue != ''))) {
275
            $retour .= ' - '.$get_langue;
273
            $retour .= ' - '.$get_langue;
276
        }
274
        }
277
        
275
        
278
        if ($get_saisie != '') {
276
        if ($get_saisie != '') {
279
            $get_saisie = 'Saisie : '.$get_saisie.' -';
277
            $get_saisie = 'Saisie : '.$get_saisie.' -';
280
        } else if ($get_saisie == '') {
278
        } else if ($get_saisie == '') {
281
            $get_saisie = 'Saisie : '.'? -';
279
            $get_saisie = 'Saisie : '.'? -';
282
        }
280
        }
283
        
281
        
284
        /*    correction du 28 nov 2002
282
        /*    correction du 28 nov 2002
285
        if (($get_saisie != "")&&($get_saisie == $get_nomstr)) $get_saisie = "";
283
        if (($get_saisie != "")&&($get_saisie == $get_nomstr)) $get_saisie = "";
286
        else if ($get_saisie != "") $get_saisie = "Saisie : $get_saisie -";
284
        else if ($get_saisie != "") $get_saisie = "Saisie : $get_saisie -";
287
        else if ($get_saisie == "") $get_saisie = "Saisie : ? -";
285
        else if ($get_saisie == "") $get_saisie = "Saisie : ? -";
288
        */
286
        */
289
        // Là on affiche les Voir Aussi ... si y'en a 
287
        // Là on affiche les Voir Aussi ... si y'en a 
290
        $UnVoirAussi = new VoirAussi($get_iditem, $tbl[BB_ARGUMENT_REGROUPEMENT]);
288
        $UnVoirAussi = new VoirAussi($get_iditem, $tbl[BB_ARGUMENT_REGROUPEMENT]);
291
        
289
        
292
        if ($UnVoirAussi->NbVA > 0) {
290
        if ($UnVoirAussi->NbVA > 0) {
293
            $liste_va = $UnVoirAussi->ListerVoirAussi();
291
            $liste_va = $UnVoirAussi->ListerVoirAussi();
294
            
292
            
295
            $retour .= ' - '.'Consulter : ';
293
            $retour .= ' - '.'Consulter : ';
296
            
294
            
297
            for ($i = 0; $i == (($UnVoirAussi->NbVA) - 1) ; $i++) {
295
            for ($i = 0; $i == (($UnVoirAussi->NbVA) - 1) ; $i++) {
298
                $retour .= '<img class="'.BB_CLASS_IMG_ICONE.'" src="'.$liste_va[$i]['icon_src'].'" alt="'.$liste_va[$i]['icon_alt'].'"/> ';
296
                $retour .= '<img class="'.BB_CLASS_IMG_ICONE.'" src="'.$liste_va[$i]['icon_src'].'" alt="'.$liste_va[$i]['icon_alt'].'"/> ';
299
                $retour .= '<a '.$liste_va[$i]['target'].'>'.$liste_va[$i]['texte'].'</a>';
297
                $retour .= '<a '.$liste_va[$i]['target'].'>'.$liste_va[$i]['texte'].'</a>';
300
                if ($liste_va[$i]['desc'] != '') {
298
                if ($liste_va[$i]['desc'] != '') {
301
                    $retour .= ' - <i>'.$liste_va[$i]['desc'].'</i>';
299
                    $retour .= ' - <i>'.$liste_va[$i]['desc'].'</i>';
302
                }
300
                }
303
                if (($i != 0) && ($i < ($UnVoirAussi->NbVA))) {
301
                if (($i != 0) && ($i < ($UnVoirAussi->NbVA))) {
304
                    $retour .= '<br />'."\n";
302
                    $retour .= '<br />'."\n";
305
                }
303
                }
306
            }
304
            }
307
        }
305
        }
308
        // Fin des Voir Aussi
306
        // Fin des Voir Aussi
309
        
307
        
310
        $retour .= ' - <span class="texte_inactif">';
308
        $retour .= ' - <span class="texte_inactif">';
311
        
309
        
312
        if ((BB_ARGUMENT_REGROUPEMENT != 'article') && ($edite == 0)) {
310
        if ((BB_ARGUMENT_REGROUPEMENT != 'article') && ($edite == 0)) {
313
            $retour .= 'Donnée fournie par ';
311
            $retour .= 'Donnée fournie par ';
314
            if ($get_idstr != 0) {
312
            if ($get_idstr != 0) {
315
                $retour .= '<a href="'.BB_URL_COURANTE_CONSULTATION_AVANCEE.'&amp;str='.$get_idstr.'&amp;page=0&amp;arg_0=str%3D'.$get_idstr.'&amp;arg_1=coll%3D'.
313
                $retour .= '<a href="'.BB_URL_COURANTE_CONSULTATION_AVANCEE.'&amp;str='.$get_idstr.'&amp;page=0&amp;arg_0=str%3D'.$get_idstr.'&amp;arg_1=coll%3D'.
316
                $get_idstr.'&amp;arg_2=book%3D'.$get_idstr.'&amp;arg_3=media%3D'.$get_idstr.'">'.$get_nomstr.'</a>';
314
                $get_idstr.'&amp;arg_2=book%3D'.$get_idstr.'&amp;arg_3=media%3D'.$get_idstr.'">'.$get_nomstr.'</a>';
317
            } else {
315
            } else {
318
                $retour .= $get_nomstr;
316
                $retour .= $get_nomstr;
319
            }
317
            }
320
            $retour .= ' - ';
318
            $retour .= ' - ';
321
        }
319
        }
322
        
320
        
323
        $retour .= $get_saisie.' Art. n°'.$get_iditem.'.</span>';
321
        $retour .= $get_saisie.' Art. n°'.$get_iditem.'.</span>';
324
        
322
        
325
        $retour .= "\n";
323
        $retour .= "\n";
326
        
324
        
327
        if ($j < $nbr_final) {
325
        if ($j < $nbr_final) {
328
            $retour .= '<br /><br/>';
326
            $retour .= '<br /><br/>';
329
        }
327
        }
330
        $retour .= '</li>'."\n";
328
        $retour .= '</li>'."\n";
331
        $j++;
329
        $j++;
332
    }
330
    }
333
    
331
    
334
    $retour .= '</ul>'."\n";
332
    $retour .= '</ul>'."\n";
335
    
333
    
336
    return $retour;
334
    return $retour;
337
}
335
}
338
 
336
 
339
/* +--Fin du code ----------------------------------------------------------------------------------------+
337
/* +--Fin du code ----------------------------------------------------------------------------------------+
340
*
338
*
341
* $Log: not supported by cvs2svn $
339
* $Log: not supported by cvs2svn $
-
 
340
* Revision 1.1  2005/11/23 10:22:25  jp_milcent
-
 
341
* Ajout au dépot de l'application BiblioBota.
-
 
342
* Elle doit à terme migrer dans eFlore.
-
 
343
*
342
* Revision 1.6  2005/08/18 10:43:15  jpm
344
* Revision 1.6  2005/08/18 10:43:15  jpm
343
* Correction chemin.
345
* Correction chemin.
344
*
346
*
345
* Revision 1.5  2005/05/31 13:03:51  jpm
347
* Revision 1.5  2005/05/31 13:03:51  jpm
346
* Correction affichage lien vers structure inconnue.
348
* Correction affichage lien vers structure inconnue.
347
*
349
*
348
* Revision 1.4  2005/05/17 10:10:08  jpm
350
* Revision 1.4  2005/05/17 10:10:08  jpm
349
* Correction des bogues avant mise en ligne du site v4.
351
* Correction des bogues avant mise en ligne du site v4.
350
*
352
*
351
* Revision 1.3  2005/02/24 18:33:26  jpm
353
* Revision 1.3  2005/02/24 18:33:26  jpm
352
* Modification de la gestion des voir aussi.
354
* Modification de la gestion des voir aussi.
353
*
355
*
354
* Revision 1.2  2004/09/14 10:18:17  jpm
356
* Revision 1.2  2004/09/14 10:18:17  jpm
355
* Mise en forme et amélioration du code.
357
* Mise en forme et amélioration du code.
356
* Passage au XHTML strict.
358
* Passage au XHTML strict.
357
*
359
*
358
* Revision 1.1  2004/09/10 18:44:02  jpm
360
* Revision 1.1  2004/09/10 18:44:02  jpm
359
* Ajout des fichiers de gestion du moteur de recherche des médias.
361
* Ajout des fichiers de gestion du moteur de recherche des médias.
360
*
362
*
361
*
363
*
362
* +-- Fin du code ----------------------------------------------------------------------------------------+
364
* +-- Fin du code ----------------------------------------------------------------------------------------+
363
*/
365
*/
364
?>
366
?>