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>
|
<#macro resultsJSON results>
|
||||||
<#escape x as x?j_string>
|
<#escape x as jsonUtils.encodeJSONString(x)>
|
||||||
{
|
{
|
||||||
"totalResults": ${results?size},
|
"totalResults": ${results?size},
|
||||||
"overallSuccess": ${overallSuccess?string},
|
"overallSuccess": ${overallSuccess?string},
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
</#if>
|
</#if>
|
||||||
<#assign tags><#list item.tags as tag>"${tag}"<#if tag_has_next>,</#if></#list></#assign>
|
<#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}",
|
"nodeRef": "${d.nodeRef}",
|
||||||
"type": "<#if d.isContainer>folder<#else>document</#if>",
|
"type": "<#if d.isContainer>folder<#else>document</#if>",
|
||||||
"mimetype": "${d.mimetype!""}",
|
"mimetype": "${d.mimetype!""}",
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
"modifiedOn": "${d.properties.modified?string("MMM dd yyyy HH:mm:ss 'GMT'Z '('zzz')'")}",
|
"modifiedOn": "${d.properties.modified?string("MMM dd yyyy HH:mm:ss 'GMT'Z '('zzz')'")}",
|
||||||
"modifiedBy": "${modifiedBy}",
|
"modifiedBy": "${modifiedBy}",
|
||||||
"modifiedByUser": "${modifiedByUser}",
|
"modifiedByUser": "${modifiedByUser}",
|
||||||
"size": <#noescape>"${d.size}"</#noescape>,
|
"size": "${d.size}",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"contentUrl": "api/node/content/${d.storeType}/${d.storeId}/${d.id}/${d.name?url}",
|
"contentUrl": "api/node/content/${d.storeType}/${d.storeId}/${d.id}/${d.name?url}",
|
||||||
"actionSet": "${item.actionSet}",
|
"actionSet": "${item.actionSet}",
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"treenode":
|
"treenode":
|
||||||
{
|
{
|
||||||
"totalItems": <#noescape>${treenode.items?size}</#noescape>,
|
"totalItems": ${treenode.items?size},
|
||||||
"items":
|
"items":
|
||||||
[
|
[
|
||||||
<#list treenode.items as t>
|
<#list treenode.items as t>
|
||||||
|
Reference in New Issue
Block a user