<#-- -- 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' && recordfield.value?has_content><#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> width="${action.icon.width}"<#if action.icon.height!=-1> height="${action.icon.height}" title="${action.name}" alt="${action.name}"/>
<#list resource_actions.record.actions?sort as action> <#if (action.nameKey!="directory.action.history.name") || (action.nameKey=="directory.action.history.name" && history_workflow)> btn-danger<#elseif action.nameKey="directory.action.enable.name">btn-success<#else>btn-primary" href="${action.url}?id_directory_record=${resource_actions.record.idRecord}&id_directory=${directory.idDirectory}" title="${action.description}">  

#i18n{directory.viewing_directory_record.labelRecord} ${record.idRecord}

<#if resource_actions.workflow_state?exists>
#i18n{directory.viewing_directory_record.labelDirectory}
${directory.title}
#i18n{directory.viewing_directory_record.labelState}
${resource_actions.workflow_state.name}
#i18n{directory.viewing_directory_record.actions}
<#if item_navigator??> <@item_navigation item_navigator=item_navigator /> <@display_actions resource_actions/>

#i18n{directory.viewing_directory_record.title} : '${directory.title}' <#if record.dateCreation?? && show_date_creation_record > - #i18n{directory.viewing_directory_record.date_creation} ${record.dateCreation} <#if record.dateModification?? && show_date_modification_record > - #i18n{directory.viewing_directory_record.date_modification} ${record.dateModification}

<#list entry_list as entry> <#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>
<@getRecordFieldHtml entry=entry recordfield=recordfield first=first /> <#assign first = false>