Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 180 | Rev 183 | 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() {
182 mathias 5
		$("#col-rech-opt-toggle").html("Afficher les options de recherche");
25 jpm 6
		$("#col-rech-opt").hide();
7
		$("#col-rech-opt-toggle").toggle(
8
			function() {
182 mathias 9
				$("#col-rech-opt-toggle").html("Cacher les options de recherche");
128 jpm 10
				$("#col-rech-opt").slideDown("fast");
25 jpm 11
			},
12
			function() {
182 mathias 13
				$("#col-rech-opt-toggle").html("Afficher les options de recherche");
128 jpm 14
				$("#col-rech-opt").slideUp("fast");
25 jpm 15
			}
16
		);
180 mathias 17
		// Rechargement des options sélectionnées dans les select
18
		$('#col-form select').each(function() {
19
			var optionSelectionnee = $(this).attr('data-option-selectionnee');
20
			$(this).find('option[value="' + optionSelectionnee + '"]').attr('selected', 'selected');
21
		});
90 jpm 22
	});
25 jpm 23
</script>
180 mathias 24
 
7 jpm 25
<h2>Rechercher une collection</h2>
180 mathias 26
 
23 jpm 27
<form id="col-form" name="col-form" action="<?=$url_form;?>" method="get">
180 mathias 28
 
29
	<input name="module" type="hidden" value="<?=$url_module;?>" />
30
	<input name="action" type="hidden" value="<?=$url_action;?>" />
31
	<?php if (isset($url_contexte)) : ?>
169 jpm 32
		<input name="contexte" type="hidden" value="<?=$url_contexte;?>" />
180 mathias 33
	<? endif; ?>
34
 
35
	<input name="masque[cible]" type="hidden" value="collections" />
36
 
37
	<div id="col-rech-masque">
38
		<div class="champ-masque">
39
			<label class="gauche">Lieu de stockage</label>
40
			<input name="masque[lieu-stockage]" type="text" value="<?= $masque['lieu-stockage'] ?>" />
41
		</div>
42
		<div class="champ-masque">
43
			<label class="droite">Groupe taxonomique</label>
44
			<select name="masque[veg]" data-option-selectionnee="<?= $masque['veg'] ?>">
45
				<option value=""></option>
46
				<option value="PH">Phanérogames</option>
47
				<option value="GY">Gymnospermes</option>
48
				<option value="AN">Angiospermes</option>
49
				<option value="CR">Cryptogames</option>
50
				<option value="AL">Algues</option>
51
				<option value="CH">Champignons</option>
52
				<option value="LI">Lichens</option>
53
				<option value="BR">Bryophytes</option>
54
				<option value="PT">Ptéridophytes</option>
55
			</select>
56
		</div>
57
		<div class="champ-masque">
58
			<label class="gauche">Lieu de récolte</label>
59
			<input name="masque[zg]" type="text" value="<?= $masque['zg'] ?>" />
60
		</div>
61
		<div class="champ-masque">
62
			<label class="droite">Type de collection</label>
63
			<select name="masque[bot]" data-option-selectionnee="<?= $masque['bot'] ?>">
64
				<option value=""></option>
65
				<option value="HE">Herbier</option>
66
				<option value="CE">Centurie</option>
67
				<option value="DR">Droguier</option>
68
				<option value="CA">Carpothèque</option>
69
				<option value="AL">Collection en alcool</option>
70
				<option value="XY">Xylothèque</option>
71
				<option value="PM">Préparations microscopiques</option>
72
			</select>
73
		</div>
74
		<div class="champ-masque">
75
			<label class="gauche">Personne</label>
76
			<input name="masque[p]" type="text" value="<?= $masque['p'] ?>" />
77
		</div>
78
		<div class="champ-masque">
79
			<label class="droite">→ ayant le rôle</label>
80
			<select name="masque[pr]" data-option-selectionnee="<?= $masque['pr'] ?>">
81
				<option value=""></option>
82
				<option value="CT">Contributeur</option>
83
				<option value="AU">Auteur</option>
84
				<option value="CO">Collecteur</option>
85
				<option value="DE">Déterminateur</option>
86
				<option value="HE">Hébergeur</option>
87
			</select>
88
		</div>
89
	</div>
90
 
91
	<input id="col-rech-ok" type="submit" value="OK" />
92
 
20 jpm 93
</form>
128 jpm 94
 
180 mathias 95
<h2>Rechercher une personne</h2>
96
 
