diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2014-08-18 11:37:57 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2014-08-18 11:37:57 +0200 |
| commit | d1d55f2ca41fbaf10a66bfc66d69e0fccf673413 (patch) | |
| tree | 6ef0e55b147f4b82f7970ea39e890523c23aadf5 /searx/templates/courgette/opensearch.xml | |
| parent | ce719ac50ca79cc423046ef7a32b8792a24dfe0b (diff) | |
| parent | 195ff7522eea6cfbc9deb26826d8cfc424cac397 (diff) | |
Merge pull request #82 from courgette/master
New theme courgette
Diffstat (limited to 'searx/templates/courgette/opensearch.xml')
| -rw-r--r-- | searx/templates/courgette/opensearch.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/searx/templates/courgette/opensearch.xml b/searx/templates/courgette/opensearch.xml new file mode 100644 index 000000000..f39283f99 --- /dev/null +++ b/searx/templates/courgette/opensearch.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>searx</ShortName> + <Description>Search searx</Description> + <InputEncoding>UTF-8</InputEncoding> + <LongName>searx metasearch</LongName> + {% if opensearch_method == 'get' %} + <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/> + {% if autocomplete %} + <Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter"> + <Param name="format" value="x-suggestions" /> + <Param name="q" value="{searchTerms}" /> + </Url> + {% endif %} + {% else %} + <Url type="text/html" method="post" template="{{ host }}"> + <Param name="q" value="{searchTerms}" /> + </Url> + {% if autocomplete %} + <!-- TODO, POST REQUEST doesn't work --> + <Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter"> + <Param name="format" value="x-suggestions" /> + <Param name="q" value="{searchTerms}" /> + </Url> + {% endif %} + {% endif %} +</OpenSearchDescription> |