2021-04-17 00:26:33 +02:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
|
|
|
|
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
|
2021-04-17 21:20:54 +02:00
|
|
|
xmlns:s="http://typo3.org/ns/WapplerSystems/Meilisearch/ViewHelpers">
|
2021-04-17 00:26:33 +02:00
|
|
|
|
|
|
|
<f:section name="Document">
|
|
|
|
|
|
|
|
<div class="list-group-item search-result results-entry{f:if(condition:document.isElevated, then: ' results-elevated')}"
|
|
|
|
data-document-score="{document.score}"
|
|
|
|
data-document-id="{document.id}"
|
|
|
|
data-document-url="{document.url}"
|
|
|
|
>
|
|
|
|
<f:if condition="{document.isElevated}">
|
|
|
|
<div class="results-elevated-label"><s:translate key="sponsored"/></div>
|
|
|
|
</f:if>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-10">
|
|
|
|
<h3 class="results-topic"><a href="{s:uri.result.addSearchWordList(url:document.url, searchWords:resultSet.usedQuery.query)}">{document.title}</a></h3>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
|
|
<f:render partial="Result/RelevanceBar" section="RelevanceBar" arguments="{resultSet:resultSet, document:document}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="results-teaser">
|
|
|
|
<p class="result-content">{s:document.highlightResult(resultSet:resultSet, document:document, fieldName:'content')}</p>
|
|
|
|
<f:if condition="{document.type} == 'tx_meilisearch_file'">
|
|
|
|
<p>
|
|
|
|
<s:translate key="file_mimetype" />: {document.fileMimeType}<br />
|
|
|
|
<s:translate key="file_referenced" />:
|
|
|
|
|
|
|
|
<ul class="references">
|
|
|
|
<f:if condition="{document.fileReferenceUrl}">
|
|
|
|
<li><f:link.typolink title="{document.fileReferenceTitle}" parameter="{document.fileReferenceUrl}">{document.fileReferenceTitle}</f:link.typolink></li>
|
|
|
|
</f:if>
|
|
|
|
<f:if condition="{document.variants}">
|
|
|
|
<f:for each="{document.variants}" as="variant">
|
|
|
|
<li><f:link.typolink title="{variant.fileReferenceTitle}" parameter="{variant.fileReferenceUrl}">{variant.fileReferenceTitle}</f:link.typolink></li>
|
|
|
|
</f:for>
|
|
|
|
</f:if>
|
|
|
|
</ul>
|
|
|
|
</p>
|
|
|
|
</f:if>
|
|
|
|
<s:debug.documentScoreAnalyzer document="{document}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</f:section>
|