#i18n{library.insertservice.editMedia} ${mediatype.name}

${document.title}
<#list media_attributes as attribute> <#assign field_name = attribute.code> <#if attribute.typeId = 0>
<#elseif attribute.typeId = 3>
<#if document.title?has_content >
<#elseif attribute.typeId = 4> <#if document.summary?has_content >
<#else> - <#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 >
<#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 >