Subversion Repositories eFlore/Applications.coel-consultation

Rev

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