forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r594356 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap: ./ resources/themes/common/html/ src/documentation/content/xdocs/ src/documentation/resources/structurer/ src/documentation/resources/structurer/url/ src/d...
Date Tue, 13 Nov 2007 00:07:40 GMT
Author: rgardler
Date: Mon Nov 12 16:07:39 2007
New Revision: 594356

URL: http://svn.apache.org/viewvc?rev=594356&view=rev
Log:
- Add contract for Exhibit v2
- only load exhibit in pages that need it

Added:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-exhibit2.ft
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/structurer/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/structurer/url/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/structurer/url/exhibitTest.fv
Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/exhibitTest.xml
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/themes/pelt.fv
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-exhibit2.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-exhibit2.ft?rev=594356&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-exhibit2.ft
(added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-exhibit2.ft
Mon Nov 12 16:07:39 2007
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<forrest:contract xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+    xmlns:forrest="http://apache.org/forrest/templates/1.0"
+    name="doap-exhibit2">
+    <description>
+        <p>
+            Embeds the necessary Exhibit v2 scripts to enable the DOAP
+            catalogue to be browsed using Exhibit from MIT.
+        </p>
+    </description>
+    <usage>
+        <![CDATA[<forrest:contract name="doap-exhibit2"/>]]>
+    </usage>
+    <forrest:template
+        xmlns:forrest="http://apache.org/forrest/templates/1.0"
+        name="doap-exhibit2" inputFormat="xsl">
+        <xsl:stylesheet version="1.1"
+            xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+            xmlns:forrest="http://apache.org/forrest/templates/1.0">
+            <xsl:template match="/">
+                <forrest:content>
+                    <forrest:part xpath="/html/head">
+                        <link href="projectDetails/allProjects.json"
+                            type="application/json" rel="exhibit/data" />
+                        <script
+                            src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js"
+                            type="text/javascript">
+                            <!--  This empty statement is required due to a bug relating
to empty script tags in Firefox -->;
+                        </script>
+                    </forrest:part>
+                </forrest:content>
+            </xsl:template>
+        </xsl:stylesheet>
+    </forrest:template>
+</forrest:contract>

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/exhibitTest.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/exhibitTest.xml?rev=594356&r1=594355&r2=594356&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/exhibitTest.xml
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/exhibitTest.xml
Mon Nov 12 16:07:39 2007
@@ -1,47 +1,60 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    (the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-    
-    http://www.apache.org/licenses/LICENSE-2.0
-    
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
+	Licensed to the Apache Software Foundation (ASF) under one or more
+	contributor license agreements.  See the NOTICE file distributed with
+	this work for additional information regarding copyright ownership.
+	The ASF licenses this file to You under the Apache License, Version 2.0
+	(the "License"); you may not use this file except in compliance with
+	the License.  You may obtain a copy of the License at
+	
+	http://www.apache.org/licenses/LICENSE-2.0
+	
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
 -->
 <document xmlns:ex='http://http://simile.mit.edu/wiki/Exhibit'>
-    <header>
-        <title>Exhibit Sample</title>
-    </header>
-    <body>
-        <section>
-            <title>Exhibit Sample</title>
-            <table>
-                <tr>
-                    <td>
-                        <div id="exhibit-control-panel"></div>
-                        <div id="exhibit-view-panel">
-                           <div ex:role="exhibit-view"
-                               ex:viewClass="Exhibit.TileView"
-                               ex:showAll="true"
-                               ex:orders=".name, .homepage"
-                               ex:possibleOrders=".name, .homepage">
-                              <p>Loading Exhibit AJAX browser...</p>
-                              <p>For this to work you computer must be connected to
the Internet.</p>
-                           </div>
-                        </div>
-                    </td>
-                    <td>
-                        <div id="exhibit-browse-panel" ex:facets=".Category"></div>
-                    </td>
-                </tr>
-            </table>
-        </section>
-    </body>
+	<header>
+		<title>Exhibit Sample</title>
+	</header>
+	<body>
+		<section>
+			<title>Exhibit Sample</title>
+			<table>
+				<tr valign="top">
+					<td>
+						<div ex:role="facet" ex:expression=".category"
+							ex:facetLabel="Category">
+						</div>
+						<div ex:role="facet" ex:expression=".person"
+							ex:facetLabel="Person">
+						</div>
+						<div ex:role="facet"
+							ex:expression=".programming-language"
+							ex:facetLabel="Programming Language">
+						</div>
+					</td>
+					<td>
+						<div ex:role="viewPanel">
+							<p>Loading Exhibit Browser...</p>
+							<p>
+								Note, you must be connected to the
+								Internet for this to work.
+							</p>
+							<div ex:role="exhibit-view"
+								ex:viewClass="Exhibit.TabularView"
+								ex:columns=".name, .homepage, .category"
+								ex:columnLabels="Name, Home Page, Categories"
+								ex:columnFormats="text, url, list" ex:sortColumn="0"
+								ex:sortAscending="true">
+							</div>
+						</div>
+					</td>
+				</tr>
+			</table>
+
+		</section>
+	</body>
 </document>

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/structurer/url/exhibitTest.fv
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/structurer/url/exhibitTest.fv?rev=594356&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/structurer/url/exhibitTest.fv
(added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/structurer/url/exhibitTest.fv
Mon Nov 12 16:07:39 2007
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<forrest:views xmlns:forrest="http://apache.org/forrest/templates/1.0" 
+  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+<!-- The following variables are used to contact data models and/or contracts. -->
+  <jx:set var="contextPath" value="#{$cocoon/parameters/contextPath}"/>
+  <jx:set var="getRequest" value="#{$cocoon/parameters/getRequest}"/>
+  <jx:set var="getRequestExtension" value="#{$cocoon/parameters/getRequestExtension}"
/>
+  <forrest:view type="fo" hooksXpath="/">
+    <jx:import uri="cocoon://prepare.panels.common-fo"/>
+  </forrest:view>
+<!-- CSS View of the request e.g. index.dispatcher.css -->
+  <forrest:view type="css" hooksXpath="/">
+    <jx:import uri="cocoon://prepare.panels.pelt-css"/>
+  </forrest:view>
+  <forrest:view type="html" hooksXpath="/html/body">
+    <forrest:contract name="doap-exhibit2"/>
+    <forrest:contract name="doap-embedded">
+      <forrest:property name="doap-embedded-links">
+        <doap url="/projectDetails/source.xml"/>
+      </forrest:property>
+    </forrest:contract>
+    <jx:import uri="cocoon://prepare.panels.pelt-html"/>
+  </forrest:view>
+</forrest:views>

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/themes/pelt.fv
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/themes/pelt.fv?rev=594356&r1=594355&r2=594356&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/themes/pelt.fv
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/themes/pelt.fv
Mon Nov 12 16:07:39 2007
@@ -29,7 +29,6 @@
     <jx:import uri="cocoon://prepare.panels.pelt-css"/>
   </forrest:view>
   <forrest:view type="html" hooksXpath="/html/body">
-    <forrest:contract name="doap-exhibit"/>
     <forrest:contract name="doap-embedded">
       <forrest:property name="doap-embedded-links">
         <doap url="/projectDetails/source.xml"/>

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?rev=594356&r1=594355&r2=594356&view=diff
==============================================================================
--- 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 Mon Nov
12 16:07:39 2007
@@ -36,6 +36,9 @@
 <!-- Add new releases here -->
     <release version="0.1" date="not-released">
       <action dev="RDG" type="add" context="code" importance="low">
+        Support for Exhibit 2.0 
+      </action>
+      <action dev="RDG" type="add" context="code" importance="low">
         Support things like &lt;doap:mainatiner rdf:resource="http://foo.com/bar.rdf"/&gt;

       </action>
       <action dev="RDG" type="add" context="code">



Mime
View raw message