Subversion Repositories eFlore/Applications.bibliobota

Rev

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

Rev 11 Rev 30
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.3 2006-09-20 14:16:32 jp_milcent Exp $
22
// CVS : $Id: bbc_affichage_media.fonct.php,v 1.3 2006/09/20 14:16:32 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.3 $ $Date: 2006-09-20 14:16:32 $
35
*@version       $Revision: 1.3 $ $Date: 2006/09/20 14:16:32 $
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 = str_replace(' - ', '-', ucwords(strtolower(str_replace('-', ' - ', stripslashes($row->B_I_AUTEURS)))));
81
        $get_auteuritem = str_replace(' - ', '-', ucwords(strtolower(str_replace('-', ' - ', stripslashes($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".ColorizeFound($get_auteuritem, $TabFinder['auteur']);
150
            $retour .= "\n".ColorizeFound($get_auteuritem, $TabFinder['auteur']);
151
        } else {
151
        } else {
152
            $retour .= 'Anonyme';
152
            $retour .= 'Anonyme';
153
        }
153
        }
154
        
154
        
155
        $retour .= ' -'."\n".'<b>'.ColorizeFound($get_titreitem, stripslashes($TabFinder['chaine'])).'</b>'."\n";
155
        $retour .= ' -'."\n".'<b>'.ColorizeFound($get_titreitem, stripslashes($TabFinder['chaine'])).'</b>'."\n";
156
        
156
        
157
        if ($get_datefasc > 0) {
157
        if ($get_datefasc > 0) {
158
            $retour .= ' - ' . DAT_formaterDateYYYYMMJJ($get_datefasc);
158
            $retour .= ' - ' . DAT_formaterDateYYYYMMJJ($get_datefasc);
159
        }
159
        }
160
        
160
        
161
        if (($get_resumcle != '') || ($get_comment != '')) {
161
        if (($get_resumcle != '') || ($get_comment != '')) {
162
            $retour .= ' - <i>';
162
            $retour .= ' - <i>';
163
            if ($get_resumcle != '') {
163
            if ($get_resumcle != '') {
164
                $retour .= ColorizeFound($get_resumcle, strtolower(stripslashes($TabFinder['chaine'])));
164
                $retour .= ColorizeFound($get_resumcle, strtolower(stripslashes($TabFinder['chaine'])));
165
            }
165
            }
166
            if (($get_resumcle != '') && ($get_comment != '')) {
166
            if (($get_resumcle != '') && ($get_comment != '')) {
167
                $retour .= ' - ';
167
                $retour .= ' - ';
168
            }
168
            }
169
            if ($get_comment != '') {
169
            if ($get_comment != '') {
170
                $retour .= ColorizeFound($get_comment, strtolower(stripslashes($TabFinder['chaine'])));
170
                $retour .= ColorizeFound($get_comment, strtolower(stripslashes($TabFinder['chaine'])));
171
            }
171
            }
172
            $retour .= '</i>';
172
            $retour .= '</i>';
173
        }
173
        }
174
        
174
        
175
        if ((!empty($get_debut)) && (!empty($get_fin))) {
175
        if ((!empty($get_debut)) && (!empty($get_fin))) {
176
            if (($get_debut > 0)||($get_fin > 0)) {
176
            if (($get_debut > 0)||($get_fin > 0)) {
177
                $retour .= ', p. ';
177
                $retour .= ', p. ';
178
                $retour .= $get_debut;
178
                $retour .= $get_debut;
179
                if (($get_debut > 0) && ($get_fin > 0)) {
179
                if (($get_debut > 0) && ($get_fin > 0)) {
180
                    $retour .= '-';
180
                    $retour .= '-';
181
                }
181
                }
182
                $retour .= $get_fin;
182
                $retour .= $get_fin;
183
            }
183
            }
184
        }
184
        }
185
        
185
        
186
        if ((!empty($volume))) {
186
        if ((!empty($volume))) {
187
            $retour .= ' - '.$volume;
187
            $retour .= ' - '.$volume;
188
        }
188
        }
189
        
189
        
190
        if (!empty($get_geo)) {
190
        if (!empty($get_geo)) {
191
            $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>';
192
        }
192
        }
193
        
193
        
194
        $retour .= ' - ';
194
        $retour .= ' - ';
195
        
195
        
196
        if (BB_ARGUMENT_REGROUPEMENT == 'article') {
196
        if (BB_ARGUMENT_REGROUPEMENT == 'article') {
197
            if (!empty($get_nomstr)) $retour .= "$get_nomstr, ";
197
            if (!empty($get_nomstr)) $retour .= "$get_nomstr, ";
198
            
198
            
199
            if (empty($get_abrege)) {
199
            if (empty($get_abrege)) {
200
                $retour .= $get_nomcoll;
200
                $retour .= $get_nomcoll;
201
            } else {
201
            } else {
202
                $retour .= $get_abrege;
202
                $retour .= $get_abrege;
203
            }
203
            }
204
            
204
            
205
            if (!empty($get_titreserie)) {
205
            if (!empty($get_titreserie)) {
206
                $retour .= ', '.$get_titreserie;
206
                $retour .= ', '.$get_titreserie;
207
            }
207
            }
208
            
208
            
209
            if (($var_biblio['open_biblio_str'] == true) && ($get_nomstr != '')) {
209
            if (($var_biblio['open_biblio_str'] == true) && ($get_nomstr != '')) {
210
                $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.
211
                                '&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.
212
                                '&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.'">'.
213
                                $get_titrefasc.
213
                                $get_titrefasc.
214
                        '</a>';
214
                        '</a>';
215
            } else {
215
            } else {
216
                $retour .= ', '.$get_titrefasc;
216
                $retour .= ', '.$get_titrefasc;
217
            }
217
            }
218
        } else if (BB_ARGUMENT_REGROUPEMENT == 'media') {
218
        } else if (BB_ARGUMENT_REGROUPEMENT == 'media') {
219
            $retour .= 'Editeur : ';
219
            $retour .= 'Editeur : ';
220
            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 != '')) {
221
                // sert à accéder à des pages différentes selon le type physique
221
                // sert à accéder à des pages différentes selon le type physique
222
                // désactivé pour homogénéiser les accès au popup
222
                // désactivé pour homogénéiser les accès au popup
223
                if ($id_phy == $phy['perio']) {
223
                if ($id_phy == $phy['perio']) {
224
                    $tmp_word = 'str';
224
                    $tmp_word = 'str';
225
                    $tmp_page = 0;
225
                    $tmp_page = 0;
226
                } else {
226
                } else {
227
                    $tmp_word = 'str';
227
                    $tmp_word = 'str';
228
                    $tmp_page = 0;
228
                    $tmp_page = 0;
229
                }
229
                }
230
                $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;'.
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.
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.
232
                            '&amp;arg_3=media%3D'.$get_idstr.'">'.$editeur.'</a>';
232
                            '&amp;arg_3=media%3D'.$get_idstr.'">'.$editeur.'</a>';
233
            } else if (!empty($editeur)) {
233
            } else if (!empty($editeur)) {
234
                $retour .= $editeur;
234
                $retour .= $editeur;
235
            } else {
235
            } else {
236
                $retour .= 'inconnu';
236
                $retour .= 'inconnu';
237
            }
237
            }
238
        } else {
238
        } else {
239
            if ($var_biblio['open_biblio_str'] == true) {
239
            if ($var_biblio['open_biblio_str'] == true) {
240
                $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.
241
                            '&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.
242
                            '&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.'">
243
                            '.$get_nomstr.
243
                            '.$get_nomstr.
244
                        '</a>';
244
                        '</a>';
245
            } else {
245
            } else {
246
                $retour .= $get_nomstr;
246
                $retour .= $get_nomstr;
247
            }
247
            }
248
        }
248
        }
