Skip to content

Commit

Permalink
Merge branch 'master' into prepare-release-3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bigga authored Mar 29, 2021
2 parents 3e5c6d7 + 4f5b1d0 commit f94b278
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
1 change: 1 addition & 0 deletions Classes/Plugin/PageView.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ protected function addViewerJS()
'Resources/Public/Javascript/PageView/FulltextDownloadControl.js',
'Resources/Public/Javascript/PageView/FulltextControl.js',
'Resources/Public/Javascript/PageView/FullTextUtility.js',
'Resources/Public/Javascript/PageView/SearchInDocument.js',
'Resources/Public/Javascript/PageView/PageView.js'
];
// Viewer configuration.
Expand Down
19 changes: 1 addition & 18 deletions Classes/Plugin/Tools/SearchInDocumentTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@
namespace Kitodo\Dlf\Plugin\Tools;

use Kitodo\Dlf\Common\Helper;
use TYPO3\CMS\Core\Page\PageRenderer;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\MathUtility;
use TYPO3\CMS\Core\Utility\PathUtility;

/**
* SearchInDocument tool for the plugin 'Toolbox' of the 'dlf' extension
*
* @author Sebastian Meyer <[email protected]>
* @author Alexander Bigga <[email protected]>
* @author Beatrycze Volk <[email protected]>
* @package TYPO3
* @subpackage dlf
* @access public
Expand Down Expand Up @@ -52,8 +50,6 @@ public function main($content, $conf)
$this->conf = Helper::mergeRecursiveWithOverrule($this->cObj->data['conf'], $this->conf);
}

$this->addSearchInDocumentJS();

// Load current document.
$this->loadDocument();
if (
Expand Down Expand Up @@ -125,19 +121,6 @@ public function main($content, $conf)
return $this->pi_wrapInBaseClass($content);
}

/**
* Adds the JS files necessary for search in document
*
* @access protected
*
* @return void
*/
protected function addSearchInDocumentJS()
{
$pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
$pageRenderer->addJsFooterFile(PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath($this->extKey)) . 'Resources/Public/Javascript/Search/SearchInDocument.js');
}

/**
* Get the encrypted Solr core name
*
Expand Down

0 comments on commit f94b278

Please sign in to comment.