chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1037203 - /incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-browser-app/src/main/webapp/WEB-INF/stylesheets/feed.xsl
Date Sat, 20 Nov 2010 12:58:16 GMT
Author: fmui
Date: Sat Nov 20 12:58:16 2010
New Revision: 1037203

URL: http://svn.apache.org/viewvc?rev=1037203&view=rev
Log:
- added URL field to feed pages in the browser webapp

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-browser-app/src/main/webapp/WEB-INF/stylesheets/feed.xsl

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-browser-app/src/main/webapp/WEB-INF/stylesheets/feed.xsl
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-browser-app/src/main/webapp/WEB-INF/stylesheets/feed.xsl?rev=1037203&r1=1037202&r2=1037203&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-browser-app/src/main/webapp/WEB-INF/stylesheets/feed.xsl
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-browser-app/src/main/webapp/WEB-INF/stylesheets/feed.xsl
Sat Nov 20 12:58:16 2010
@@ -37,6 +37,20 @@
 				<img src="{$auxRoot}cmis.png" style="float: right;" />
 				<h1><xsl:value-of select="atom:feed/atom:title" /></h1>
 				<div class="navigationbox">
+					<form name="urlform">
+						<input type="text" name="url" value="" size="100"/>
+						<input type="hidden" name="browseUrl" value="{$browseUrl}" />
+						<input type="button" value="Go" onClick="load()" />
+						<input type="button" value="Atom" onClick="loadAtom()" />
+					</form>
+					<script type="text/javascript">
+						var x = window.location.search.indexOf("=");
+						if(x > -1) {
+							document.forms.urlform.url.value = decodeURI(window.location.search.substring(x+1));
+						}
+						function load() { window.location.href = document.forms.urlform.browseUrl.value + document.forms.urlform.url.value;
}
+						function loadAtom() { window.location.href = document.forms.urlform.url.value; }
+					</script>	
 					<xsl:if test="atom:feed/atom:link[@rel='service']">
 						<a href="{$browseUrl}{atom:feed/atom:link[@rel='service']/@href}">Service</a>
-
 					</xsl:if>



Mime
View raw message