Revert r51644: restore Open Search
I still can't seem to get this to work on either Firefox or Chrome, but it is likely that I'm testing wrong rather than finding a non-working feature. This leaves the actually broken files removed from earlier commits, but restores the ones that should still be working. Reported by: jhb
This commit is contained in:
parent
54f030d94f
commit
c303f9ccd4
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51713
9 changed files with 159 additions and 0 deletions
|
@ -11,6 +11,8 @@ DOCS+= search.xml
|
|||
DOCS+= searchhints.xml
|
||||
DOCS+= search-mid.xml
|
||||
|
||||
SUBDIR+= opensearch
|
||||
|
||||
INDEXLINK= search.html
|
||||
|
||||
XMLDOCS= index-site:xsl:sitemap.xml
|
||||
|
|
23
en_US.ISO8859-1/htdocs/search/opensearch/Makefile
Normal file
23
en_US.ISO8859-1/htdocs/search/opensearch/Makefile
Normal file
|
@ -0,0 +1,23 @@
|
|||
# $FreeBSD$
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
.endif
|
||||
.if exists(../Makefile.inc)
|
||||
.include "../Makefile.inc"
|
||||
.endif
|
||||
|
||||
DOCS+= opensearch.xml
|
||||
INDEXLINK= opensearch.html
|
||||
|
||||
DATA=
|
||||
DATA+= opensearch.js
|
||||
|
||||
DATA+= man.xml
|
||||
DATA+= man-freebsd-release-ports.xml
|
||||
DATA+= message-id.xml
|
||||
|
||||
# external sites
|
||||
DATA+= markmail.xml
|
||||
|
||||
.include "${DOC_PREFIX}/share/mk/web.site.mk"
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
|
||||
xml:lang="de">
|
||||
<ShortName>FreeBSD + Ports Manpages</ShortName>
|
||||
<LongName>FreeBSD Manual Pages</LongName>
|
||||
<Description>FreeBSD Release + Ports Manual Pages</Description>
|
||||
<Url template="https://www.freebsd.org/cgi/man.cgi?manpath=freebsd-release-ports&query={searchTerms}&sourceid=opensearch" type="text/html" />
|
||||
<Developer>The FreeBSD Project</Developer>
|
||||
<Contact>https://www.freebsd.org/</Contact>
|
||||
<Image height="16" type="image/x-icon" width="16">https://www.freebsd.org/favicon.ico</Image>
|
||||
<Language>en</Language>
|
||||
<InputEncoding>ISO-8859-1</InputEncoding>
|
||||
</OpenSearchDescription>
|
||||
|
17
en_US.ISO8859-1/htdocs/search/opensearch/man.xml
Normal file
17
en_US.ISO8859-1/htdocs/search/opensearch/man.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
|
||||
xml:lang="de">
|
||||
<ShortName>FreeBSD Manpages</ShortName>
|
||||
<LongName>FreeBSD Manual Pages</LongName>
|
||||
<Description>FreeBSD Manual Pages</Description>
|
||||
<Url template="https://www.freebsd.org/cgi/man.cgi?query={searchTerms}&sourceid=opensearch" type="text/html" />
|
||||
<Developer>The FreeBSD Project</Developer>
|
||||
<Contact>https://www.freebsd.org/</Contact>
|
||||
<Image height="16" type="image/x-icon" width="16">https://www.freebsd.org/favicon.ico</Image>
|
||||
<Language>en</Language>
|
||||
<InputEncoding>ISO-8859-1</InputEncoding>
|
||||
</OpenSearchDescription>
|
||||
|
16
en_US.ISO8859-1/htdocs/search/opensearch/markmail.xml
Normal file
16
en_US.ISO8859-1/htdocs/search/opensearch/markmail.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
|
||||
xml:lang="de">
|
||||
<ShortName>MarkMail FreeBSD</ShortName>
|
||||
<LongName>FreeBSD Mailing List Search by MarkMail</LongName>
|
||||
<Description>FreeBSD Mailing List Search by MarkMail</Description>
|
||||
<Url template="http://freebsd.markmail.org/search/?q={searchTerms}&sourceid=opensearch" type="text/html" />
|
||||
<Developer>The FreeBSD Project</Developer>
|
||||
<Contact>https://www.freebsd.org/</Contact>
|
||||
<Image height="16" type="image/x-icon" width="16">https://www.freebsd.org/favicon.ico</Image>
|
||||
<Language>en</Language>
|
||||
</OpenSearchDescription>
|
||||
|
17
en_US.ISO8859-1/htdocs/search/opensearch/message-id.xml
Normal file
17
en_US.ISO8859-1/htdocs/search/opensearch/message-id.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
|
||||
xml:lang="de">
|
||||
<ShortName>FreeBSD Mail Message-ID</ShortName>
|
||||
<LongName>FreeBSD Mail Message-ID</LongName>
|
||||
<Description>FreeBSD Mail Message-ID</Description>
|
||||
<Url template="https://www.freebsd.org/cgi/mid.cgi?db=mid&id={searchTerms}&sourceid=opensearch" type="text/html" />
|
||||
<Developer>The FreeBSD Project</Developer>
|
||||
<Contact>https://www.freebsd.org/</Contact>
|
||||
<Image height="16" type="image/x-icon" width="16">https://www.freebsd.org/favicon.ico</Image>
|
||||
<Language>en</Language>
|
||||
<InputEncoding>ISO-8859-1</InputEncoding>
|
||||
</OpenSearchDescription>
|
||||
|
10
en_US.ISO8859-1/htdocs/search/opensearch/opensearch.js
Normal file
10
en_US.ISO8859-1/htdocs/search/opensearch/opensearch.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
function install(link) {
|
||||
if (typeof(window.external) != 'undefined' && typeof(window.external.AddSearchProvider) != 'undefined') {
|
||||
window.external.AddSearchProvider(link.href);
|
||||
return false;
|
||||
} else {
|
||||
return confirm("The plugin couldn’t be installed automatically. Display it instead?");
|
||||
}
|
||||
}
|
||||
|
56
en_US.ISO8859-1/htdocs/search/opensearch/opensearch.xml
Normal file
56
en_US.ISO8859-1/htdocs/search/opensearch/opensearch.xml
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html PUBLIC "-//FreeBSD//DTD XHTML 1.0 Transitional-Based Extension//EN"
|
||||
"http://www.FreeBSD.org/XML/share/xml/xhtml10-freebsd.dtd" [
|
||||
<!ENTITY title "FreeBSD OpenSearch Plugins">
|
||||
]>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>&title;</title>
|
||||
|
||||
<cvs:keyword xmlns:cvs="http://www.FreeBSD.org/XML/CVS">$FreeBSD$</cvs:keyword>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
function install(link) {
|
||||
if (typeof(window.external) != 'undefined' && typeof(window.external.AddSearchProvider) != 'undefined') {
|
||||
window.external.AddSearchProvider(link.href);
|
||||
return false;
|
||||
} else {
|
||||
return confirm("The plugin couldn't be installed automatically. Display it instead?");
|
||||
}
|
||||
}
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
<p>Firefox put a few popular search sites in the Search Bar
|
||||
in the upper-right corner of Firefox. Click on a item to
|
||||
add the <i>FreeBSD Search Services</i> to your Firefox Search Bar.</p>
|
||||
|
||||
<h3>By the FreeBSD.org web site</h3>
|
||||
<ul>
|
||||
<li><a href="man.xml" onclick= "return install(this)">FreeBSD Manual Pages</a></li>
|
||||
<li><a href="man-freebsd-release-ports.xml" onclick= "return install(this)">FreeBSD + Ports Manual Pages</a></li>
|
||||
<li><a href="message-id.xml" onclick= "return install(this)">FreeBSD Mailing List Message-ID Search</a></li>
|
||||
</ul>
|
||||
|
||||
<h3>External Plugins</h3>
|
||||
<ul>
|
||||
<li><a href="markmail.xml" onclick= "return install(this)">FreeBSD Mailing List Search by MarkMail</a></li>
|
||||
</ul>
|
||||
|
||||
<p>External help links: <a href=
|
||||
"https://addons.mozilla.org/firefox/search-engines/">Firefox
|
||||
Search Engines</a>
|
||||
</p>
|
||||
|
||||
<p><a href="../">Return to the search page</a></p>
|
||||
<hr/>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -35,6 +35,7 @@
|
|||
<li><a href="http://freebsd.markmail.org/">MarkMail: FreeBSD mail archives search</a></li>
|
||||
</ul>
|
||||
|
||||
<p><a href="opensearch/">List of FreeBSD OpenSearch Plugins</a></p>
|
||||
<hr noshade="noshade"/>
|
||||
|
||||
<a name="web"></a><h2>Web pages (including <a
|
||||
|
|
Loading…
Reference in a new issue