[openguides-tickets] [OpenGuides] #180: Opensearch discovery

OpenGuides tracadmin at urchin.earth.li
Sun Mar 11 22:58:53 GMT 2007


#180: Opensearch discovery
-------------------------+--------------------------------------------------
 Reporter:  bob          |       Owner:  dom
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:     
Component:  openguides   |     Version:  svn
 Severity:  normal       |    Keywords:     
-------------------------+--------------------------------------------------
 Since we have a search page for each guide it would be nice to let people
 add it easily to their firefox search button thing. this can be
 done with stuff we already know.

 we need to write out a opensearch.xml  like below

 {{{
 <?xml version="1.0" encoding="UTF-8"?>

 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  <ShortName>$Guide_name</ShortName>
  <Description>Search the $Guide_name</Description>
  <Tags>$guide_name</Tags>
  <Url type="text/html"
       template="$search_url?search={searchTerms}"/>
 </OpenSearchDescription>

 }}}


 then we need to add a <link> statement to the header.tt

 {{{
 <link rel="search" href="$guide_url/opensearch.xml""
       type="application/opensearchdescription+xml"
       title="$guide_name" />
 }}}

-- 
Ticket URL: <http://dev.openguides.org/ticket/180>
OpenGuides <http://openguides.org/>
The OpenGuides city guides project


More information about the openguides-tickets mailing list