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

Merge branch...

Merge branch '291-can-t-find-extension-when-searching-for-part-of-author-company-name-and-or-email' into 'develop'

Add company to author for indexing

Closes #291

See merge request t3o/ter!286
parents 22d7e5e3 acfcc998
Pipeline #3068 passed with stages
in 8 minutes and 5 seconds
......@@ -128,6 +128,10 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$authors = [];
if ($extension->getLastVersion() && $extension->getLastVersion()->getAuthor()) {
$authors = GeneralUtility::trimExplode(',', $extension->getLastVersion()->getAuthor()->getName());
if ($extension->getLastVersion()->getAuthor()->getCompany()) {
// Add company name to author
$authors[] = $extension->getLastVersion()->getAuthor()->getCompany();
}
}
$document->setField('author_textWstM', $authors);
}
......
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