Changeset 1097


Ignore:
Timestamp:
Jun 21, 2007, 12:25:06 PM (14 years ago)
Author:
Dominic Hargreaves
Message:

Tweak OpenSearch? description, and add autodiscovery (fixes #180)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r1094 r1097  
    2727        Add email notifications when moderated nodes are edited (#138)
    2828        Add IP addresses into non-anonymous changes in Recent Changes (#113)
     29        Add an OpenSearch description, and automatic discovery for it (#180)
    2930
    30310.60    13 May 2007
  • trunk/lib/OpenGuides.pm

    r1096 r1097  
    12071207<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
    12081208 <ShortName>$site_name</ShortName>
    1209  <Description>Search the $site_name</Description>
     1209 <Description>Search the site '$site_name'</Description>
    12101210 <Tags>$site_name</Tags>
    12111211 <Contact>$contact_email</Contact>
  • trunk/templates/header.tt

    r1049 r1097  
    22 "http://www.w3.org/TR/html4/loose.dtd">
    33<html lang="[% language %]">
    4 <head>
     4<head profile="http://a9.com/-/spec/opensearch/1.1/">
    55  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    66  [% IF page_title %]
     
    3838    <meta name="geo.position" content="[% wgs84_lat %], [% wgs84_long %]" />
    3939  [% END %]
    40     <link rel="alternate" type="application/rss+xml" title="[% site_name %] - Recent Changes (RSS 1.0)" href="[% full_cgi_url %]?action=rc;format=rss" />
    41     <link rel="alternate" type="application/atom+xml" title="[% site_name %] - Recent Changes (Atom)" href="[% full_cgi_url %]?action=rc;format=atom" />
     40    <link rel="alternate"
     41          type="application/rss+xml"
     42          title="[% site_name %] - Recent Changes (RSS 1.0)"
     43          href="[% full_cgi_url %]?action=rc;format=rss" />
     44    <link rel="alternate"
     45          type="application/atom+xml"
     46          title="[% site_name %] - Recent Changes (Atom)"
     47          href="[% full_cgi_url %]?action=rc;format=atom" />
     48    <link rel="search"
     49          type="application/opensearchdescription+xml"
     50          title="Search the site '[% site_name %]'"
     51          href="[% full_cgi_url %]?action=about;format=opensearch"  />
    4252  [% IF deter_robots %]
    4353    <meta name="robots" content="noindex,nofollow" />
Note: See TracChangeset for help on using the changeset viewer.