AppDB: add Open Search

André Hentschel nerv at dawncrow.de
Sun Nov 15 07:47:11 CST 2009


This adds Open Search to our AppDB.
Open Search is e.g. the fast search in the right upper corner of firefox.
---
 appdb.xml          |   10 ++++++++++
 include/header.php |    1 +
 2 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 appdb.xml

diff --git a/appdb.xml b/appdb.xml
new file mode 100644
index 0000000..e9868d2
--- /dev/null
+++ b/appdb.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
+<ShortName>AppDB</ShortName>
+<Description>AppDB Quick Search</Description>
+<Tags>AppDB</Tags>
+<Image height="16" width="16" type="image/png">http://appdb.winehq.org/images/winehq_logo_16.png</Image>
+<Url type="text/html" template="http://appdb.winehq.org/objectManager.php?sClass=application&amp;bIsQueue=false&amp;bIsRejected=false&amp;sTitle=hi&amp;iItemsPerPage=25&amp;iPage=1&amp;iappFamily-appNameOp0=2&amp;sappFamily-appNameData0={searchTerms}" />
+<InputEncoding>UTF-8</InputEncoding>
+<OutputEncoding>UTF-8</OutputEncoding>
+</OpenSearchDescription>
diff --git a/include/header.php b/include/header.php
index 99941e9..b6ccfd5 100644
--- a/include/header.php
+++ b/include/header.php
@@ -25,6 +25,7 @@
     <script src="<?php echo BASE; ?>scripts.js" type="text/javascript"></script>
     <link rel="icon" type="image/png" href="<?php echo BASE; ?>images/winehq_logo_16.png">
     <link rel="shortcut icon" type="image/png" href="<?php echo BASE; ?>images/winehq_logo_16.png">
+    <link title="AppDB" type="application/opensearchdescription+xml" rel="search" href="<?php echo BASE; ?>appdb.xml">
 </head>
 <body>
 
-- 

Best Regards, André Hentschel




More information about the wine-patches mailing list