<#-- $This file is distributed under the terms of the license in LICENSE$ -->
<#-- Default individual search view -->

<#import "lib-vivo-properties.ftl" as p>

<#-- <@dumpAll /> -->
<div class="virtualArticlePart" style="display:none;">
<#list excerptInfo as excerptProperties>
  <#if excerptProperties.property == "https://litvinovg.pro/text_structures#htmlExcerpt">
    <#assign excerptText = excerptProperties.value >
  </#if>
  <#if excerptProperties.property == "http://www.w3.org/2000/01/rdf-schema#label">
    <#assign excerptTextName = excerptProperties.value >
  </#if>
  <#if excerptProperties.property == "https://litvinovg.pro/text_structures#author">
    <#assign excerptAuthor = excerptProperties.value >
  </#if>
</#list>
<#if excerptText?? && excerptTextName?? && excerptTextName?has_content && excerptText?has_content>
  <button type="button" style="border:none;padding: 18px;width: 100%; text-align:left;" class="collapsible">${excerptTextName}</button>     
  <div class="htmlExcerpt" style="list-style:none; display:none;">
    ${excerptText}
    <#if excerptAuthor?? && excerptAuthor?has_content>
      <div class="authors" style="display:block;float:right; margin:15px;">
      ${excerptAuthor}
      </div>
    </#if>
    <#list excerptInfo as excerptProperties>
      <#if excerptProperties.property == "https://litvinovg.pro/text_structures#works">
        <div class="virtualArticleWork" style="display:none;">${excerptProperties.value}</div>
      </#if>
    </#list>
    <#list excerptInfo as excerptProperties>
      <#if excerptProperties.property == "https://litvinovg.pro/text_structures#bibliography">
        <div class="virtualArticleBibliography" style="display:none;">${excerptProperties.value}</div>
      </#if>
    </#list>


  </div>
</#if>
</div>

<div class="excerptSearchResult">
  <a href="${individual.profileUrl}" title="${i18n().individual_name}">${individual.name}</a>
  <@p.displayTitle individual />
  <p class="snippet">${individual.snippet}</p>
</div>
