[geeklog-devel] Open Search API

Michael Jervis mjervis at gmail.com
Tue Apr 22 02:38:14 EDT 2008


Just thought, it would be /really/ nice to see support for
auto-install of a firefox search option for any Geeklog site via the
OpenSearch API.

Looking at Wikipedia, you need to  add a header:
		<link rel="search" type="application/opensearchdescription+xml"
href="/w/opensearch_desc.php" title="Wikipedia (en)" />
And a small packet of XML:
<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Wikipedia (en)</ShortName>
<Description>Wikipedia (en)</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&search={searchTerms}"/>
<Url type="application/x-suggestions+json" method="GET"
template="http://en.wikipedia.org/w/api.php?action=opensearch&search={searchTerms}&namespace=0"/>
</OpenSearchDescription>

And then it's done. When you visit Wikipedia, the downarrow on the
search selector goes blue and you can just add that site.

Maybe the guy doing the GSoC could add that too?

-- 
Michael Jervis
mjervis at gmail.com
504B03041400000008008F846431E3543A820800000006000000060000007765
62676F642B4F4D4ACF4F0100504B010214001400000008008F846431E3543A82
0800000006000000060000000000000000002000000000000000776562676F64
504B05060000000001000100340000002C0000000000



More information about the geeklog-devel mailing list