Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev Author Line No. Line
246 mathias 1
<!-- COL - DEBUT MOTEUR RECHERCHE PUBLICATIONS -->
2
<script type="text/javascript">
3
	// Function pour cacher / afficher les options de recherche
4
	$(document).ready(function() {
5
		$("#col-rech-opt-toggle").html("Afficher les options de recherche");
6
		$("#col-rech-opt").hide();
7
		$("#col-rech-opt-toggle").toggle(
8
			function() {
9
				$("#col-rech-opt-toggle").html("Cacher les options de recherche");
10
				$("#col-rech-opt").slideDown("fast");
11
			},
12
			function() {
13
				$("#col-rech-opt-toggle").html("Afficher les options de recherche");
14
				$("#col-rech-opt").slideUp("fast");
15
			}
16
		);
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
		});
22
	});
23
</script>
24
 
25
<div class="coel-consultation">
26
	<h2 class="titre-moteur-recherche">Rechercher une publication</h2>
27
 
28
	<form id="pub-form" name="col-form" action="<?=$url_form;?>" method="get">
29
 
30
		<input name="module" type="hidden" value="<?=$url_module;?>" />
31
		<input name="action" type="hidden" value="<?=$url_action;?>" />
32
		<?php if (isset($url_contexte)) : ?>
33
			<input name="contexte" type="hidden" value="<?=$url_contexte;?>" />
34
		<? endif; ?>
35
 
36
		<div id="col-rech-masque">
247 mathias 37
			<div class="champ-masque long">
38
				<label class="label-gauche">Recherche libre</label>
39
				<input class="long" name="masque[libre]" value="<?= $masque['libre'] ?>" />
40
			</div>
246 mathias 41
			<div class="champ-masque" title="Titre">
42
				<label class="label-gauche">Titre</label>
43
				<input name="masque[titre]" type="text" value="<?= $masque['titre'] ?>" />
44
			</div>
45
			<div class="champ-masque" title="Auteur">
46
				<label class="label-droite">Auteur</label>
47
				<input name="masque[auteur]" type="text" value="<?= $masque['auteur'] ?>" />
48
			</div>
49
			<div class="champ-masque" title="Date">
50
				<label class="label-gauche">Date</label>
51
				<input name="masque[date]" type="text" value="<?= $masque['date'] ?>" />
52
			</div>
247 mathias 53
			<div class="champ-masque">
54
				<label class="label-droite">Nom de l'ouvrage</label>
55
				<input name="masque[ouvrage]" value="<?= $masque['ouvrage'] ?>" />
56
			</div>
246 mathias 57
		</div>
58
 
59
		<input id="col-rech-ok" type="submit" value="OK" />
60
	</form>
61
 
62
	<br/>
63
	<a id="col-rech-opt-toggle" href="#col-rech-opt-txt" title="Précisions sur les options de recherche"></a>
64
 
65
	<div id="col-rech-opt">
66
		<h2 id="col-rech-opt-titre">Options de recherche</h2>
67
		<div id="col-rech-opt-txt">
68
			<p>
69
				Par défaut, la recherche est insensible à la casse (majuscule / minuscule) et s'effectue
70
				en intercalant automatiquement le joker % avant et après la chaine recherchée et entre chaque mot
71
				de celle-ci.
72
			</p>
73
			<p>Pour les opérateurs dont la valeur est un <em>texte libre</em> ou une <em>liste</em>,
74
				il est possible d'utiliser des jokers.
75
				Ces "jokers" permettent de modifier la recherche.
76
			</p>
77
			<table>
78
				<thead>
79
					<tr>
80
						<th>Joker</th>
81
						<th>Applicable sur</th>
82
						<th>Explication</th>
83
						<!-- <th>Exemples</th> -->
84
					</tr>
85
				</thead>
86
				<tbody>
87
					<tr>
88
						<td>""</td>
89
						<td>Texte libre</td>
90
						<td>Permet de rechercher sur une expression exacte.</td>
91
						<!-- <td><a href="<?=Recherche::getUrlExemple('"Archives de l\'herbier Granger"')?>">
92
							"Archives de l'herbier Granger"</a></td> -->
93
					</tr>
94
					<tr>
95
						<td>%</td>
96
						<td>Texte libre</td>
97
						<td>Remplace n'importe quel nombre de caractères, y compris aucun.</td>
98
						<!-- <td><a href="<?=Recherche::getUrlExemple('"herbier %Abbé% Carondelet"')?>">
99
							"herbier %Abbé% Carondelet"</a></td> -->
100
					</tr>
101
					<tr>
102
						<td>_</td>
103
						<td>Texte libre</td>
104
						<td>Remplace exactement un caractère</td>
105
						<!-- <td><a href="<?=Recherche::getUrlExemple('p:"Jo_l"')?>">p:"Jo_l"</a></td> -->
106
					</tr>
107
					<tr>
108
						<td>,</td>
109
						<td>Liste</td>
110
						<td>Permet d'indiquer plusieurs valeurs</td>
111
						<!-- <td><a href="<?=Recherche::getUrlExemple('veg:br,ph')?>">veg:br,ph</a></td> -->
112
					</tr>
113
				</tbody>
114
			</table>
115
		</div>
116
	</div>
117
</div>
118
<!-- COL - FIN MOTEUR RECHERCHE PUBLICATIONS -->