
<#list media_attributes as attribute>
<#assign field_name = attribute.code>
<#if attribute.typeId = 0>
<#elseif attribute.typeId = 3>
#if>
<#elseif attribute.typeId = 4>
<#if document.summary?has_content >
<#else>
-
#if>
<#elseif attributes_associations[attribute.code]?has_content>
<#assign doctype_code = attributes_associations[attribute.code]>
<#if attribute.typeId = 1>
<#if document.getAttribute(doctype_code)?exists && document.getAttribute(doctype_code).textValue?has_content >
#if>
<#elseif attribute.typeId = 2>
<#if document.getAttribute(doctype_code)?has_content >
<#assign attributeId = document.getAttribute(doctype_code).id >
<#assign url = "document?id=" + document.id + "&id_attribute=" + attributeId >
#if>
#if>
#if>
#list>