Author: dom
Date: 2007-06-21 12:25:06 +0100 (Thu, 21 Jun 2007)
New Revision: 1097
Modified:
trunk/Changes
trunk/lib/OpenGuides.pm
trunk/templates/header.tt
Log:
Tweak OpenSearch description, and add autodiscovery (fixes #180)
Modified: trunk/Changes
===================================================================
--- trunk/Changes 2007-06-20 18:54:54 UTC (rev 1096)
+++ trunk/Changes 2007-06-21 11:25:06 UTC (rev 1097)
@@ -26,6 +26,7 @@
templates (#214).
Add email notifications when moderated nodes are edited (#138)
Add IP addresses into non-anonymous changes in Recent Changes (#113)
+ Add an OpenSearch description, and automatic discovery for it (#180)
0.60 13 May 2007
Removed footer search from edit page (shouldn't have been there).
Modified: trunk/lib/OpenGuides.pm
===================================================================
--- trunk/lib/OpenGuides.pm 2007-06-20 18:54:54 UTC (rev 1096)
+++ trunk/lib/OpenGuides.pm 2007-06-21 11:25:06 UTC (rev 1097)
@@ -1206,7 +1206,7 @@
<OpenSearchDescription
xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>$site_name</ShortName>
- <Description>Search the $site_name</Description>
+ <Description>Search the site '$site_name'</Description>
<Tags>$site_name</Tags>
<Contact>$contact_email</Contact>
<Url type="application/atom+xml"
Modified: trunk/templates/header.tt
===================================================================
--- trunk/templates/header.tt 2007-06-20 18:54:54 UTC (rev 1096)
+++ trunk/templates/header.tt 2007-06-21 11:25:06 UTC (rev 1097)
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="[% language %]">
-<head>
+<head
profile="http://a9.com/-/spec/opensearch/1.1/">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
[% IF page_title %]
<title>[% page_title %]</title>
@@ -37,8 +37,18 @@
<meta name="ICBM" content="[% wgs84_lat %], [% wgs84_long %]"
/>
<meta name="geo.position" content="[% wgs84_lat %], [% wgs84_long
%]" />
[% END %]
- <link rel="alternate" type="application/rss+xml"
title="[% site_name %] - Recent Changes (RSS 1.0)" href="[% full_cgi_url
%]?action=rc;format=rss" />
- <link rel="alternate" type="application/atom+xml"
title="[% site_name %] - Recent Changes (Atom)" href="[% full_cgi_url
%]?action=rc;format=atom" />
+ <link rel="alternate"
+ type="application/rss+xml"
+ title="[% site_name %] - Recent Changes (RSS 1.0)"
+ href="[% full_cgi_url %]?action=rc;format=rss" />
+ <link rel="alternate"
+ type="application/atom+xml"
+ title="[% site_name %] - Recent Changes (Atom)"
+ href="[% full_cgi_url %]?action=rc;format=atom" />
+ <link rel="search"
+ type="application/opensearchdescription+xml"
+ title="Search the site '[% site_name %]'"
+ href="[% full_cgi_url %]?action=about;format=opensearch" />
[% IF deter_robots %]
<meta name="robots" content="noindex,nofollow" />
[% END %]