Subversion Repositories eFlore/Applications.coel-consultation

Rev

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