From b09e5deab3aa408478c251c2d8975863c6d109b2 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Thu, 15 Feb 2007 18:41:50 +0000 Subject: [PATCH] Use OpenSearch toolbar ==> IE7 & FF compatible git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1499 839d8a87-29fc-0310-9880-83ba4fa771e5 --- ChangeLog | 3 +++ htdocs/javascript/xorg.js | 17 ++++++++++++----- htdocs/xorg.opensearch.xml | 11 +++++++++++ htdocs/xorg.src | 14 -------------- templates/search/quick.tpl | 2 +- templates/skin/common.header.tpl | 3 ++- 6 files changed, 29 insertions(+), 21 deletions(-) create mode 100644 htdocs/xorg.opensearch.xml delete mode 100644 htdocs/xorg.src diff --git a/ChangeLog b/ChangeLog index c666141..dbbee9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ New: * Core: - UTF-8 -FRU + * Search: + - Search Engine IE7 compatible -FRU + ================================================================================ VERSION 0.9.13 30 01 2007 diff --git a/htdocs/javascript/xorg.js b/htdocs/javascript/xorg.js index 44c3291..c89dd72 100644 --- a/htdocs/javascript/xorg.js +++ b/htdocs/javascript/xorg.js @@ -44,17 +44,24 @@ function getNow() { // }}} // {{{ Firefox -function addFirefoxEngine() { +function addSearchEngine() +{ + var searchURI = "http://www.polytechnique.org/xorg.opensearch.xml"; if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) { window.sidebar.addSearchEngine( - "http://www.polytechnique.org/xorg.src", + searchURI, "http://www.polytechnique.org/images/xorg.png", - "Recherche rapide X.org", + "Annuaire Polytechnique.org", "Academic"); - } else { alert("Impossible d'installer la barre de recherche Firefox"); } + } else { + try { + window.external.AddSearchProvider(searchURI); + } catch(e) { + alert("Impossible d'installer la barre de recherche"); + } + } } - // }}} // {{{ Events diff --git a/htdocs/xorg.opensearch.xml b/htdocs/xorg.opensearch.xml new file mode 100644 index 0000000..e9161f8 --- /dev/null +++ b/htdocs/xorg.opensearch.xml @@ -0,0 +1,11 @@ + + + Annuaire Polytechnique.org + Recherche rapide dans l'annuaire de Polytechnique.org + polytechnique alumni + contact@polytechnique.org + + fr_FR + UTF-8 + UTF-8 + diff --git a/htdocs/xorg.src b/htdocs/xorg.src deleted file mode 100644 index c7d853d..0000000 --- a/htdocs/xorg.src +++ /dev/null @@ -1,14 +0,0 @@ -# Mozilla/Polytechnique.org plug-in by contact@polytechnique.org - - - - - diff --git a/templates/search/quick.tpl b/templates/search/quick.tpl index 2c0e373..ceb033f 100644 --- a/templates/search/quick.tpl +++ b/templates/search/quick.tpl @@ -52,7 +52,7 @@ sans distinction de casse et sans tenir compte des accents. {if $smarty.session.auth ge AUTH_COOKIE}

Barre de recherche pour Firefox

-

Tu peux installer la barre de recherche rapide directement dans ton navigateur. +

Tu peux installer la barre de recherche rapide directement dans ton navigateur.

{/if} diff --git a/templates/skin/common.header.tpl b/templates/skin/common.header.tpl index 08c360c..d618850 100644 --- a/templates/skin/common.header.tpl +++ b/templates/skin/common.header.tpl @@ -24,10 +24,11 @@ - + + -- 2.1.4