mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Document preview supressed for non-supported mimetypes. Data webscripts use encodeJSONString() again.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10093 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<#macro resultsJSON results>
|
||||
<#escape x as x?j_string>
|
||||
<#escape x as jsonUtils.encodeJSONString(x)>
|
||||
{
|
||||
"totalResults": ${results?size},
|
||||
"overallSuccess": ${overallSuccess?string},
|
||||
|
@@ -30,7 +30,7 @@
|
||||
</#if>
|
||||
<#assign tags><#list item.tags as tag>"${tag}"<#if tag_has_next>,</#if></#list></#assign>
|
||||
{
|
||||
"index": <#noescape>${item_index}</#noescape>,
|
||||
"index": ${item_index},
|
||||
"nodeRef": "${d.nodeRef}",
|
||||
"type": "<#if d.isContainer>folder<#else>document</#if>",
|
||||
"mimetype": "${d.mimetype!""}",
|
||||
@@ -48,7 +48,7 @@
|
||||
"modifiedOn": "${d.properties.modified?string("MMM dd yyyy HH:mm:ss 'GMT'Z '('zzz')'")}",
|
||||
"modifiedBy": "${modifiedBy}",
|
||||
"modifiedByUser": "${modifiedByUser}",
|
||||
"size": <#noescape>"${d.size}"</#noescape>,
|
||||
"size": "${d.size}",
|
||||
"version": "${version}",
|
||||
"contentUrl": "api/node/content/${d.storeType}/${d.storeId}/${d.id}/${d.name?url}",
|
||||
"actionSet": "${item.actionSet}",
|
||||
|
@@ -2,7 +2,7 @@
|
||||
{
|
||||
"treenode":
|
||||
{
|
||||
"totalItems": <#noescape>${treenode.items?size}</#noescape>,
|
||||
"totalItems": ${treenode.items?size},
|
||||
"items":
|
||||
[
|
||||
<#list treenode.items as t>
|
||||
|
Reference in New Issue
Block a user