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

<@pagination paginator=paginator /> #i18n{library.insertservice.nbitemsperpage} :
<#assign hashAttributes = {} /> <#list media_attributes as attribute> <#assign hashAttributes = hashAttributes + { attribute.code:attribute.typeId } /> <#list all_documents as mappingdocument> <#assign mapping_id = mappingdocument.first /> <#assign document = mappingdocument.second /> <#list media_attributes as attribute>
#i18n{library.insertservice.header.name}${attribute.description}
${document.title} <#assign attributes_associations = all_attributes_associations[mapping_id] /> <#if attributes_associations[attribute.code]?has_content> <#assign doctype_code = attributes_associations[attribute.code]> <#if hashAttributes[attribute.code] = 0> <#elseif hashAttributes[attribute.code] = 1> <#if document.getAttribute(doctype_code).textValue?has_content > ${document.getAttribute(doctype_code).textValue} <#elseif hashAttributes[attribute.code] = 2> <#if document.getAttribute(doctype_code)?has_content > <#assign attributeId = document.getAttribute(doctype_code).id > <#assign url = "document?id=" + document.id + "&id_attribute=" + attributeId > #i18n{library.insertservice.clicktopreview}