summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2011-02-19 16:52:23 +0000
committerAndreas Brachold <vdr07@deltab.de>2011-02-19 16:52:23 +0000
commit8ae18f266387c843a0d27b461b2f1265cc7c50da (patch)
tree42dee2e38863efa9e54faa6779aaaf39c1bbbbd9 /html
parent93508c35ca6f68eb845ce819a86887b12dc322bb (diff)
downloadxxv-8ae18f266387c843a0d27b461b2f1265cc7c50da.tar.gz
xxv-8ae18f266387c843a0d27b461b2f1265cc7c50da.tar.bz2
Report epg search to browser via opensearch
Diffstat (limited to 'html')
-rw-r--r--html/opensearch.tmpl12
-rw-r--r--html/widgets/start.tmpl6
2 files changed, 15 insertions, 3 deletions
diff --git a/html/opensearch.tmpl b/html/opensearch.tmpl
new file mode 100644
index 0000000..47ff3ae
--- /dev/null
+++ b/html/opensearch.tmpl
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="<?% charset %?>"?>
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
+ <ShortName><?% gettext("Search with XXV") %?></ShortName>
+ <Description><?% gettext("Search for TV shows") %?></Description>
+ <InputEncoding><?% charset %?></InputEncoding>
+ <OutputEncoding><?% charset %?></OutputEncoding>
+ <Image width="16" height="16" type="image/vnd.microsoft.icon">http://<?% info.HOST %?>/favicon.ico</Image>
+ <Url type="text/html" rel="results" template="http://<?% info.HOST %?>/?cmd=search&amp;data={searchTerms}" />
+ <Url type="application/json" rel="suggestions" template="http://<?% info.HOST %?>/?cmd=esuggest&amp;ajax=json&amp;data={searchTerms}" />
+ <Url type="application/opensearchdescription+xml" rel="self" template="http://<?% info.HOST %?>/?cmd=opensearch" />
+</OpenSearchDescription>
+
diff --git a/html/widgets/start.tmpl b/html/widgets/start.tmpl
index b33e1d8..d1126af 100644
--- a/html/widgets/start.tmpl
+++ b/html/widgets/start.tmpl
@@ -5,12 +5,12 @@
<head>
<title><?% IF param.title.defined;param.title;ELSE %?>XXV - <?% user %?><?% END %?></title>
<?% IF allow('request') %?>
- <link rel="alternate" type="application/rss+xml" title="RSS-News 1.0" href="http://<?% info.HOST %?>/?cmd=request&data=rss&__version=1">
- <link rel="alternate" type="application/rss+xml" title="RSS-News 2.0" href="http://<?% info.HOST %?>/?cmd=request&data=rss&__version=2">
+ <link rel="alternate" type="application/rss+xml" title="RSS-News 1.0" href="?cmd=request&data=rss&__version=1">
+ <link rel="alternate" type="application/rss+xml" title="RSS-News 2.0" href="?cmd=request&data=rss&__version=2">
<?% END %?>
+ <link rel="search" type="application/opensearchdescription+xml" href="?cmd=opensearch" title="<?% gettext("Search with XXV") %?>" />
<meta http-equiv="Content-Type" content="text/html; charset=<?% charset %?>">
<meta name="generator" content="XXV System - Version: <?% version %?>" />
- <meta name="copyright" content="copyright 2006 Xpix">
<!-- Styles -->
<link href="style/style.css" type="text/css" rel="stylesheet" />
<?% IF call == 'vtxpage' %?>