249
        
249
        
250
        if (((!empty($collection_book) && ($collection_book != ''))) || ((!empty($numcoll_book) && ($numcoll_book != '')))) {
250
        if (((!empty($collection_book) && ($collection_book != ''))) || ((!empty($numcoll_book) && ($numcoll_book != '')))) {
251
            $retour .= ' - '.'Collection : '.$collection_book.' '.$numcoll_book;
251
            $retour .= ' - '.'Collection : '.$collection_book.' '.$numcoll_book;
252
        }
252
        }
253
        
253
        
254
        if ((!empty($isbn) && ($isbn != ''))) {
254
        if ((!empty($isbn) && ($isbn != ''))) {
255
            $retour .= ' - '.'ISBN : '.$isbn;
255
            $retour .= ' - '.'ISBN : '.$isbn;
256
        }
256
        }
257
        
257
        
258
        if ((!empty($prix) && ($prix > 0))) {
258
        if ((!empty($prix) && ($prix > 0))) {
259
            $retour .= ' - '.$prix.' '.$monnaie;
259
            $retour .= ' - '.$prix.' '.$monnaie;
260
        }
260
        }
261
        
261
        
262
        if ((!empty($vendu)&&($vendu == -1))) {
262
        if ((!empty($vendu)&&($vendu == -1))) {
263
            $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é'.'" />';
264
        }
264
        }
