Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 23 | Rev 43 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 jpm 1
<!-- COL - DEBUT MOTEUR RECHERCHE -->
2
<script type="text/javascript">
3
	// Function pour cacher / afficher les options de recherche
4
	$(document).ready(function() {
5
		$("#col-rech-opt").hide();
6
		$("#col-rech-opt-toggle").html("Afficher l'aide");
7
		$("#col-rech-opt-toggle").toggle(
8
			function() {
9
				$("#col-rech-opt-toggle").html("Cacher l'aide");
10
				$("#col-rech-opt").toggle("slow");
11
			},
12
			function() {
13
				$("#col-rech-opt-toggle").html("Afficher l'aide");
14
				$("#col-rech-opt").toggle("slow");
15
			}
16
		);
17
	 });
18
</script>
7 jpm 19
<h2>Rechercher une collection</h2>
23 jpm 20
<form id="col-form" name="col-form" action="<?=$url_form;?>" method="get">
8 jpm 21
	<input name="module" type="hidden" value="<?=$url_module;?>" />
22
	<input name="action" type="hidden" value="<?=$url_action;?>" />
25 jpm 23
	<label id="col-rech"for="recherche">Rechercher</label>
24
	<input id="recherche" name="recherche" type="text" value="<?=$recherche;?>" size="75" maxlength="250"/>
25
	<input id="col-rech-ok" type="submit" value="OK" />
26
	<a id="col-rech-opt-toggle" href="#col-rech-opt-txt" title="Précisions sur les options de recherche">Allez à l'aide</a>
20 jpm 27
</form>
23 jpm 28
<div id="col-rech-opt">
29
	<h2 id="col-rech-opt-titre">Options de recherche</h2>
30
	<div id="col-rech-opt-txt">
31
		<p>Par défaut, la recherche est insensible à la casse (majuscule / minuscule) et s'effectue
32
		en intercalant automatiquement le joker % avant et après la chaine recherchée et entre chaque mot de celle-ci.</p>
33
		<p>Le moteur de recherche permet d'utiliser des opérateurs dans le texte recherché pour préciser la requête.</p>
34
		<p>Exemples&nbsp;: <a href="<?=sprintf($url_exemple, urlencode('mpu'))?>">mpu</a>,
35
			<a href="<?=sprintf($url_exemple, urlencode('"herbier de Coste"'))?>">"herbier de Coste"</a>,
36
			<a href="<?=sprintf($url_exemple, urlencode('bot:he'))?>">bot:he</a>,
37
			<a href="<?=sprintf($url_exemple, urlencode('Coste bot:he'))?>">Coste bot:he</a>,
38
			<a href="<?=sprintf($url_exemple, urlencode('herbier zg:France'))?>">herbier zg:France</a>,
39
			<a href="<?=sprintf($url_exemple, urlencode('p:coste pr:co'))?>">p:coste pr:co</a>,
40
			<a href="<?=sprintf($url_exemple, urlencode('Ecole sci:1'))?>">Ecole sci:1</a>.</p>
41
		<table>
42
			<thead>
43
				<tr>
44
					<th>Mot-clé</th>
45
					<th>Valeurs possibles</th>
46
					<th>Signification</th>
47
					<th>Explication</th>
48
					<th>Exemples</th>
49
				</tr>
50
			</thead>
51
			<tbody>
52
				<tr>
53
					<td>sci:</td>
54
					<td>0,1</td>
55
					<td>Recherches scientifiques</td>
56
					<td>Limite les résultats aux institutions autorisant la consultation des collections
57
						<em>sans (=0)</em> ou <em>avec (=1)</em> des objectifs de recherches scientifiques.</td>
58
					<td><a href="<?=sprintf($url_exemple, urlencode('sci:0'))?>">sci:0</a></td>
59
				</tr>
60
				<tr>
61
					<td>bot:</td>
