2 |
jp_milcent |
1 |
<?php
|
|
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
|
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
4 |
// | PHP version 4.1 |
|
|
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
|
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
8 |
// | This library is free software; you can redistribute it and/or |
|
|
|
9 |
// | modify it under the terms of the GNU Lesser General Public |
|
|
|
10 |
// | License as published by the Free Software Foundation; either |
|
|
|
11 |
// | version 2.1 of the License, or (at your option) any later version. |
|
|
|
12 |
// | |
|
|
|
13 |
// | This library is distributed in the hope that it will be useful, |
|
|
|
14 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
15 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
16 |
// | Lesser General Public License for more details. |
|
|
|
17 |
// | |
|
|
|
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 |
|
|
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
|
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
30 |
mathias |
22 |
// CVS : $Id: bb_consultation.php,v 1.1 2005/11/23 10:22:25 jp_milcent Exp $
|
2 |
jp_milcent |
23 |
/**
|
|
|
24 |
* Appli bb_consultation : moteur de recherche de Biblio Bota
|
|
|
25 |
*
|
|
|
26 |
* Cette application permet de gérer les moteurs de recherches et la consultation des informations
|
|
|
27 |
* de l'ensemble des données comprise dans le modèle de Biblio Bota :
|
|
|
28 |
* - articles
|
|
|
29 |
* - livres et média
|
|
|
30 |
* - sites web
|
|
|
31 |
* - organismes
|
|
|
32 |
*
|
|
|
33 |
*@package BiblioBota-Consultation
|
|
|
34 |
//Auteur original :
|
|
|
35 |
*@author Jean-Charles GRANGER <tela@vecteur.org>
|
|
|
36 |
//Autres auteurs :
|
|
|
37 |
*@author Jean-Pascal MILCENT <jpm@clapas.org>
|
|
|
38 |
*@copyright Tela-Botanica 2000-2004
|
30 |
mathias |
39 |
*@version $Revision: 1.1 $ $Date: 2005/11/23 10:22:25 $
|
2 |
jp_milcent |
40 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
41 |
*/
|
|
|
42 |
|
|
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
44 |
// | ENTETE du PROGRAMME |
|
|
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
46 |
/** Inclusion du fichier de configuration spécifique à l'application consultation de BiblioBota.*/
|
|
|
47 |
require_once 'client/biblio_bota/applications/bb_consultation/configuration/bbc_config.inc.php';
|
|
|
48 |
/** Inclusion de la bibliothèque de fonction d'affichage spécifique à l'application consultation de BiblioBota.*/
|
|
|
49 |
require_once BBC_CHEMIN_BIBLIO.'bbc_affichage.fonct.php';
|
|
|
50 |
|
|
|
51 |
// Initialisation de variables
|
|
|
52 |
$sortie .= '<!-- BiblioBota - Consultation : DEBUT -->'."\n";
|
|
|
53 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
54 |
// | CORPS du PROGRAMME |
|
|
|
55 |
// +------------------------------------------------------------------------------------------------------+
|
30 |
mathias |
56 |
mysql_select_db(BB_BDD_NOM);
|
2 |
jp_milcent |
57 |
|
|
|
58 |
if (!isset($_GET['consultation'])) {
|
|
|
59 |
include_once 'bbc_recherche.inc.php';
|
|
|
60 |
} elseif (isset($_GET['consultation']) && $_GET['consultation'] == 'avancee') {
|
|
|
61 |
|
|
|
62 |
global $tbl;
|
|
|
63 |
global $var_biblio;
|
|
|
64 |
global $def_livre;
|
|
|
65 |
global $def_euro;
|
|
|
66 |
global $TransTab;
|
|
|
67 |
if ((isset($TransTab)) && ($TransTab != '')) {
|
|
|
68 |
$tableau = FRAG_decoupageChaine($TransTab);
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
if (empty($tableau['pstart'])) {
|
|
|
72 |
$tableau['pstart'] = 0;
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
if (isset($_GET['str']) && !empty($_GET['str'])) {
|
|
|
76 |
$tableau['str'] = $_GET['str'];
|
|
|
77 |
include_once 'bbc_info_structure.inc.php';
|
|
|
78 |
} else if (isset($_GET['coll']) && !empty($_GET['coll'])) {
|
|
|
79 |
$tableau['coll'] = $_GET['coll'];
|
|
|
80 |
include_once 'bbc_info_collection.inc.php';
|
|
|
81 |
} else if (isset($_GET['fasc']) && !empty($_GET['fasc'])) {
|
|
|
82 |
$tableau['fasc'] = $_GET['fasc'];
|
|
|
83 |
include_once 'bbc_info_fascicule.inc.php';
|
|
|
84 |
} else if (isset($_GET['art']) && !empty($_GET['art'])) {
|
|
|
85 |
$tableau['art'] = $_GET['art'];
|
|
|
86 |
include_once 'bbc_info_article.inc.php';
|
|
|
87 |
} else if (isset($_GET['book']) && !empty($_GET['book'])) {
|
|
|
88 |
$tableau['book'] = $_GET['book'];
|
|
|
89 |
include_once 'bbc_info_livre.inc.php';
|
|
|
90 |
} else if (isset($_GET['media']) && !empty($_GET['media'])) {
|
|
|
91 |
$tableau['media'] = $_GET['media'];
|
|
|
92 |
include_once 'bbc_info_media.inc.php';
|
|
|
93 |
} else {
|
|
|
94 |
$sortie .= '<p>'."\n";
|
|
|
95 |
$sortie .= 'Pas de paramètre str, coll, fasc, art, media ou livre -- Impossible d\'afficher des données.';
|
|
|
96 |
if (isset($tableau['str'])) {
|
|
|
97 |
$sortie .= ' '.'('.'id_str'.' '.'='.' '.$tableau['str'].')';
|
|
|
98 |
}
|
|
|
99 |
$sortie .= '</p>'."\n";
|
|
|
100 |
}
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
104 |
// | PIED du PROGRAMME |
|
|
|
105 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
106 |
$sortie .= '<!-- BiblioBota - Consultation : FIN -->'."\n";
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
|
|
110 |
*
|
30 |
mathias |
111 |
* $Log: bb_consultation.php,v $
|
|
|
112 |
* Revision 1.1 2005/11/23 10:22:25 jp_milcent
|
|
|
113 |
* Ajout au dépot de l'application BiblioBota.
|
|
|
114 |
* Elle doit à terme migrer dans eFlore.
|
|
|
115 |
*
|
2 |
jp_milcent |
116 |
* Revision 1.7 2005/05/17 10:10:08 jpm
|
|
|
117 |
* Correction des bogues avant mise en ligne du site v4.
|
|
|
118 |
*
|
|
|
119 |
* Revision 1.6 2005/02/24 18:32:40 jpm
|
|
|
120 |
* Mise en global d'une variable.
|
|
|
121 |
*
|
|
|
122 |
* Revision 1.5 2004/09/16 12:28:57 jpm
|
|
|
123 |
* Ajout de l'affichage d'un message d'erreur.
|
|
|
124 |
*
|
|
|
125 |
* Revision 1.4 2004/09/16 12:06:39 jpm
|
|
|
126 |
* Décomposition du fichier information en plusieurs fichiers.
|
|
|
127 |
*
|
|
|
128 |
* Revision 1.3 2004/09/14 10:18:31 jpm
|
|
|
129 |
* Mise en forme et amélioration du code.
|
|
|
130 |
* Passage au XHTML strict.
|
|
|
131 |
*
|
|
|
132 |
* Revision 1.2 2004/09/10 18:42:44 jpm
|
|
|
133 |
* Transformations des ancien pop-up de Bilblio Bota en consultation avancée...
|
|
|
134 |
* Ajout d'un fichier fournissant les moteurs de recherche et d'un fichier gérant la consultation avancée.
|
|
|
135 |
*
|
|
|
136 |
* Revision 1.1 2004/09/10 09:45:28 jpm
|
|
|
137 |
* Ajout des fichiers BiblioBota configurer pour Papyrus.
|
|
|
138 |
*
|
|
|
139 |
*
|
|
|
140 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
|
|
141 |
*/
|
|
|
142 |
?>
|