RM-2561: full node properties only exist for documents, but search might include non-documents so allow for missing nodeJSON.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110959 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Webster
2015-08-26 15:19:12 +00:00
parent 6d5b0f21e7
commit bfef427ef1

View File

@@ -59,10 +59,11 @@
</#list>
</#if>
],
"tags": [<#list item.tags as tag>"${tag}"<#if tag_has_next>,</#if></#list>],
<#--Add in full node details-->
"node": <#noescape>${item.nodeJSON}</#noescape>
"tags": [<#list item.tags as tag>"${tag}"<#if tag_has_next>,</#if></#list>]
<#--Add in full node details, if they exist-->
<#if item.nodeJSON??>
,"node": <#noescape>${item.nodeJSON}</#noescape>
</#if>
}<#if item_has_next>,</#if>
</#list>
],