62
					<td>HE (Herbier), CE (Centurie - conservée en dehors d'un herbier), DR (Droguier), CA (Carpothèque),
63
						AL (Collection en alcool), XY (Xylothèque), PM (Collection de préparations microscopiques).</td>
64
					<td>Type de collection botanique</td>
65
					<td>Limite les résultats aux collections botaniques du type indiqué.</td>
66
					<td><a href="<?=sprintf($url_exemple, urlencode('bot:he'))?>">bot:he</a></td>
67
				</tr>
68
				<tr>
69
					<td>zg:</td>
70
					<td>Texte libre</td>
71
					<td>Origine géographique du contenu de la collection</td>
72
					<td>Limite les résultats aux collections dont le contenu correspond à la zone géographique indiquée.</td>
73
					<td><a href="<?=sprintf($url_exemple, urlencode('zg:lozère'))?>">zg:lozère</a></td>
74
				</tr>
75
				<tr>
76
					<td>p:</td>
77
					<td>Texte libre</td>
78
					<td>Nom ou partie du nom d'une personne.</td>
79
					<td>Limite les résultats aux institutions et collections liées a une personne dont le nom ou une
80
						partie du nom correspond à la valeur indiquée.</td>
81
					<td><a href="<?=sprintf($url_exemple, urlencode('p:coste'))?>">p:coste</a></td>
82
				</tr>
83
				<tr>
84
					<td>pr:</td>
85
					<td>CT (Contributeur), AU (Auteur), CO (Collecteur), DE (Déterminateur), HE
86
						(Hébergeur - particulier possédant une collection chez lui).</td>
87
					<td>Rôle d'une personne.</td>
88
					<td>Limite les résultats aux institutions et collections liées a une personne dont le rôle
89
						correspond à la valeur indiquée.</td>
90
					<td><a href="<?=sprintf($url_exemple, urlencode('pr:AU'))?>">pr:AU</a></td>
91
				</tr>
92
			</tbody>
93
		</table>
94
		<p>Pour les opérateurs dont la valeur possible est un <em>texte libre</em>, il est possible d'utiliser des jokers.
95
			Ces "jokers" permettent de modifier la recherche sur une chaine de caractères.</p>
96
		<p>Exemples&nbsp;: <a href="<?=sprintf($url_exemple, urlencode('"herbier de Coste"'))?>">"herbier de Coste"</a>,
97
			<a href="<?=sprintf($url_exemple, urlencode('"herbier % Montpellier"'))?>">"herbier % Montpellier"</a>,
98
			<a href="<?=sprintf($url_exemple, urlencode('p:"Jo_l"'))?>">p:"Jo_l"</a>.
99
		</p>
100
		<table>
101
			<thead>
102
				<tr>
103
					<th>Joker</th>
104
					<th>Explication</th>
105
					<th>Exemples</th>
106
				</tr>
107
			</thead>
108
			<tbody>
109
				<tr>
110
					<td>""</td>
111
					<td>Permet de rechercher sur une expression exacte.</td>
112
					<td><a href="<?=sprintf($url_exemple, urlencode('"Archives de l\'herbier Granger"'))?>">
113
						"Archives de l'herbier Granger"</a></td>
114
				</tr>
115
				<tr>
116
					<td>%</td>
117
					<td>Remplace n'importe quel nombre de caractères, y compris aucun.</td>
118
					<td><a href="<?=sprintf($url_exemple, urlencode('"herbier %Abbé% Carondelet"'))?>">
119
						"herbier %Abbé% Carondelet"</a></td>
120
				</tr>
121
				<tr>
122
					<td>_</td>
123
					<td>Remplace exactement un caractère</td>
124
					<td><a href="<?=sprintf($url_exemple, urlencode('p:"Jo_l"'))?>">p:"Jo_l"</a></td>
125
				</tr>
126
			</tbody>
127
		</table>
128
	</div>
25 jpm 129
</div>
130
<!-- COL - FIN MOTEUR RECHERCHE -->