Skip to content

OpenSearch

Wenn man schon so eine tolle neue Suchfunktion hat, kann man sie doch auch gleich noch etwas prominenter/einfacher unter's Volk bringen:

<link href="/search.xml" rel="search" title="NetVS" type="application/opensearchdescription+xml" />

in den head einbauen und (ich hab' da mal was vorbereitet) eine OpenSearch-Spezifikation verlinken:

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>NetVS</ShortName>
  <Description>NetVS Search</Description>
  <Image width="16" height="16" type="image/x-icon">https://netvs.scc.kit.edu/favicon.ico</Image>
  <Url type="text/html" template="https://netvs.scc.kit.edu/launch/search/{searchTerms}"/>
  <Url type="application/opensearchdescription+xml" rel="self" template="https://netvs.scc.kit.edu/search.xml" />
  <moz:SearchForm>https://netvs.scc.kit.edu/launch/search/</moz:SearchForm>
</OpenSearchDescription>

Natürlich nach Gusto anzupassen, aber wenn ich schon mal ein bisschen Code liefern kann, helfe ich doch gerne aus :-)

Edited by Janis Streib
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information