diff options
Diffstat (limited to 'objectapp/templates/objectapp/opensearch.xml')
-rw-r--r-- | objectapp/templates/objectapp/opensearch.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/objectapp/templates/objectapp/opensearch.xml b/objectapp/templates/objectapp/opensearch.xml new file mode 100644 index 00000000..c951ffa1 --- /dev/null +++ b/objectapp/templates/objectapp/opensearch.xml @@ -0,0 +1,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> |