<#-- -- Return true if the given entry is an entry type Image -- @param entry the entry to check -- @return true if the entry is an entry type Image --> <#function isEntryTypeImage entry> <#return entry.entryType?has_content && entry.entryType.idType?has_content && entry.entryType.idType == id_entry_type_image> <#-- -- Return true if the given entry is an entry type MyLuteceUser -- @param entry the entry to check -- @return true if the entry is an entry type MyLuteceUser --> <#function isEntryTypeMyLuteceUser entry> <#return entry.entryType?has_content && entry.entryType.idType?has_content && entry.entryType.idType == id_entry_type_mylutece_user> <#-- -- Return true if the given entry is an entry type Geolocation -- @param entry the entry to check -- @return true if the entry is an entry type Geolocation --> <#function isEntryTypeGeolocation entry> <#return entry.entryType?has_content && entry.entryType.idType?has_content && entry.entryType.idType == id_entry_type_geolocation> <#-- -- Build the HTML of the given record field -- @param entry the entry of the record field -- @param recordfield the recordfield -- @param first true if the record field is the first record field of the list of record fields of the given entry -- @return the HTLM code of the record field --> <#macro getRecordFieldHtml entry recordfield first> <#if isEntryTypeGeolocation( entry )> ${entry.getHtmlRecordFieldValue( locale, recordfield, false )} <#if recordfield.field?? && recordfield.field.title?? && recordfield.field.title == 'address' > <#include "../../../skin/plugins/directory/" + entry.mapProvider.frontHtmlCode /> <#else> <#if !first> <#if isEntryTypeImage( entry )> <#if recordfield.field?? & recordfield.field.isShownInResultRecord( )>${entry.getHtmlRecordFieldValue( locale, recordfield, false )} <#elseif isEntryTypeMyLuteceUser(entry) && !permission_visualisation_mylutece_user>${record_field.value}<#else> ${entry.getHtmlRecordFieldValue( locale,recordfield, false )} <#-- -- Build the HTML code to display the actions -- @param resource_actions the actions to display -- @return the HTML code of the actions --> <#macro display_actions resource_actions > <#if resource_actions.workflow_action_list?exists> <#list resource_actions.workflow_action_list as action> ${action.name} <#include "includes/include_view_directory_record_header.html">
<#list entry_list as entry> <#if entry.fields?? && entry.fields?has_content> <#list entry.fields as field> <#if field?? && field.title?has_content && field.title == "viewNumberAtt"> <#assign viewNumberAttValue = field.value > <#break> <#if entry.mapProvider?has_content> <#if entry.mapProvider.key?has_content && entry.mapProvider.key == "gismap" > <#if entry.mapProvider.getParameter(viewNumberAttValue?number)?? && entry.mapProvider.getParameter(viewNumberAttValue?number).mapParameter??> <#assign map_parameter = entry.mapProvider.getParameter(viewNumberAttValue?number).mapParameter > <#if entry.mapProvider.getParameter(viewNumberAttValue?number)?? && entry.mapProvider.getParameter(viewNumberAttValue?number).addressParam??> <#assign add_parameter = entry.mapProvider.getParameter(viewNumberAttValue?number).addressParam > <#if entry.entryType.group>
${entry.title} <#if entry.children?has_content> <#list entry.children as child >
<#assign entryKey=""+child.idEntry><#assign first = true> <#list map_id_entry_list_record_field[entryKey] as recordfield> <@getRecordFieldHtml entry=child recordfield=recordfield first=first /><#assign first = false>
<#else>
<#assign entryKey=""+entry.idEntry> <#assign first = true>
<#if entry.title?exists>
<#list map_id_entry_list_record_field[entryKey] as recordfield> <#if recordfield.field?? && recordfield.field.title?? && recordfield.field.title == 'geometry' && recordfield.value?has_content> <#list map_id_entry_list_record_field[entryKey] as recordfield>
<@getRecordFieldHtml entry=entry recordfield=recordfield first=first /> <#assign first = false>
${resource_history}
#i18n{module.directory.multiview.records_list.nature}

${directory.title}

#i18n{module.directory.multiview.records_list.record.number}

${record.idRecord}

#i18n{directory.viewing_directory_record.date_creation}

${record.dateCreation}

#i18n{directory.viewing_directory_record.date_modification}

${record.dateModification}

<#if resource_actions.workflow_state?exists>
#i18n{module.directory.multiview.records_list.state}

${resource_actions.workflow_state.name}

<@display_actions resource_actions/>