Merge branch 'master' into fix-not-used

This commit is contained in:
Alexander Bigga 2021-10-12 12:57:39 +02:00 committed by GitHub
commit 5dbe3d2770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -97,7 +97,7 @@ class DataHandler implements LoggerAwareInterface
// Field post-processing for table "tx_dlf_solrcores".
case 'tx_dlf_solrcores':
// Create new Solr core.
$fieldArray['index_name'] = Solr::createCore();
$fieldArray['index_name'] = Solr::createCore($fieldArray['index_name']);
if (empty($fieldArray['index_name'])) {
$this->logger->error('Could not create new Apache Solr core');
}

View File

@ -77,7 +77,7 @@ class SearchInDocument
// return the coordinates of highlighted search as absolute coordinates
$solrRequest->addParam('hl.ocr.absoluteHighlights', 'on');
// max amount of snippets for a single page
$solrRequest->addParam('hl.snippets', 20);
$solrRequest->addParam('hl.snippets', 40);
// we store the fulltext on page level and can disable this option
$solrRequest->addParam('hl.ocr.trackPages', 'off');

View File

@ -47,7 +47,7 @@ return [
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'alphanum,nospace,required,unique',
'eval' => 'alphanum,nospace,unique',
'default' => '',
'fieldInformation' => [
'solrCoreStatus' => [

View File

@ -73,7 +73,7 @@ dlfViewerFullTextDownloadControl.prototype.createFullTextFile = function() {
/**
* Append text line
*
* @param {string} textLine
* @param {ol.Feature} textLine
*/
dlfViewerFullTextDownloadControl.prototype.appendTextLine = function(textLine) {
var fileContent = '';
@ -89,5 +89,5 @@ dlfViewerFullTextDownloadControl.prototype.appendTextLine = function(textLine) {
}
}
}
return fileContent.concat(fileContent);
return fileContent;
};