/trunk/eflore_papyrus.php |
---|
34,6 → 34,13 |
GEN_stockerStyleExterne('fancybox', $chemin_commun.'jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css'); |
GEN_stockerStyleExterne('eflore', $chemin.'/presentations/styles/eflore.css'); |
// OpenSearch dynamique |
$referentiel = 'bdtfx'; |
if (isset($_GET['referentiel'])) $referentiel = $_GET['referentiel']; |
$titreOpenSearch = 'eFlore ' . strtoupper($referentiel); |
$cheminOpenSearch = 'configurations/RechercheOpenSearch/OpenSearch' + ucfirst($referentiel) + '.xml'; |
GEN_stockerStyleExterne('opensearch-description', $cheminOpenSearch, $titreOpenSearch, 'search', '', ''); |
// Définition des fichiers JS de l'application pour Papyrus |
GEN_stockerFichierScript('jquery-1.7', $chemin_commun.'jquery/1.7.1'.DS.'jquery-1.7.1.js'); |
GEN_stockerFichierScript('jquery-ui-1.8.16', $chemin_commun.'jquery/jquery-ui/1.8.5/js'.DS.'jquery-ui-1.8.5.custom.min.js'); |
/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&referentiel=' . $referentiel . '&niveau=2&module=recherche&action=rechercheSimple&submit=OK&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 . '&referentiel=' . $referentiel . '"/> |
<Url type="application/x-suggestions+json" rel="self" template="http://api.tela-botanica.org/service:eflore:0.1/' . $referentiel . '/noms?masque={searchTerms}&recherche=etendue&retour.format=oss&navigation.limite=50"/> |
</OpenSearchDescription> |
<!-- configuration du moteur de recherche intégré au navigateur --> |
'; |
?> |
/trunk/configurations/RechercheOpenSearch/OpenSearchIsfan.xml |
---|
New file |
0,0 → 1,13 |
<?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 ISFAN : 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:isfan?type_nom=nom_scientifique&referentiel=isfan&niveau=2&module=recherche&action=rechercheSimple&submit=OK&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=isfan&referentiel=isfan"/> |
<Url type="application/x-suggestions+json" rel="self" template="http://api.tela-botanica.org/service:eflore:0.1/isfan/noms?masque={searchTerms}&recherche=etendue&retour.format=oss&navigation.limite=50"/> |
</OpenSearchDescription> |
<!-- configuration du moteur de recherche intégré au navigateur --> |
/trunk/configurations/RechercheOpenSearch/OpenSearchBdtxa.xml |
---|
New file |
0,0 → 1,13 |
<?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 BDTXA : 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:bdtxa?type_nom=nom_scientifique&referentiel=bdtxa&niveau=2&module=recherche&action=rechercheSimple&submit=OK&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=bdtxa&referentiel=bdtxa"/> |
<Url type="application/x-suggestions+json" rel="self" template="http://api.tela-botanica.org/service:eflore:0.1/bdtxa/noms?masque={searchTerms}&recherche=etendue&retour.format=oss&navigation.limite=50"/> |
</OpenSearchDescription> |
<!-- configuration du moteur de recherche intégré au navigateur --> |
/trunk/configurations/RechercheOpenSearch/OpenSearchBdtfx.xml |
---|
New file |
0,0 → 1,13 |
<?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 BDTFX : 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:eflore_bdtfx?type_nom=nom_scientifique&referentiel=bdtfx&niveau=2&module=recherche&action=rechercheSimple&submit=OK&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=eflore_bdtfx&referentiel=bdtfx"/> |
<Url type="application/x-suggestions+json" rel="self" template="http://api.tela-botanica.org/service:eflore:0.1/bdtfx/noms?masque={searchTerms}&recherche=etendue&retour.format=oss&navigation.limite=50"/> |
</OpenSearchDescription> |
<!-- configuration du moteur de recherche intégré au navigateur --> |
/trunk/index.php |
---|
3,6 → 3,11 |
/** Inclusion du fichier principal de l'application*/ |
require_once 'eflore.php'; |
$url_css_commun = Config::get('url_css_commun'); |
// pour OpenSearch |
$referentiel = 'bdtfx'; |
if (isset($_GET['referentiel'])) $referentiel = $_GET['referentiel']; |
?> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> |
22,7 → 27,7 |
<!-- moteur de recherche dans le navigateur chemin xml --> |
<link rel="search" type="application/opensearchdescription+xml" title="eFlore BDTFX : noms scientifiques" href="configurations/RechercheOpenSearch/RechercheOpenSearch.xml" /> |
<link rel="search" type="application/opensearchdescription+xml" title="eFlore <?php echo strtoupper($referentiel); ?> : noms scientifiques" href="configurations/RechercheOpenSearch/OpenSearch<?php echo ucfirst($referentiel); ?>.xml" /> |
<!-- Favicones --> |
<link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicone/tela_botanica.png" /> |
<link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicone/tela_botanica.ico" /> |