Subversion Repositories eFlore/Applications.coel-consultation

Rev

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