Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 188 | 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
		);
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
 
194 mathias 38
<div id="zone_contenu_corps">
180 mathias 39
 
194 mathias 40
<h1>Moteur de recherche sur les herbiers</h1>
41
 
42
<h2 class="titre-moteur-recherche">Rechercher une collection</h2>
43
 
23 jpm 44
<form id="col-form" name="col-form" action="<?=$url_form;?>" method="get">
180 mathias 45
 
46
	<input name="module" type="hidden" value="<?=$url_module;?>" />
47
	<input name="action" type="hidden" value="<?=$url_action;?>" />
48
	<?php if (isset($url_contexte)) : ?>
169 jpm 49
		<input name="contexte" type="hidden" value="<?=$url_contexte;?>" />
180 mathias 50
	<? endif; ?>
51
 
52
	<input name="masque[cible]" type="hidden" value="collections" />
53
 
54
	<div id="col-rech-masque">
194 mathias 55
		<div class="champ-masque" title="Lieu de stockage">
56
			<label class="label-gauche">Localité institution</label>
180 mathias 57
			<input name="masque[lieu-stockage]" type="text" value="<?= $masque['lieu-stockage'] ?>" />
58
		</div>
59
		<div class="champ-masque">
183 mathias 60
			<label class="label-droite">Groupe taxonomique</label>
180 mathias 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">
183 mathias 75
			<label class="label-gauche">Lieu de récolte</label>
180 mathias 76
			<input name="masque[zg]" type="text" value="<?= $masque['zg'] ?>" />
77
		</div>
78
		<div class="champ-masque">
183 mathias 79
			<label class="label-droite">Type de collection</label>
180 mathias 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>
194 mathias 91
		<div class="champ-masque" title="Contributeur, auteur, collecteur, déterminateur ou hébergeur">
183 mathias 92
			<label class="label-gauche">Personne</label>
185 mathias 93
			<input id="nom-personne" name="masque[p]" type="text" value="<?= $masque['p'] ?>" />
180 mathias 94
		</div>
194 mathias 95
		<!-- <div class="champ-masque">
185 mathias 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'] ?>">
180 mathias 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>
194 mathias 105
		</div> -->
180 mathias 106
	</div>
107
 
108
	<input id="col-rech-ok" type="submit" value="OK" />
109
 
20 jpm 110
</form>
194 mathias 111
<br/>
128 jpm 112
 
194 mathias 113
<h2 class="titre-moteur-recherche">Rechercher une personne</h2>
180 mathias 114
 
115
<form id="pers-form" name="col-form" action="<?=$url_form;?>" method="get">
116
 
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;?>" />
121
	<? endif; ?>
122
 
123
	<input name="masque[cible]" type="hidden" value="personnes" />
124
 
125
	<div id="col-rech-masque">
126
		<div class="champ-masque">
183 mathias 127
			<label class="label-gauche">Nom de famille</label>
180 mathias 128
			<input name="masque[nom-famille]" type="text" value="<?= $masque['nom-famille'] ?>" />
129
		</div>
194 mathias 130
		<div class="champ-masque" title="Date comprise entre la date de naissance et la date de décès">
183 mathias 131
			<label class="label-droite">Date de collecte</label>
132
			<input name="masque[date-vivant]" type="text" class="input-droite" value="<?= $masque['date-vivant'] ?>" />
180 mathias 133
		</div>
134
		<div class="champ-masque">
135
		</div>
194 mathias 136
		<div class="champ-masque" title="Adresse courante ou lieu de naissance ou lieu de décès">
185 mathias 137
			<label class="label-droite">Localité</label>
138
			<input name="masque[adresse]" type="text" class="input-droite" value="<?= $masque['adresse'] ?>" />
139
		</div>
180 mathias 140
	</div>
141
 
142
	<input id="col-rech-ok" type="submit" value="OK" />
143
 
144
</form>
145
 
146
<br/>
147
<a id="col-rech-opt-toggle" href="#col-rech-opt-txt" title="Précisions sur les options de recherche"></a>
148
 
23 jpm 149
<div id="col-rech-opt">
150
	<h2 id="col-rech-opt-titre">Options de recherche</h2>
151
	<div id="col-rech-opt-txt">
106 jpm 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>
84 jpm 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.
182 mathias 159
			Ces "jokers" permettent de modifier la recherche.
23 jpm 160
		</p>
161
		<table>
162
			<thead>
163
				<tr>
164
					<th>Joker</th>
84 jpm 165
					<th>Applicable sur</th>
23 jpm 166
					<th>Explication</th>
182 mathias 167
					<!-- <th>Exemples</th> -->
23 jpm 168
				</tr>
169
			</thead>
170
			<tbody>
171
				<tr>
172
					<td>""</td>
84 jpm 173
					<td>Texte libre</td>
23 jpm 174
					<td>Permet de rechercher sur une expression exacte.</td>
182 mathias 175
					<!-- <td><a href="<?=Recherche::getUrlExemple('"Archives de l\'herbier Granger"')?>">
176
						"Archives de l'herbier Granger"</a></td> -->
23 jpm 177
				</tr>
178
				<tr>
179
					<td>%</td>
84 jpm 180
					<td>Texte libre</td>
23 jpm 181
					<td>Remplace n'importe quel nombre de caractères, y compris aucun.</td>
182 mathias 182
					<!-- <td><a href="<?=Recherche::getUrlExemple('"herbier %Abbé% Carondelet"')?>">
183
						"herbier %Abbé% Carondelet"</a></td> -->
23 jpm 184
				</tr>
185
				<tr>
186
					<td>_</td>
84 jpm 187
					<td>Texte libre</td>
23 jpm 188
					<td>Remplace exactement un caractère</td>
182 mathias 189
					<!-- <td><a href="<?=Recherche::getUrlExemple('p:"Jo_l"')?>">p:"Jo_l"</a></td> -->
23 jpm 190
				</tr>
84 jpm 191
				<tr>
192
					<td>,</td>
193
					<td>Liste</td>
194
					<td>Permet d'indiquer plusieurs valeurs</td>
182 mathias 195
					<!-- <td><a href="<?=Recherche::getUrlExemple('veg:br,ph')?>">veg:br,ph</a></td> -->
84 jpm 196
				</tr>
23 jpm 197
			</tbody>
198
		</table>
199
	</div>
25 jpm 200
</div>
194 mathias 201
</div>
25 jpm 202
<!-- COL - FIN MOTEUR RECHERCHE -->