265
        
265
        
266
        if ((!empty($var_biblio['val_euro'])) && (!empty($idmonnaie)) && (!empty($converter))) {
266
        if ((!empty($var_biblio['val_euro'])) && (!empty($idmonnaie)) && (!empty($converter))) {
267
            if (($var_biblio['val_euro'] != $idmonnaie) && ($converter > 0) && ($prix > 0)) {
267
            if (($var_biblio['val_euro'] != $idmonnaie) && ($converter > 0) && ($prix > 0)) {
268
                $retour .= ' ('.'env. '.round($prix/$converter,2).' &euro;)';
268
                $retour .= ' ('.'env. '.round($prix/$converter,2).' &euro;)';
269
            }
269
            }
270
        }
270
        }
271
        
271
        
272
        if ((!empty($get_langue) && ($get_langue != ''))) {
272
        if ((!empty($get_langue) && ($get_langue != ''))) {
273
            $retour .= ' - '.$get_langue;
273
            $retour .= ' - '.$get_langue;
274
        }
274
        }
275
        
275
        
276
        if ($get_saisie != '') {
276
        if ($get_saisie != '') {
277
            $get_saisie = 'Saisie : '.$get_saisie.' -';
277
            $get_saisie = 'Saisie : '.$get_saisie.' -';
278
        } else if ($get_saisie == '') {
278
        } else if ($get_saisie == '') {
279
            $get_saisie = 'Saisie : '.'? -';
279
            $get_saisie = 'Saisie : '.'? -';
280
        }
280
        }
281
        
281
        
282
        /*    correction du 28 nov 2002
282
        /*    correction du 28 nov 2002
283
        if (($get_saisie != "")&&($get_saisie == $get_nomstr)) $get_saisie = "";
283
        if (($get_saisie != "")&&($get_saisie == $get_nomstr)) $get_saisie = "";
284
        else if ($get_saisie != "") $get_saisie = "Saisie : $get_saisie -";
284
        else if ($get_saisie != "") $get_saisie = "Saisie : $get_saisie -";
285
        else if ($get_saisie == "") $get_saisie = "Saisie : ? -";
285
        else if ($get_saisie == "") $get_saisie = "Saisie : ? -";
286
        */
286
        */
287
        // Là on affiche les Voir Aussi ... si y'en a 
287
        // Là on affiche les Voir Aussi ... si y'en a 
288
        $UnVoirAussi = new VoirAussi($get_iditem, $tbl[BB_ARGUMENT_REGROUPEMENT]);
288
        $UnVoirAussi = new VoirAussi($get_iditem, $tbl[BB_ARGUMENT_REGROUPEMENT]);
289
        
289
        
290
        if ($UnVoirAussi->NbVA > 0) {
290
        if ($UnVoirAussi->NbVA > 0) {
291
            $liste_va = $UnVoirAussi->ListerVoirAussi();
291
            $liste_va = $UnVoirAussi->ListerVoirAussi();
292
            
292
            
293
            $retour .= ' - '.'Consulter : ';
293
            $retour .= ' - '.'Consulter : ';
294
            
294
            
295
            for ($i = 0; $i == (($UnVoirAussi->NbVA) - 1) ; $i++) {
295
            for ($i = 0; $i == (($UnVoirAussi->NbVA) - 1) ; $i++) {
296
                $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'].'"/> ';
297
                $retour .= '<a '.$liste_va[$i]['target'].'>'.$liste_va[$i]['texte'].'</a>';
297
                $retour .= '<a '.$liste_va[$i]['target'].'>'.$liste_va[$i]['texte'].'</a>';
298
                if ($liste_va[$i]['desc'] != '') {
298
                if ($liste_va[$i]['desc'] != '') {
299
                    $retour .= ' - <i>'.$liste_va[$i]['desc'].'</i>';
299
                    $retour .= ' - <i>'.$liste_va[$i]['desc'].'</i>';
300
                }
300
                }
301
                if (($i != 0) && ($i < ($UnVoirAussi->NbVA))) {
301
                if (($i != 0) && ($i < ($UnVoirAussi->NbVA))) {
302
                    $retour .= '<br />'."\n";
302
                    $retour .= '<br />'."\n";
303
                }
303
                }
304
            }
304
            }
305
        }
305
        }
306
        // Fin des Voir Aussi
306
        // Fin des Voir Aussi
307
        
307
        
308
        $retour .= ' - <span class="texte_inactif">';
308
        $retour .= ' - <span class="texte_inactif">';
309
        
309
        
