You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
searxng/searx/templates/simple
Markus Heiser 3b0f9c07b2 [fix] improve OpenSearch description
Some HTTP-Clients do have issues with the ``opensearch.xml`` from SearXNG
(related [1][2]) while other OpenSearch descriptions[3] (e.g. from qwant) work
flawles.

Inspired by the OpenSearch description from qwant and with informations from the
specification[4] the ``opensearch.xml`` has been *improved*.

- convert `<Url>` methods from lower case to upper case (`POST`|`GET`)
- add `<moz:SearchForm>` and `xmlns:moz="http://www.mozilla.org/2006/browser/search/"`
- add `<Query role="example" searchTerms="SearXNG" />`  [4]

  OpenSearch description documents should include at least one Query element of
  `role="example"` that is expected to return search results. Search clients may
  use this example query to validate that the search engine is working properly.

- modified `<LongName>` to SearXNG
- modified `<Description>` the word 'hackable' scares uninitiated users and was removed
- add the `type="image/png"` to `<Image>`

Test can be done by::

    make run

Visit http://127.0.0.1:8888/ and add the search engine to your WEB-Browser /
test with different WEB-Browser from desktop and Smartphones (are there any iOS
user here, please test on Safari and Chrome).

[1] https://app.element.io/#/room/#searxng:matrix.org/$xN_abdKhNqUlgXRBrb_9F3pqOxnSzGQ1TG0s0G9hQVw
[2] https://github.com/searxng/searxng/issues/431
[3] https://developer.mozilla.org/en-US/docs/Web/OpenSearch
[4] https://github.com/dewitt/opensearch/blob/master/opensearch-1-1-draft-6.md#the-query-element

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
..
filters [mod] add flags to the languages filter 2 years ago
messages [theme] peel out oscar from SearXNG development 2 years ago
result_templates map.html: display the intended text for the links instead of the URL 2 years ago
404.html Drop Python 2 (2/n): templates 4 years ago
base.html Merge pull request #1428 from return42/fix-center_aligment 2 years ago
categories.html [fix] simple: display "Click on the magnifier..." only the mouse over the categories 2 years ago
icons.html [build] /static 2 years ago
index.html Workaround: index.html: remove image preload 2 years ago
info.html Theme: add Help and Donate links in all pages 2 years ago
infobox.html [enh] simple: basic ARIA fixes 2 years ago
macros.html [fix] add missing result.length and result.author to simple theme 2 years ago
new_issue.html [mod] allow brand.issue_url to overwrite the step1 url 2 years ago
opensearch.xml [fix] improve OpenSearch description 2 years ago
opensearch_response_rss.xml theme: remove __common__ 2 years ago
page_with_header.html [simple] introduce page_with_header.html template 2 years ago
preferences.html [fix] preferences: missing option value 2 years ago
results.html Search_url only if method is POST 2 years ago
search.html theme: remove __common__ 2 years ago
searxng-wordmark.min.svg theme: remove __common__ 2 years ago
simple_search.html Merge pull request #1004 from MontyQI/search_url 2 years ago
stats.html Submit GH bug: ask the user to do some checks before submitting a new issue 2 years ago