summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-04-23 14:13:26 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-04-23 14:13:26 +0200
commitf9949681c28fb7d76c765833c2ef5765d1393bbf (patch)
tree5157a9c4a7741733df2a51376e3f36fce3442067
Initial with DBLP and Google Scholar
-rw-r--r--dblp-search.xml10
-rw-r--r--index.html18
-rw-r--r--scholar-search.xml10
-rwxr-xr-xserve.sh2
4 files changed, 40 insertions, 0 deletions
diff --git a/dblp-search.xml b/dblp-search.xml
new file mode 100644
index 0000000..caeaa25
--- /dev/null
+++ b/dblp-search.xml
@@ -0,0 +1,10 @@
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
+ <ShortName>DBLP</ShortName>
+ <Description>dblp computer science bibliography</Description>
+ <InputEncoding>UTF-8</InputEncoding>
+ <Image width="64" height="64" type="image/x-icon">https://dblp.uni-trier.de/img/favicon.ico</Image>
+ <Url type="text/html" method="get" template="https://dblp.uni-trier.de/search">
+ <Param name="q" value="{searchTerms}"/>
+ </Url>
+ <moz:SearchForm>https://dblp.uni-trier.de/search</moz:SearchForm>
+</OpenSearchDescription>
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..713986e
--- /dev/null
+++ b/index.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<html>
+<head>
+<title>OpenSearch provider auto-detection wrapper</title>
+<meta charset="utf-8">
+<link rel="search" type="application/opensearchdescription+xml" title="DBLP" href="dblp-search.xml">
+<link rel="search" type="application/opensearchdescription+xml" title="Google Scholar" href="scholar-search.xml">
+</head>
+<body>
+<p>Your browser should automatically detect the search providers once you're on this page, and allow you to install as regular providers in your browser.</p>
+<p>Note that it might be necessary to explicitly show the search bar in your browser header.</p>
+<p>Providers that should be available on this page:</p>
+<ul>
+ <li>DBLP: Search for authors, titles, etc. on the DBLP computer science bibliography</li>
+ <li>Google Scholar: Search for whatever via Google Scholar</li>
+</ul>
+</body>
+</html>
diff --git a/scholar-search.xml b/scholar-search.xml
new file mode 100644
index 0000000..b644b8e
--- /dev/null
+++ b/scholar-search.xml
@@ -0,0 +1,10 @@
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
+ <ShortName>Google Scholar</ShortName>
+ <Description>Google Scholar search</Description>
+ <InputEncoding>UTF-8</InputEncoding>
+ <Image width="48" height="48" type="image/x-icon">https://scholar.google.com/favicon.ico</Image>
+ <Url type="text/html" method="get" template="https://scholar.google.com/scholar">
+ <Param name="q" value="{searchTerms}"/>
+ </Url>
+ <moz:SearchForm>https://scholar.google.com</moz:SearchForm>
+</OpenSearchDescription>
diff --git a/serve.sh b/serve.sh
new file mode 100755
index 0000000..54e6b32
--- /dev/null
+++ b/serve.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+python3 -m http.server 8080