Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1198 → Rev 1199

/trunk/configurations/RechercheOpenSearch/OpenSearchNomSci.php
New file
0,0 → 1,31
<?php
/**
* @author mathias
* Marche pas car l'exécution de ce bout de PHP est renvoyée par le serveur comme du HTML, ça rajoute des balises etc.
* Soit faut le passer en Webservice, soit faut... je sais pas :)
*/
$page = 'eflore_bdtfx';
if (isset($_GET['page'])) {
$page = $_GET['page'];
}
$referentiel = 'bdtfx';
if (isset($_GET['referentiel'])) {
$referentiel = $_GET['referentiel'];
}
 
echo '
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:ie="http://schemas.microsoft.com/Search/2008/">
<ShortName>eFlore ' . strtoupper($referentiel) . ' : noms scientifiques</ShortName>
<Description>flore électronique en ligne</Description>
<Image height="16" width="16" type="image/ico"> http://www.tela-botanica.org/sites/commun/generique/images/favicone/tela_botanica.ico </Image>
<Url type="text/html" method="GET" template="http://www.tela-botanica.org/page:' . $page . '?type_nom=nom_scientifique&amp;referentiel=' . $referentiel . '&amp;niveau=2&amp;module=recherche&amp;action=rechercheSimple&amp;submit=OK&amp;nom={searchTerms}"/>
<Language>fr</Language>
<developer>Tela Botanica</developer>
<InputEncoding>UTF-8</InputEncoding>
<Url type="application/opensearchdescription+xml" rel="self" template="http://www.tela-botanica.org/eflore/consultation/configurations/OpenSearchParReferentiel.php?page=' . $page . '&amp;referentiel=' . $referentiel . '"/>
<Url type="application/x-suggestions+json" rel="self" template="http://api.tela-botanica.org/service:eflore:0.1/' . $referentiel . '/noms?masque={searchTerms}&amp;recherche=etendue&amp;retour.format=oss&amp;navigation.limite=50"/>
</OpenSearchDescription>
<!-- configuration du moteur de recherche intégré au navigateur -->
';
?>