This is an old revision of the document!
Creating OpenSearch Descriptions
Zotero uses OpenSearch 1.1 and OpenURL with some extensions to allow easy specification of locate engines. For a simple OpenURL endpoint, one can use something like:
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName>CrossRef</ShortName> <Description>CrossRef Search Engine</Description> <Image width="16" height="16" type="image/x-icon">http://crossref.org/favicon.ico</Image> <Url type="text/html" method="GET" xmlns:z="http://www.zotero.org/namespaces/openSearch#" template="http://crossref.org/openurl?{z:openURL}"/> </OpenSearchDescription>
For a more complicated service:
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName>Google Scholar</ShortName> <Description>Google Scholar Search Engine</Description> <Image width="16" height="16" type="image/x-icon">http://scholar.google.com/favicon.ico</Image> <Url type="text/html" method="GET" xmlns:rft="info:ofi/fmt:kev:mtx:journal" xmlns:z="http://www.zotero.org/namespaces/openSearch#" template="http://scholar.google.com/scholar?as_q=&as_epq={z:title}&as_occt=title&as_sauthors={rft:aufirst?}+{rft:aulast?}&as_ylo={z:year?}&as_yhi={z:year?}&as_sdt=1.&as_sdtp=on&as_sdtf=&as_sdts=22&"/> </OpenSearchDescription>
For more details, see the kfile_download and the 1.1.
Advertising Engines
You can advertise locate engines:
<link rel="search" type="application/x-openurl-opensearchdescription+xml" title="ENGINE NAME" href="http://www.example.com/myengine.xml" />
to the <head> section of any webpage. The user can then install the locate engine under the locate menu.