[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#103975: Sherlock searchability (Mozilla 'Search' sidebar)



On Sat, Jul 28, 2007 at 12:32:02AM +0200, Bas Zoetekouw wrote:
> Hi Kevin!
> 
> You wrote:
> 
> > Hi.  I think it'd be just swell if you could search packages.debian.org
> > and the bugs database through the 'Search' sidebar in Mozilla.  And, in
> > fact, one can without too much effort.  (See attatched Sherlock
> > extension files.)  But it would work even BETTER with just a little help
> > from the server side of things.
> 
> I'm currently cleaning out old bugs for the debian webpages, and I
> encountered this request [1], which you submitted back in 2001.  Could
> you please take a look at it and see if it's still relevant?  AFAIK,
> firefox doesn't have a  search sidebar anymore, so it seems that this
> bug can be safely closed.  What do you think?

Firefox *does* have a "search" box (as does IE7, IIRC). You can add
search engines there, too. For example, all pages on the english
wikipedia contain this in their <head> section:

<link rel="search" type="application/opensearchdescription+xml" href="/w/opensearch_desc.php" title="Wikipedia (English)">

with /w/opensearch_desc.php being:

<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/";>
<ShortName>Wikipedia (English)</ShortName>
<Description>Wikipedia (English)</Description>
<Image height="16" width="16" type="image/x-icon">http://en.wikipedia.org/favicon.ico</Image>
<Url type="text/html" method="get" template="http://en.wikipedia.org/w/index.php?title=Special:Search&amp;search={searchTerms}"/>
<Url type="application/x-suggestions+json" method="GET" template="http://en.wikipedia.org/w/api.php?action=opensearch&amp;search={searchTerms}"/>
</OpenSearchDescription>

This should be easy enough to adapt, I guess.

-- 
<Lo-lan-do> Home is where you have to wash the dishes.
  -- #debian-devel, Freenode, 2004-09-22



Reply to: