opensearch stuff, badly implemented
git-svn-id: http://yolanda.mister-muffin.de/svn@230 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
bbb7ed61a7
commit
27f59d3d3e
2 changed files with 39 additions and 0 deletions
32
trunk/opensearch.xml
Normal file
32
trunk/opensearch.xml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
|
||||||
|
<!-- hardcoded urls are BAAAD. perhaps provide this document in perl ? -->
|
||||||
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
||||||
|
|
||||||
|
<Contact>admin@example.com</Contact>
|
||||||
|
|
||||||
|
<Description>lol description</Description>
|
||||||
|
|
||||||
|
<Image
|
||||||
|
height="16"
|
||||||
|
width="16"
|
||||||
|
type="image/x-icon"
|
||||||
|
>
|
||||||
|
http:/localhost/images/favicon.ico
|
||||||
|
</Image>
|
||||||
|
|
||||||
|
<Query
|
||||||
|
role="example"
|
||||||
|
searchTerms="example"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<ShortName>Yolanda</ShortName>
|
||||||
|
|
||||||
|
<Tags>lol tags</Tags>
|
||||||
|
|
||||||
|
<Url
|
||||||
|
type="text/html"
|
||||||
|
template="http://localhost/search.pl?query={searchTerms}"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</OpenSearchDescription>
|
|
@ -108,6 +108,13 @@
|
||||||
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
|
<link
|
||||||
|
rel="search"
|
||||||
|
type="application/opensearchdescription+xml"
|
||||||
|
href="/opensearch.xml"
|
||||||
|
title="Yolanda"
|
||||||
|
/>
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="boolean(//frontpage)">
|
<xsl:when test="boolean(//frontpage)">
|
||||||
|
|
Loading…
Reference in a new issue