From 007bcdd6abbb04a79599cffced3b4bfcec9e98b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BC?= Date: Mon, 20 Jun 2011 09:55:44 +0000 Subject: [PATCH] CMIS browser update git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28473 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/web/WEB-INF/web.xml | 14 +- source/web/cmisfs/browser/browser.css | 25 +- source/web/cmisfs/stylesheets/entry.xsl | 54 ++- source/web/cmisfs/stylesheets/feed.xsl | 417 +++++++++++------- .../web/cmisfs/stylesheets/relationships.xsl | 280 ++++++++++++ source/web/cmisfs/stylesheets/renditions.xsl | 163 +++++++ source/web/cmisfs/stylesheets/thumbnails.xsl | 173 ++++++++ 7 files changed, 946 insertions(+), 180 deletions(-) create mode 100644 source/web/cmisfs/stylesheets/relationships.xsl create mode 100644 source/web/cmisfs/stylesheets/renditions.xsl create mode 100644 source/web/cmisfs/stylesheets/thumbnails.xsl diff --git a/source/web/WEB-INF/web.xml b/source/web/WEB-INF/web.xml index a3f30d4e89..7394f6ab84 100644 --- a/source/web/WEB-INF/web.xml +++ b/source/web/WEB-INF/web.xml @@ -463,7 +463,7 @@ CMISFileShareServlet - org.apache.opencmis.browser.BrowseServlet + org.apache.chemistry.opencmis.browser.BrowseServlet auxroot cmisfs/browser/ @@ -496,6 +496,18 @@ stylesheet:application/cmisacl+xml /cmisfs/stylesheets/acl.xsl + + override-stylesheet:renditions + /cmisfs/stylesheets/renditions.xsl + + + override-stylesheet:relationships + /cmisfs/stylesheets/relationships.xsl + + + override-stylesheet:thumbnails + /cmisfs/stylesheets/thumbnails.xsl + diff --git a/source/web/cmisfs/browser/browser.css b/source/web/cmisfs/browser/browser.css index cec87f7da6..ab63066558 100644 --- a/source/web/cmisfs/browser/browser.css +++ b/source/web/cmisfs/browser/browser.css @@ -1,3 +1,24 @@ +/* + * + * 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. + * + */ + @CHARSET "UTF-8"; body { @@ -33,7 +54,7 @@ a:hover { } a:active { - color: #a40000; + color: a40000; text-decoration: underline; } @@ -206,4 +227,4 @@ div.entrysummary { border-color: #888a85; height: 150px; overflow: auto; -} \ No newline at end of file +} diff --git a/source/web/cmisfs/stylesheets/entry.xsl b/source/web/cmisfs/stylesheets/entry.xsl index 3a5a4ff2a4..a8675afa7c 100644 --- a/source/web/cmisfs/stylesheets/entry.xsl +++ b/source/web/cmisfs/stylesheets/entry.xsl @@ -26,6 +26,7 @@ + @@ -57,7 +58,7 @@ - + - +

Summary

- + + +

Relationship

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source IdTarget Id
+
+

Properties

@@ -133,7 +169,7 @@
- +

Property Definitions

@@ -151,5 +187,5 @@
- - \ No newline at end of file + + diff --git a/source/web/cmisfs/stylesheets/feed.xsl b/source/web/cmisfs/stylesheets/feed.xsl index 17f979a0a6..635e107ece 100644 --- a/source/web/cmisfs/stylesheets/feed.xsl +++ b/source/web/cmisfs/stylesheets/feed.xsl @@ -17,38 +17,49 @@ specific language governing permissions and limitations under the License. --> - - - - + + - + + + + cmis:baseTypeId,cmis:name,cmis:objectTypeId,cmis:contentStreamMimeType,cmis:contentStreamLength,cmis:createdBy,cmis:creationDate,cmis:versionLabel,cmis:isMajorVersion,cmis:lastModifiedBy,cmis:lastModificationDate,cmis:isLatestVersion + + - <xsl:value-of select="atom:feed/atom:title" /> - + + <xsl:value-of select="atom:feed/atom:title"/> + + - -

+ +

+ +

- - - - - - - - - - - - - - - - - - -odd - - - - - - - - - - - + + + + + + + + - - - - - - - - + + + + + 0 + +
NameTypeMIME TypeSizeCreated By /
Last Modified By
Creation Date /
Last Modification Date
Version LabelMajor /
Latest
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + NameTypeMIME TypeSizeCreated By /
Last Modified By
Creation Date /
Last Modification Date
Version LabelMajor /
Latest
- Entry - - Type Info - - - - Down () - - - - - Download - - - - All Versions - - - - - Rendition () - - - - - Relationships - - - - Allowable Actions - - - - ACL - -
- - - - - - - - - - - - - - - -odd - - - - - - - - - - + + + + + + + - - - - + + + 0 + +
IdLocal NameLocal NamespaceDisplay NameQuery NameBase IdDescription
- - - - - - + IdLocal NameLocal NamespaceDisplay NameQuery NameBase IdDescription
- Entry - - Type Info - - - Down - -
- -
\ No newline at end of file + + + + + + + -odd + + + + + + + + + + + + + + + + + + + + + + + + + &nbsp; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Entry - + + Renditions - + + Type Info - + + + Down () - + + + + Download - + + + All Versions - + + + + Rendition () - + + + + Relationships - + + + Allowable Actions - + + + ACL - + + + Thumbnails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -odd + + + + + + + + + &nbsp; + + + + + + + + + + + + + + + + + + + + + + + + + + + Entry - + Type Info - + + Down + + + + + + + + + + + +
diff --git a/source/web/cmisfs/stylesheets/relationships.xsl b/source/web/cmisfs/stylesheets/relationships.xsl new file mode 100644 index 0000000000..1cc48d09e0 --- /dev/null +++ b/source/web/cmisfs/stylesheets/relationships.xsl @@ -0,0 +1,280 @@ + + + + + + + + + + + + cmis:baseTypeId,cmis:name,cmis:objectTypeId,cmis:contentStreamMimeType,cmis:contentStreamLength,cmis:createdBy,cmis:creationDate,cmis:versionLabel,cmis:isMajorVersion,cmis:lastModifiedBy,cmis:lastModificationDate,cmis:isLatestVersion + + + + + + <xsl:value-of select="atom:feed/atom:title" /> + + + + +

+ + +

Relationships

+ + + + + + + + + + + + + + + + -odd + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeSourceTargetCreation Date /
Last Modification Date
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Entry - + + Renditions - + + Type Info - + + + Down () - + + + + Download - + + + All Versions - + + + + Rendition () - + + + + Relationships - + + + Allowable Actions - + + + ACL + +
+
+ + + + + + + + + + + + + + + + + -odd + + + + + + + + + + + + + + + + +
IdLocal NameLocal NamespaceDisplay NameQuery NameBase IdDescription
+ + + + + +
+ Entry - + Type Info - + + Down + +
+
+ + +
+ +
diff --git a/source/web/cmisfs/stylesheets/renditions.xsl b/source/web/cmisfs/stylesheets/renditions.xsl new file mode 100644 index 0000000000..e911be3d74 --- /dev/null +++ b/source/web/cmisfs/stylesheets/renditions.xsl @@ -0,0 +1,163 @@ + + + + + + + + + + + + + <xsl:value-of select="atom:entry/atom:title" /> + + + + +

+ + + + + + + + + + + + + + + + + + + + +

+ + + + +

Summary

+
+ +
+
+ + + +

Renditions

+ + + + + +
+ + + + + + + + + + + + + + + + -odd + + + + + + + + + + + + + + + + + + + + +
KindMIME TypeSizeHeightWidth
+
+
+ + +
+ +
diff --git a/source/web/cmisfs/stylesheets/thumbnails.xsl b/source/web/cmisfs/stylesheets/thumbnails.xsl new file mode 100644 index 0000000000..dbc80de760 --- /dev/null +++ b/source/web/cmisfs/stylesheets/thumbnails.xsl @@ -0,0 +1,173 @@ + + + + + + + + + + + + cmis:baseTypeId,cmis:name,cmis:objectTypeId,cmis:contentStreamMimeType,cmis:contentStreamLength,cmis:createdBy,cmis:creationDate,cmis:versionLabel,cmis:isMajorVersion,cmis:lastModifiedBy,cmis:lastModificationDate,cmis:isLatestVersion + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + + + + <xsl:value-of select="atom:feed/atom:title" /> + + + + +

+ + + + + + + + + +
+ + + + + +
+
+ + +
+ +