97
<form id="pers-form" name="col-form" action="<?=$url_form;?>" method="get">
98
 
99
	<input name="module" type="hidden" value="<?=$url_module;?>" />
100
	<input name="action" type="hidden" value="<?=$url_action;?>" />
101
	<?php if (isset($url_contexte)) : ?>
102
		<input name="contexte" type="hidden" value="<?=$url_contexte;?>" />
103
	<? endif; ?>
104
 
105
	<input name="masque[cible]" type="hidden" value="personnes" />
106
 
107
	<div id="col-rech-masque">
108
		<div class="champ-masque">
109
			<label class="gauche">Nom de famille</label>
110
			<input name="masque[nom-famille]" type="text" value="<?= $masque['nom-famille'] ?>" />
111
		</div>
112
		<div class="champ-masque">
182 mathias 113
			<label class="droite">Date de collecte</label>
114
			<input name="masque[date-vivant]" type="text" class="droite" value="<?= $masque['date-vivant'] ?>" />
180 mathias 115
		</div>
116
		<div class="champ-masque">
182 mathias 117
			<label class="gauche">Localité</label>
180 mathias 118
			<input name="masque[adresse]" type="text" value="<?= $masque['adresse'] ?>" />
119
		</div>
120
	</div>
121
 
122
	<input id="col-rech-ok" type="submit" value="OK" />
123
 
124
</form>
125
 
126
<br/>
127
<a id="col-rech-opt-toggle" href="#col-rech-opt-txt" title="Précisions sur les options de recherche"></a>
128
 
23 jpm 129
<div id="col-rech-opt">
130
	<h2 id="col-rech-opt-titre">Options de recherche</h2>
131
	<div id="col-rech-opt-txt">
106 jpm 132
		<p>
133
			Par défaut, la recherche est insensible à la casse (majuscule / minuscule) et s'effectue
134
			en intercalant automatiquement le joker % avant et après la chaine recherchée et entre chaque mot
135
			de celle-ci.
136
		</p>
84 jpm 137
		<p>Pour les opérateurs dont la valeur est un <em>texte libre</em> ou une <em>liste</em>,
138
			il est possible d'utiliser des jokers.
182 mathias 139
			Ces "jokers" permettent de modifier la recherche.
23 jpm 140
		</p>
141
		<table>
142
			<thead>
143
				<tr>
144
					<th>Joker</th>
84 jpm 145
					<th>Applicable sur</th>
23 jpm 146
					<th>Explication</th>
182 mathias 147
					<!-- <th>Exemples</th> -->
23 jpm 148
				</tr>
149
			</thead>
150
			<tbody>
151
				<tr>
152
					<td>""</td>
84 jpm 153
					<td>Texte libre</td>
23 jpm 154
					<td>Permet de rechercher sur une expression exacte.</td>
182 mathias 155
					<!-- <td><a href="<?=Recherche::getUrlExemple('"Archives de l\'herbier Granger"')?>">
156
						"Archives de l'herbier Granger"</a></td> -->
23 jpm 157
				</tr>
158
				<tr>
159
					<td>%</td>
84 jpm 160
					<td>Texte libre</td>
23 jpm 161
					<td>Remplace n'importe quel nombre de caractères, y compris aucun.</td>
182 mathias 162
					<!-- <td><a href="<?=Recherche::getUrlExemple('"herbier %Abbé% Carondelet"')?>">
163
						"herbier %Abbé% Carondelet"</a></td> -->
23 jpm 164
				</tr>
165
				<tr>
166
					<td>_</td>
84 jpm 167
					<td>Texte libre</td>
23 jpm 168
					<td>Remplace exactement un caractère</td>
182 mathias 169
					<!-- <td><a href="<?=Recherche::getUrlExemple('p:"Jo_l"')?>">p:"Jo_l"</a></td> -->
23 jpm 170
				</tr>
84 jpm 171
				<tr>
172
					<td>,</td>
173
					<td>Liste</td>
174
					<td>Permet d'indiquer plusieurs valeurs</td>
182 mathias 175
					<!-- <td><a href="<?=Recherche::getUrlExemple('veg:br,ph')?>">veg:br,ph</a></td> -->
84 jpm 176
				</tr>
23 jpm 177
			</tbody>
178
		</table>
179
	</div>
25 jpm 180
</div>
181
<!-- COL - FIN MOTEUR RECHERCHE -->