roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r735811 - /roller/trunk/apps/weblogger/web/WEB-INF/velocity/weblog.vm
Date Mon, 19 Jan 2009 21:00:21 GMT
Author: snoopdave
Date: Mon Jan 19 13:00:21 2009
New Revision: 735811

URL: http://svn.apache.org/viewvc?rev=735811&view=rev
Log:
Adding autodiscovery links for OpenSearch descriptor, see proposal:
   http://cwiki.apache.org/confluence/display/ROLLER/Proposal+OpenSearch

Modified:
    roller/trunk/apps/weblogger/web/WEB-INF/velocity/weblog.vm

Modified: roller/trunk/apps/weblogger/web/WEB-INF/velocity/weblog.vm
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/web/WEB-INF/velocity/weblog.vm?rev=735811&r1=735810&r2=735811&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/web/WEB-INF/velocity/weblog.vm (original)
+++ roller/trunk/apps/weblogger/web/WEB-INF/velocity/weblog.vm Mon Jan 19 13:00:21 2009
@@ -90,6 +90,17 @@
     #else
     <link rel="alternate" type="application/rss+xml"  title="Search results for '$utils.escapeHTML($model.term)'"
 href="$utils.escapeHTML($url.feed.entries.search($model.term,$model.weblogCategory.path))"
/>
     #end
+    #if ($site)
+        <link rel="search"
+            title="OpenSearch Descriptor for $config.siteName"
+            type="application/opensearchdescription+xml"
+            href="$url.absoluteSite/roller-services/opensearch" />
+    #else
+        <link rel="search"
+            title="OpenSearch Descriptor for weblog $model.weblog.name"
+            type="application/opensearchdescription+xml"
+            href="$url.absoluteSite/roller-services/opensearch/$model.weblog.handle" />
+    #end
 #end
 
 



Mime
View raw message