summaryrefslogtreecommitdiff
path: root/build/lib.linux-i686-2.6/objectapp/templates/objectapp/opensearch.xml
blob: c951ffa15b43c03cf01c5595982f5ea5c756bbe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
{% load objectapp_tags %}
{% get_tags as gbobject_tags %}
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>{{ site.name }}</ShortName>
  <LongName>{{ site.name }} - web search</LongName>
  <Description>Make a search on {{ site.name }}.</Description>
  <Attribution>{{ copyright }}</Attribution>
  <Tags>{{ gbobject_tags|slice:":15"|join:" " }}</Tags>
  <Url type="text/html" template="{{ protocol }}://{{ site.domain }}{% url objectapp_gbobject_search %}?pattern={searchTerms}" />
  <Url type="application/{{ feeds_format }}+xml" template="{{ protocol }}://{{ site.domain }}{% url objectapp_gbobject_search_feed %}?pattern={searchTerms}" />
  <Url type="application/opensearchdescription+xml" rel="self" template="{{ protocol }}://{{ site.domain }}{% url objectapp_opensearch %}"/>
  <Image height="16" width="16" type="image/vnd.microsoft.icon">{{ STATIC_URL }}objectapp/img/favicon.ico</Image>
  <Query role="example" searchTerms="{{ gbobject_tags.0 }}" />
  <Developer>Fantomas42</Developer>
  <Contact>fantomas42@gmail.com</Contact>
  <SyndicationRight>open</SyndicationRight>
  <AdultContent>false</AdultContent>
  <Language>{{ LANGUAGE_CODE }}</Language>
  <OutputEncoding>UTF-8</OutputEncoding>
  <InputEncoding>UTF-8</InputEncoding>
  <moz:SearchForm>{{ protocol }}://{{ site.domain }}/</moz:SearchForm>
</OpenSearchDescription>