Imported From: http://groups.google.com/group/in-portal-dev/browse_thread/thread/735947eeea985077#
Recently I've accidentally pressed TAB when typing a website address. And my
Google Chrome browser displayed site-specific search form, that allowed me
search data on that site even without visiting it.
For example you place <link rel="search"
type="application/opensearchdescription+xml" href="
http://www.website.com/opensearch.php" title="description_here" />
Then you provide that "opensearch.php" file, that contains OpenSearch
settings, to be used by browser (or any program, that supports open search):
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Company</ShortName>
<Description>Company Search</Description>
<Contact/>
<Url type="text/html" template="
http://www.website.com/index.php?story={searchTerms}&do=search&subaction=search
"/>
<LongName>Company Search</LongName>
<Image height="64" width="64" type="image/png">
http://www.website.com/logo.png</Image>
<Image height="16" width="16" type="image/vnd.microsoft.icon">
http://www.website.com/favicon.ico</Image>
<Developer>Company (http://www.website.com)</Developer>
<Attribution>Copyright 2007-2011 Company.</Attribution>
<SyndicationRight>open</SyndicationRight>
<AdultContent>false</AdultContent>
<Language>ru-ru</Language>
<OutputEncoding>windows-1251</OutputEncoding>
<InputEncoding>windows-1251</InputEncoding>
</OpenSearchDescription>
And it works.
Here are specifications:
http://www.opensearch.org/Specifications/OpenSearch/1.1
I think, that it will be good for In-Portal to have it.
No additional programming needed, only create XML file with a set of
settings.
--
Best Regards,