Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 247 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!-- COL - DEBUT MOTEUR RECHERCHE PUBLICATIONS -->
<script type="text/javascript">
        // Function pour cacher / afficher les options de recherche
        $(document).ready(function() {
                $("#col-rech-opt-toggle").html("Afficher les options de recherche");
                $("#col-rech-opt").hide();
                $("#col-rech-opt-toggle").toggle(
                        function() {
                                $("#col-rech-opt-toggle").html("Cacher les options de recherche");
                                $("#col-rech-opt").slideDown("fast");
                        },
                        function() {
                                $("#col-rech-opt-toggle").html("Afficher les options de recherche");
                                $("#col-rech-opt").slideUp("fast");
                        }
                );
                // Rechargement des options sélectionnées dans les select
                $('#col-form select').each(function() {
                        var optionSelectionnee = $(this).attr('data-option-selectionnee');
                        $(this).find('option[value="' + optionSelectionnee + '"]').attr('selected', 'selected');
                });
        });
</script>

<div class="coel-consultation">
        <h2 class="titre-moteur-recherche">Rechercher une publication</h2>

        <form id="pub-form" name="col-form" action="<?=$url_form;?>" method="get">

                <input name="module" type="hidden" value="<?=$url_module;?>" />
                <input name="action" type="hidden" value="<?=$url_action;?>" />
                <?php if (isset($url_contexte)) : ?>
                        <input name="contexte" type="hidden" value="<?=$url_contexte;?>" />
                <? endif; ?>

                <div id="col-rech-masque">
                        <div class="champ-masque long">
                                <label class="label-gauche">Recherche libre</label>
                                <input class="long" name="masque[libre]" value="<?= $masque['libre'] ?>" />
                        </div>
                        <div class="champ-masque" title="Titre">
                                <label class="label-gauche">Titre</label>
                                <input name="masque[titre]" type="text" value="<?= $masque['titre'] ?>" />
                        </div>
                        <div class="champ-masque" title="Auteur">
                                <label class="label-droite">Auteur</label>
                                <input name="masque[auteur]" type="text" value="<?= $masque['auteur'] ?>" />
                        </div>
                        <div class="champ-masque" title="Date">
                                <label class="label-gauche">Date</label>
                                <input name="masque[date]" type="text" value="<?= $masque['date'] ?>" />
                        </div>
                        <div class="champ-masque">
                                <label class="label-droite">Nom de l'ouvrage</label>
                                <input name="masque[ouvrage]" value="<?= $masque['ouvrage'] ?>" />
                        </div>
                </div>

                <input id="col-rech-ok" type="submit" value="OK" />
        </form>

        <br/>
        <a id="col-rech-opt-toggle" href="#col-rech-opt-txt" title="Précisions sur les options de recherche"></a>

        <div id="col-rech-opt">
                <h2 id="col-rech-opt-titre">Options de recherche</h2>
                <div id="col-rech-opt-txt">
                        <p>
                                Par défaut, la recherche est insensible à la casse (majuscule / minuscule) et s'effectue
                                en intercalant automatiquement le joker % avant et après la chaine recherchée et entre chaque mot
                                de celle-ci.
                        </p>
                        <p>Pour les opérateurs dont la valeur est un <em>texte libre</em> ou une <em>liste</em>,
                                il est possible d'utiliser des jokers.
                                Ces "jokers" permettent de modifier la recherche.
                        </p>
                        <table>
                                <thead>
                                        <tr>
                                                <th>Joker</th>
                                                <th>Applicable sur</th>
                                                <th>Explication</th>
                                                <!-- <th>Exemples</th> -->
                                        </tr>
                                </thead>
                                <tbody>
                                        <tr>
                                                <td>""</td>
                                                <td>Texte libre</td>
                                                <td>Permet de rechercher sur une expression exacte.</td>
                                                <!-- <td><a href="<?=Recherche::getUrlExemple('"Archives de l\'herbier Granger"')?>">
                                                        "Archives de l'herbier Granger"</a></td> -->
                                        </tr>
                                        <tr>
                                                <td>%</td>
                                                <td>Texte libre</td>
                                                <td>Remplace n'importe quel nombre de caractères, y compris aucun.</td>
                                                <!-- <td><a href="<?=Recherche::getUrlExemple('"herbier %Abbé% Carondelet"')?>">
                                                        "herbier %Abbé% Carondelet"</a></td> -->
                                        </tr>
                                        <tr>
                                                <td>_</td>
                                                <td>Texte libre</td>
                                                <td>Remplace exactement un caractère</td>
                                                <!-- <td><a href="<?=Recherche::getUrlExemple('p:"Jo_l"')?>">p:"Jo_l"</a></td> -->
                                        </tr>
                                        <tr>
                                                <td>,</td>
                                                <td>Liste</td>
                                                <td>Permet d'indiquer plusieurs valeurs</td>
                                                <!-- <td><a href="<?=Recherche::getUrlExemple('veg:br,ph')?>">veg:br,ph</a></td> -->
                                        </tr>
                                </tbody>
                        </table>
                </div>
        </div>
</div>
<!-- COL - FIN MOTEUR RECHERCHE PUBLICATIONS -->