<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Learning the World &#187; opensearch</title>
	<atom:link href="http://learningtheworld.eu/tag/opensearch/feed/" rel="self" type="application/rss+xml" />
	<link>http://learningtheworld.eu</link>
	<description></description>
	<lastBuildDate>Tue, 06 Nov 2012 00:17:33 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Extend the Searchbar with OpenSearch</title>
		<link>http://learningtheworld.eu/2008/opensearch/</link>
		<comments>http://learningtheworld.eu/2008/opensearch/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 20:00:14 +0000</pubDate>
		<dc:creator><![CDATA[Martin Kliehm]]></dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[a9]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[opensearch]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[searchbar]]></category>
		<category><![CDATA[suggestion]]></category>
		<category><![CDATA[type ahead]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://learningtheworld.eu/?p=98</guid>
		<description><![CDATA[<strong>OpenSearch</strong> is known as an open source format to syndicate and aggregate search results. It was developed by Amazon&#160;/ A9 and quickly gained support from the big search engines. Their involvement is somewhat intimidating&#160;&#8212; your site&#8217;s not Google, so who wants to syndicate your search results anyway? But if your blog or a client has a loyal readership, it would be convenient if they could just <strong>use their browser&#8217;s searchbar</strong> as a shortcut.&#160;[&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/wp-content/uploads/2008/04/screenshot-searchbar.png" class="floatleft" alt="Screenshot of the searchbar in Firefox with the option &quot;Add Wikipedia (English)&quot;" width="203" height="163" /> <strong>OpenSearch</strong> is known as an open source format to syndicate and aggregate search results. It was developed by Amazon&nbsp;/ A9 and quickly gained support from the big search engines. Their involvement is somewhat intimidating&nbsp;&mdash; your site&rsquo;s not Google, so who wants to syndicate your search results anyway?</p>

<p>But if your blog or a client has a loyal readership, it would be convenient if they could just <strong>use their browser&rsquo;s searchbar</strong> as a shortcut. For example currently we work on a website relaunch for a big German city, and it&rsquo;s easily conceivable that citizens want to search this site more often.</p>

<p>Here comes a side effect of OpenSearch: the OpenSearch descriptions are machine readable <acronym title="Extensible Hypertext Markup Language">XML</acronym> files. <strong>Firefox and Internet Explorer&nbsp;7</strong> are two of those &ldquo;machines&rdquo; if you let them know the file exists:</p>

<ol class="code">
<li><code>&lt;link <strong>rel=&quot;search&quot;</strong> type=&quot;application/<span class="codeSpace">&nbsp;</span><strong>opensearchdescription+xml</strong>&quot; title=&quot;Your website&rsquo;s title&quot; href=&quot;/opensearch.xml&quot;&nbsp;/&gt;</code></li>
</ol>

<p>Of course that belongs in the <code>head</code>. Now all you need are a few more lines of code in the <code>opensearch.xml</code> file:</p>

<ol class="code">
<li><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</code></li>
<li><code>&lt;OpenSearchDescription xmlns=&quot;http://a9.com/-/spec/<span class="codeSpace">&nbsp;</span>opensearch/1.1/&quot;&gt;</code></li>
<li class="indent"><code>&lt;ShortName&gt;<strong>Your website&rsquo;s title</strong>&lt;/ShortName&gt;</code></li>
<li class="indent"><code>&lt;Description&gt;A short description of the search&lt;/Description&gt;</code></li>
<li class="indent"><code>&lt;InputEncoding&gt;UTF-8&lt;/InputEncoding&gt;</code></li>
<li class="indent"><code>&lt;Image height=&quot;16&quot; width=&quot;16&quot; type=&quot;image/x-icon&quot;><span class="codeSpace">&nbsp;</span>http://yourdomain.com/<strong>favicon.ico</strong>&lt;/Image&gt;</code></li>
<li class="indent"><code>&lt;Url type=&quot;text/html&quot; template=&quot;http://yourdomain.com/<span class="codeSpace">&nbsp;</span>search/<span class="codeSpace">&nbsp;</span><strong>?q={searchTerms}</strong>&quot;/&gt;</code></li>
<li><code>&lt;/OpenSearchDescription&gt;</code></li>
</ol>

<p>Just change the <code>shortname</code> property, the favorite icon path, the search <acronym title="Uniform Resource Identifier">URI</acronym> and parameters. Don&rsquo;t change <code>{searchTerms}</code>. And that&rsquo;s all, it&rsquo;s a five minute no-brainer&hellip;</p>

<h3>Further Reading</h3>

<ul><li><a href="http://developer.mozilla.org/en/docs/Creating_OpenSearch_plugins_for_Firefox">OpenSearch documentation</a> (Mozilla Developer Center)</li>
<li><acronym title="JavaScript Object Notation">JSON</acronym> <a href="http://developer.mozilla.org/en/docs/Supporting_search_suggestions_in_search_plugins">type-ahead suggestion</a> functionality for OpenSearch</li>
</ul>

<p class="alert"><ins datetime="20090415T165100"><strong>Update:</strong> Internet Explorer&nbsp;8 now <a href="http://msdn.microsoft.com/en-us/library/cc848862(VS.85).aspx">supports type ahead suggestions</a>, too.</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://learningtheworld.eu/2008/opensearch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
