<#function isEntryTypeGeolocation entry> <#return entry.entryType?has_content && entry.entryType.idType?has_content && entry.entryType.idType == id_entry_type_geolocation> <#function isEntryTypeImage entry> <#return entry.entryType?has_content && entry.entryType.idType?has_content && entry.entryType.idType == id_entry_type_image>
<#if permission_create_record>

#i18n{directory.manage_directory_record.title}: '${directory.title}'

<#assign sort_search_attribute = "&session=session&search=search"> <#if entry_list_form_main_search?has_content> <#list entry_list_form_main_search as entry> <#assign entryKey=""+entry.idEntry> <#if map_id_entry_list_record_field?exists && map_id_entry_list_record_field[entryKey]?exists> ${entry.getHtmlFormSearchEntry( locale,map_id_entry_list_record_field[entryKey],false )} <#if map_id_entry_list_record_field[entryKey]?has_content> <#list map_id_entry_list_record_field[entryKey] as default_value> <#assign sort_search_attribute = sort_search_attribute + "&" + entryKey + "=" + default_value.entry.convertRecordFieldValueToString(default_value,locale,false,false)> <#else> ${entry.getHtmlFormSearchEntry( locale , false)}
<#if directory.isDateShownInSearch() & !( directory.isDateShownInAdvancedSearch() )>
<#if directory.isDateShownInMultiSearch()> #i18n{directory.html_code_form_search_entry_type_date.of} #i18n{directory.html_code_form_search_entry_type_date.to} <#else>
<#if directory.displaySearchState> <@combo name="search_state_workflow" items=search_state_workflow default_value=search_state_workflow_default /> <#if entry_list_form_complementary_search?has_content>
#i18n{directory.manage_directory_record.title_open_block} #i18n{directory.manage_directory_record.title_close_block} #i18n{directory.manage_directory_record.label_complementary_search}
<#list entry_list_form_complementary_search as entry> <#assign entryKey=""+entry.idEntry> <#if map_id_entry_list_record_field?exists && map_id_entry_list_record_field[entryKey]?exists> ${entry.getHtmlFormSearchEntry( locale,map_id_entry_list_record_field[entryKey],false )} <#else> ${entry.getHtmlFormSearchEntry( locale, false )} <#if directory.displayComplementarySearchState> <@combo name="search_state_workflow" items=search_state_workflow default_value=search_state_workflow_default />

<#-- macro used for Geolocation AND actions column in record list --> <#macro display_actions resource_actions > <#if resource_actions.workflow_action_list?exists> <#list resource_actions.workflow_action_list as action> width="${action.icon.width}" <#if action.icon.height!=-1> height="${action.icon.height}" title="${action.name}" alt="${action.name}" /> <#list resource_actions.record.actions as action> <#if (action.nameKey!="directory.action.history.name") || (action.nameKey=="directory.action.history.name" && history_workflow)> ${action.name}
<@paginationAdmin paginator=paginator combo=1 form=0 />
<#list entry_list_search_result as entry> <#if show_date_creation_result> <#if is_workflow_enabled && directory.idWorkflow!=-1 > <#list resource_actions_list as resource_actions> <#assign first_entry = true /> <#list entry_list_search_result as entry> <#assign entryKey=""+entry.idEntry> <#assign listRecordField=resource_actions.map_id_entry_list_record_field[entryKey]> <#if show_date_creation_result> <#if resource_actions.workflow_state?exists>
${entry.title} <#if entry.sortable> <@sort jsp_url="jsp/admin/plugins/directory/ManageDirectoryRecord.jsp" attribute="${entry.idEntry}&id_directory=${directory.idDirectory}${sort_search_attribute}" /> #i18n{directory.manage_directory_record.date_creation} <@sort jsp_url="jsp/admin/plugins/directory/ManageDirectoryRecord.jsp" attribute="dateCreation&id_directory=${directory.idDirectory}${sort_search_attribute}" /> #i18n{directory.manage_workflow_state} #i18n{directory.manage_workflow_actions}
<#if listRecordField?has_content> <#assign first_record_field = true /> <#list listRecordField as record_field> <#if isEntryTypeGeolocation(entry) && first_record_field> <#assign first_record_field = false /> <#if resource_actions.workflow_state?has_content && resource_actions.workflow_state.icon.id?has_content && ( resource_actions.workflow_state.icon.id > 0)> <#else> <#if isEntryTypeImage(entry)> <#if record_field.field?? & record_field.field.isShownInResultList()> ${entry.getHtmlRecordFieldValue( locale,record_field,false)} <#else> ${entry.getHtmlRecordFieldValue( locale,record_field,false)} <#if record_field_has_next>
<#if show_date_creation_result && record_field.record?? && record_field.record.dateCreation??> <#assign date_creation = record_field.record.dateCreation> <#else> <#assign date_creation = "">
<#if date_creation??> ${date_creation} ${resource_actions.workflow_state.name} <@display_actions resource_actions/>
<#if entry_list_geolocation?has_content> <#list entry_list_geolocation as entry> <#if entry.mapProvider?has_content && entry.mapProvider.mapListSupported> <#-- several results --> <#include entry.mapProvider.backListHtmlCode /> <#if history_workflow && permission_mass_print>

<@paginationAdmin paginator=paginator />

#i18n{directory.manage_directory_record.title_export_result}

<@combo name="id_directory_xsl" default_value="" items=xsl_export_list />