310
        if ((BB_ARGUMENT_REGROUPEMENT != 'article') && ($edite == 0)) {
310
        if ((BB_ARGUMENT_REGROUPEMENT != 'article') && ($edite == 0)) {
311
            $retour .= 'Donnée fournie par ';
311
            $retour .= 'Donnée fournie par ';
312
            if ($get_idstr != 0) {
312
            if ($get_idstr != 0) {
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'.
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'.
314
                $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>';
315
            } else {
315
            } else {
316
                $retour .= $get_nomstr;
316
                $retour .= $get_nomstr;
317
            }
317
            }
318
            $retour .= ' - ';
318
            $retour .= ' - ';
319
        }
319
        }
320
        
320
        
321
        $retour .= $get_saisie.' Art. n°'.$get_iditem.'.</span>';
321
        $retour .= $get_saisie.' Art. n°'.$get_iditem.'.</span>';
322
        
322
        
323
        $retour .= "\n";
323
        $retour .= "\n";
324
        
324
        
325
        if ($j < $nbr_final) {
325
        if ($j < $nbr_final) {
326
            $retour .= '<br /><br/>';
326
            $retour .= '<br /><br/>';
327
        }
327
        }
328
        $retour .= '</li>'."\n";
328
        $retour .= '</li>'."\n";
329
        $j++;
329
        $j++;
330
    }
330
    }
331
    
331
    
332
    $retour .= '</ul>'."\n";
332
    $retour .= '</ul>'."\n";
333
    
333
    
334
    return $retour;
334
    return $retour;
335
}
335
}
336
 
336
 
337
/* +--Fin du code ----------------------------------------------------------------------------------------+
337
/* +--Fin du code ----------------------------------------------------------------------------------------+
338
*
338
*
339
* $Log: not supported by cvs2svn $
339
* $Log: bbc_affichage_media.fonct.php,v $
-
 
340
* Revision 1.3  2006/09/20 14:16:32  jp_milcent
-
 
341
* Modification de l'emplacement où l'on traite la chaine auteurs.
-
 
342
*
340
* Revision 1.2  2006/09/20 13:18:35  jp_milcent
343
* Revision 1.2  2006/09/20 13:18:35  jp_milcent
341
* Amélioration de la mise ne majuscule des noms d'auteurs.
344
* Amélioration de la mise ne majuscule des noms d'auteurs.
342
*
345
*
343
* Revision 1.1  2005/11/23 10:22:25  jp_milcent
346
* Revision 1.1  2005/11/23 10:22:25  jp_milcent
344
* Ajout au dépot de l'application BiblioBota.
347
* Ajout au dépot de l'application BiblioBota.
345
* Elle doit à terme migrer dans eFlore.
348
* Elle doit à terme migrer dans eFlore.
346
*
349
*
347
* Revision 1.6  2005/08/18 10:43:15  jpm
350
* Revision 1.6  2005/08/18 10:43:15  jpm
348
* Correction chemin.
351
* Correction chemin.
349
*
352
*
350
* Revision 1.5  2005/05/31 13:03:51  jpm
353
* Revision 1.5  2005/05/31 13:03:51  jpm
351
* Correction affichage lien vers structure inconnue.
354
* Correction affichage lien vers structure inconnue.
352
*
355
*
353
* Revision 1.4  2005/05/17 10:10:08  jpm
356
* Revision 1.4  2005/05/17 10:10:08  jpm
354
* Correction des bogues avant mise en ligne du site v4.
357
* Correction des bogues avant mise en ligne du site v4.
355
*
358
*
356
* Revision 1.3  2005/02/24 18:33:26  jpm
359
* Revision 1.3  2005/02/24 18:33:26  jpm
357
* Modification de la gestion des voir aussi.
360
* Modification de la gestion des voir aussi.
358
*
361
*
359
* Revision 1.2  2004/09/14 10:18:17  jpm
362
* Revision 1.2  2004/09/14 10:18:17  jpm
360
* Mise en forme et amélioration du code.
363
* Mise en forme et amélioration du code.
361
* Passage au XHTML strict.
364
* Passage au XHTML strict.
362
*
365
*
363
* Revision 1.1  2004/09/10 18:44:02  jpm
366
* Revision 1.1  2004/09/10 18:44:02  jpm
364
* Ajout des fichiers de gestion du moteur de recherche des médias.
367
* Ajout des fichiers de gestion du moteur de recherche des médias.
365
*
368
*
366
*
369
*
367
* +-- Fin du code ----------------------------------------------------------------------------------------+
370
* +-- Fin du code ----------------------------------------------------------------------------------------+
368
*/
371
*/
369
?>
372
?>