forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r547440 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap: doap.xml resources/stylesheets/doap-to-document.xsl status.xml
Date Thu, 14 Jun 2007 23:06:53 GMT
Author: rgardler
Date: Thu Jun 14 16:06:52 2007
New Revision: 547440

URL: http://svn.apache.org/viewvc?view=rev&rev=547440
Log:
Add AJAX rendering of RSS feeds to project details page

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml?view=diff&rev=547440&r1=547439&r2=547440
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml Thu Jun
14 16:06:52 2007
@@ -15,7 +15,8 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:doap="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:admin="http://webns.net/mvcb/"
xml:lang="en">
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:doap="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:admin="http://webns.net/mvcb/"
xml:lang="en">
   <doap:Project>
     <doap:name>org.apache.forrest.plugin.input.projectInfo</doap:name>
     <doap:shortname>projectInfo</doap:shortname>
@@ -46,5 +47,7 @@
         <doap:location rdf:resource="http://svn.apache.org/repos/asf/forrest/trunk/plugins/org.apache.forrest.plugin.input.doap/"/>
       </doap:SVNRepository>
     </doap:repository>
+    <foaf:seeAlso rdf:resource="http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.input.doap/changes.rss"
dc:format="application/rss+xml" dc:title="Recent Changes"/>
+    <foaf:seeAlso rdf:resource="http://forrest.apache.org/changes.rss" dc:format="application/rss+xml"
dc:title="Forrest Recent Changes"/>
   </doap:Project>
 </rdf:RDF>

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl?view=diff&rev=547440&r1=547439&r2=547440
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
Thu Jun 14 16:06:52 2007
@@ -67,6 +67,34 @@
         </xsl:choose>
       </section>
       <xsl:call-template name="project-releases" />
+      
+      <xsl:if test="foaf:seeAlso[@dc:format='application/rss+xml' or @dc:format='application/atom+xml']">
+        <section>
+          <title>News Feeds</title>
+        <!-- we need the empty statement in the following script element
+otherwise it doesn't load for some reason -->
+        <script type="text/javascript"
+            src="http://www.google.com/jsapi?key=ABQIAAAA6Z-D4RJHDFYPA_4r805bNBS35Y06UsNZ7zMjADH_v2yM8_26AhRQPRif3s-hl0DX2y8IOnAwSo3WgA">;</script>
+            
+        <xsl:element name="script">
+          <xsl:attribute name="type">text/javascript</xsl:attribute>
+                google.load("feeds", "1");
+             
+                function initialize() {
+                  var feedControl = new google.feeds.FeedControl();
+                  <xsl:for-each select="foaf:seeAlso[@dc:format='application/rss+xml'
or @dc:format='application/atom+xml']">
+                    feedControl.addFeed('<xsl:value-of select="./@rdf:resource"/>',
'<xsl:value-of select="./@dc:title"/>');
+                  </xsl:for-each>
+                  feedControl.draw(document.getElementById('Feeds'),
+                      {
+                        drawMode : google.feeds.FeedControl.DRAW_MODE_TABBED
+                      });
+                }
+                google.setOnLoadCallback(initialize);
+         </xsl:element>
+         <div id="Feeds"/>
+         </section>
+       </xsl:if>
     </body>
   </xsl:template>
   <xsl:template match="@rdf:resource"><a>
@@ -257,8 +285,7 @@
               <tr>
                 <td class="left">Checkout</td>
                 <td class="right">
-                  <pre>svn co <xsl:apply-templates select="doap:location/@rdf:resource"
/>
-                  </pre>
+                  <pre>svn co <xsl:apply-templates select="doap:location/@rdf:resource"
/></pre>
                 </td>
               </tr>
             </table>

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml?view=diff&rev=547440&r1=547439&r2=547440
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml Thu Jun
14 16:06:52 2007
@@ -35,8 +35,11 @@
   <changes>
 <!-- Add new releases here -->
     <release version="0.1" date="not-released">
+      <action dev="RDG" type="add" context="code">
+        Add Google Ajax API rendering of RSS and ATOM feeds to the project details page.

+      </action>
       <action dev="RDG" type="add" context="code" due-to="Stuart Yeates" fixes-bug="FOR-967">
-        Add handling of RSS feeds.
+        Add listing of RSS feeds.
       </action>
       <action dev="RDG" type="add" context="code">
         content-doap-link dispatcher template to embed a link to the



Mime
View raw message