Commit adc5bb1a authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen
Browse files

Merge branch 'show-in-results-if-manual-exists' into 'develop'

Show manual badge in search results if manual exists

See merge request t3o/ter!307
parents a319e6f0 f6c08c23
Pipeline #3540 failed with stages
in 5 minutes and 57 seconds
......@@ -125,6 +125,12 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$documentationLink = $documentationService->getDocumentationLink($extension->getExtKey(), $extension->getLastVersion()->getVersionString(), true);
$document->setField('extensionDocumentationLink_stringS', $documentationLink);
// has manual
$document->setField('hasManual_boolS', false);
if ($documentationLink || $extension->getExternalManual()) {
$document->setField('hasManual_boolS', true);
}
// get multiple authors
$authors = [];
if ($extension->getLastVersion() && $extension->getLastVersion()->getAuthor()) {
......
......@@ -47,6 +47,9 @@
<f:if condition="{document.supports8_boolS}">
<li class="list-inline-item badge badge-success">8 LTS</li>
</f:if>
<f:if condition="{document.hasManual_boolS}">
<li class="list-inline-item badge badge-info"><i class="fa fa-book"></i> Has manual</li>
</f:if>
</ul>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment