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 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
22 |
// CVS : $Id: bb_consultation.php,v 1.1 2005-11-23 10:22:25 jp_milcent Exp $
|
|
|
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
|
|
|
39 |
*@version $Revision: 1.1 $ $Date: 2005-11-23 10:22:25 $
|
|
|
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 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
56 |
|
|
|
57 |
if (!isset($_GET['consultation'])) {
|
|
|
58 |
include_once 'bbc_recherche.inc.php';
|
|
|
59 |
} elseif (isset($_GET['consultation']) && $_GET['consultation'] == 'avancee') {
|
|
|
60 |
|
|
|
61 |
global $tbl;
|
|
|
62 |
global $var_biblio;
|
|
|
63 |
global $def_livre;
|
|
|
64 |
global $def_euro;
|
|
|
65 |
global $TransTab;
|
|
|
66 |
if ((isset($TransTab)) && ($TransTab != '')) {
|
|
|
67 |
$tableau = FRAG_decoupageChaine($TransTab);
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
if (empty($tableau['pstart'])) {
|
|
|
71 |
$tableau['pstart'] = 0;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
if (isset($_GET['str']) && !empty($_GET['str'])) {
|
|
|
75 |
$tableau['str'] = $_GET['str'];
|
|
|
76 |
include_once 'bbc_info_structure.inc.php';
|
|
|
77 |
} else if (isset($_GET['coll']) && !empty($_GET['coll'])) {
|
|
|
78 |
$tableau['coll'] = $_GET['coll'];
|
|
|
79 |
include_once 'bbc_info_collection.inc.php';
|
|
|
80 |
} else if (isset($_GET['fasc']) && !empty($_GET['fasc'])) {
|
|
|
81 |
$tableau['fasc'] = $_GET['fasc'];
|
|
|
82 |
include_once 'bbc_info_fascicule.inc.php';
|
|
|
83 |
} else if (isset($_GET['art']) && !empty($_GET['art'])) {
|
|
|
84 |
$tableau['art'] = $_GET['art'];
|
|
|
85 |
include_once 'bbc_info_article.inc.php';
|
|
|
86 |
} else if (isset($_GET['book']) && !empty($_GET['book'])) {
|
|
|
87 |
$tableau['book'] = $_GET['book'];
|
|
|
88 |
include_once 'bbc_info_livre.inc.php';
|
|
|
89 |
} else if (isset($_GET['media']) && !empty($_GET['media'])) {
|
|
|
90 |
$tableau['media'] = $_GET['media'];
|
|
|
91 |
include_once 'bbc_info_media.inc.php';
|
|
|
92 |
} else {
|
|
|
93 |
$sortie .= '<p>'."\n";
|
|
|
94 |
$sortie .= 'Pas de paramètre str, coll, fasc, art, media ou livre -- Impossible d\'afficher des données.';
|
|
|
95 |
if (isset($tableau['str'])) {
|
|
|
96 |
$sortie .= ' '.'('.'id_str'.' '.'='.' '.$tableau['str'].')';
|
|
|
97 |
}
|
|
|
98 |
$sortie .= '</p>'."\n";
|
|
|
99 |
}
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
103 |
// | PIED du PROGRAMME |
|
|
|
104 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
105 |
$sortie .= '<!-- BiblioBota - Consultation : FIN -->'."\n";
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
|
|
109 |
*
|
|
|
110 |
* $Log: not supported by cvs2svn $
|
|
|
111 |
* Revision 1.7 2005/05/17 10:10:08 jpm
|
|
|
112 |
* Correction des bogues avant mise en ligne du site v4.
|
|
|
113 |
*
|
|
|
114 |
* Revision 1.6 2005/02/24 18:32:40 jpm
|
|
|
115 |
* Mise en global d'une variable.
|
|
|
116 |
*
|
|
|
117 |
* Revision 1.5 2004/09/16 12:28:57 jpm
|
|
|
118 |
* Ajout de l'affichage d'un message d'erreur.
|
|
|
119 |
*
|
|
|
120 |
* Revision 1.4 2004/09/16 12:06:39 jpm
|
|
|
121 |
* Décomposition du fichier information en plusieurs fichiers.
|
|
|
122 |
*
|
|
|
123 |
* Revision 1.3 2004/09/14 10:18:31 jpm
|
|
|
124 |
* Mise en forme et amélioration du code.
|
|
|
125 |
* Passage au XHTML strict.
|
|
|
126 |
*
|
|
|
127 |
* Revision 1.2 2004/09/10 18:42:44 jpm
|
|
|
128 |
* Transformations des ancien pop-up de Bilblio Bota en consultation avancée...
|
|
|
129 |
* Ajout d'un fichier fournissant les moteurs de recherche et d'un fichier gérant la consultation avancée.
|
|
|
130 |
*
|
|
|
131 |
* Revision 1.1 2004/09/10 09:45:28 jpm
|
|
|
132 |
* Ajout des fichiers BiblioBota configurer pour Papyrus.
|
|
|
133 |
*
|
|
|
134 |
*
|
|
|
135 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
|
|
136 |
*/
|
|
|
137 |
?>
|