From f129a6d2b16d4218497b51d8abb0416142108f02 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Thu, 1 Mar 2007 17:23:15 +0000 Subject: [PATCH] Merged from BRANCHES/DEV/KEVINR: . NodeInfo panel and Ajax client library - Rewrite of Node Info panel - Alfresco common DOM methods refactored into namespaced object (YUI/Dojo style) Alfresco.Dom - Addition of useful DOM and 'smart' alignment method to common.js - OpenSearch now uses additional namespace for it's global method handlers: Alfresco.OpenSearchEngine - Temporary icons added for pop-up node info panel . Additional FreeMarker model API method "cropContent(contentprop, length)" to return the first N bytes of a content stream - auto converted to plain/text from all supported transformation mimetypes . DownloadContentServlet now handles ContentIOException more gracefully . AbstractContentReader fixed to handle empty file data when requesting N characters from a content stream . Yahoo scripts move to PageTag rendering as appropriate . Refactoring of existing ajax components that output Yahoo scripts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5250 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../templates/client/summary_panel.ftl | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 config/alfresco/templates/client/summary_panel.ftl diff --git a/config/alfresco/templates/client/summary_panel.ftl b/config/alfresco/templates/client/summary_panel.ftl new file mode 100644 index 0000000000..711be6ec19 --- /dev/null +++ b/config/alfresco/templates/client/summary_panel.ftl @@ -0,0 +1,86 @@ + + + + + + + + + + +
+ + + + <#if node.isDocument> + <#assign navurl="/navigate/showDocDetails/"> + <#else> + <#assign navurl="/navigate/showSpaceDetails/"> + + <#assign navurl=navurl + node.nodeRef.storeRef.protocol + '/' + node.nodeRef.storeRef.identifier + '/' + node.nodeRef.id> + + + +
${node.name}
Details
Close
+
+ <#assign isImage=node.isDocument && (node.mimetype = "image/gif" || node.mimetype = "image/jpeg" || node.mimetype = "image/png")> + <#assign isVideo=node.isDocument && node.mimetype?starts_with("video/")> + <#if isImage> + + <#elseif isVideo> + + + + + <#----> + + + <#else> + + + + + + + + +
+
+ +
+
+ +
+ + <#if node.properties.title?exists> + + + <#if node.properties.description?exists> + + + + + + + <#if node.properties.owner?exists> + + + <#if node.properties.author?exists> + + + <#if node.isDocument> + + <#if !isImage && !isVideo> + <#assign c=cropContent(node.properties.content, 512)> + <#if c?length != 0> + + + + + + + +
 Title:${node.properties.title?html}
 Description:${node.properties.description?html}
 Created:${node.properties.created?datetime}
 Creator:${node.properties.creator}
 Modified:${node.properties.modified?datetime}
 Modifier:${node.properties.modifier}
 Owner:${node.properties.owner}
 Author:${node.properties.author}
 Size:${(node.size / 1000)?string("0.##")} KB
 Preview: + ${c?html?replace('$', '
', 'rm')}<#if (c?length >= 512)>... +
+