11-04-2011 04:16 PM
11-17-2011 05:03 AM
11-22-2011 12:03 PM
06-04-2013 11:24 AM
12-14-2013 07:36 PM
function getDocumentItem(siteId, containerId, pathParts, node, populate)
{
// PENDING: how to handle comments? the document should
// be returned instead
// check whether this is a valid folder or a file
var item = t = null;
if (node.qnamePath.indexOf(COMMENT_QNAMEPATH) == -1 &&
!(node.qnamePath.match(DISCUSSION_QNAMEPATH+"$") == DISCUSSION_QNAMEPATH))
{
if (node.isContainer || node.isDocument)
{
if (!populate) return {};
item =
{
site: getSiteData(siteId),
container: containerId,
nodeRef: node.nodeRef.toString(),
tags: ((t = node.tags) !== null) ? t : [],
name: node.name,
displayName: node.name,
title: node.properties["cm:title"],
description: node.properties["cm:description"] + node.properties["ej:authorisedBy"] + "siempre aprendiendo algo nuevo",
modifiedOn: node.properties["cm:modified"],
modifiedByUser: node.properties["cm:modifier"],
createdOn: node.properties["cm:created"],
createdByUser: node.properties["cm:creator"],
mimetype: node.mimetype,
path: pathParts.join("/"),
};
item.modifiedBy = getPersonDisplayName(item.modifiedByUser);
item.createdBy = getPersonDisplayName(item.createdByUser);
}
if (node.isContainer)
{
item.type = "folder";
item.size = -1;
}
else if (node.isDocument)
{
item.type = "document";
item.size = node.size;
}
}
return item;
}
description: node.properties["cm:description"] + node.properties["ej:authorisedBy"] + "Siempre aprendiendo algo nuevo",
<#escape x as jsonUtils.encodeJSONString(x)>
{
"totalRecords": ${data.paging.totalRecords?c},
"totalRecordsUpper": ${data.paging.totalRecordsUpper?c},
"startIndex": ${data.paging.startIndex?c},
"items":
[
<#list data.items as item>
{
"nodeRef": "${item.nodeRef}",
"type": "${item.type}",
"name": "${item.name!''}",
"displayName": "${item.displayName!''}",
<#if item.title??>
"title": "${item.title}",
</#if>
"description": "${item.description!''}",
"modifiedOn": "${xmldate(item.modifiedOn)}",
"modifiedByUser": "${item.modifiedByUser}",
"modifiedBy": "${item.modifiedBy}",
"size": ${item.size?c},
"mimetype": "${item.mimetype!''}",
<#if item.site??>
"site":
{
"shortName": "${item.site.shortName}",
"title": "${item.site.title}"
},
"container": "${item.container}",
</#if>
<#if item.path??>
"path": "${item.path}",
</#if>
"tags": [<#list item.tags as tag>"${tag}"<#if tag_has_next>,</#if></#list>]
}<#if item_has_next>,</#if>
</#list>
]
}
</#escape>
renderCellDescription = function v(L, O, H, C) {
c.addClass(L.parentNode, "description");
var A = O.getData("site");
var B = y._getBrowseUrlForRecord(O);
var K = O.getData("displayName");
var G = '<h3 class="itemname">
<a href="' + B
+ '" class="theme-color-1">' + p(K)
+ "</a>";
var J = O.getData("title");
if (J && J !== K) {
G += '<span class="title">(' + p(J)
+ ")</span>"
}
G += "</h3>
";
var F = O.getData("description");
if (F) {
G += '<div class="details meta">
' + p(F)
+ "</div>
"
}
…
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.