@@ -29,8 +29,7 @@ discard block |
||
29 | 29 | * @subpackage dlf |
30 | 30 | * @access public |
31 | 31 | */ |
32 | -class MetadataController extends AbstractController |
|
33 | -{ |
|
32 | +class MetadataController extends AbstractController { |
|
34 | 33 | /** |
35 | 34 | * @var CollectionRepository |
36 | 35 | */ |
@@ -39,8 +38,7 @@ discard block |
||
39 | 38 | /** |
40 | 39 | * @param CollectionRepository $collectionRepository |
41 | 40 | */ |
42 | - public function injectCollectionRepository(CollectionRepository $collectionRepository) |
|
43 | - { |
|
41 | + public function injectCollectionRepository(CollectionRepository $collectionRepository) { |
|
44 | 42 | $this->collectionRepository = $collectionRepository; |
45 | 43 | } |
46 | 44 | |
@@ -52,8 +50,7 @@ discard block |
||
52 | 50 | /** |
53 | 51 | * @param MetadataRepository $metadataRepository |
54 | 52 | */ |
55 | - public function injectMetadataRepository(MetadataRepository $metadataRepository) |
|
56 | - { |
|
53 | + public function injectMetadataRepository(MetadataRepository $metadataRepository) { |
|
57 | 54 | $this->metadataRepository = $metadataRepository; |
58 | 55 | } |
59 | 56 | |
@@ -65,16 +62,14 @@ discard block |
||
65 | 62 | /** |
66 | 63 | * @param StructureRepository $structureRepository |
67 | 64 | */ |
68 | - public function injectStructureRepository(StructureRepository $structureRepository) |
|
69 | - { |
|
65 | + public function injectStructureRepository(StructureRepository $structureRepository) { |
|
70 | 66 | $this->structureRepository = $structureRepository; |
71 | 67 | } |
72 | 68 | |
73 | 69 | /** |
74 | 70 | * @return string|void |
75 | 71 | */ |
76 | - public function mainAction() |
|
77 | - { |
|
72 | + public function mainAction() { |
|
78 | 73 | $this->cObj = $this->configurationManager->getContentObject(); |
79 | 74 | |
80 | 75 | // Load current document. |
@@ -130,8 +125,7 @@ discard block |
||
130 | 125 | * |
131 | 126 | * @return string The metadata array ready for output |
132 | 127 | */ |
133 | - protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false) |
|
134 | - { |
|
128 | + protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false) { |
|
135 | 129 | if ($useOriginalIiifManifestMetadata) { |
136 | 130 | $iiifData = []; |
137 | 131 | foreach ($metadataArray as $metadata) { |
@@ -250,8 +244,7 @@ discard block |
||
250 | 244 | } |
251 | 245 | |
252 | 246 | if (is_array($metadataArray[$i][$metadataName])) { |
253 | - $metadataArray[$i][$metadataName] = array_values(array_filter($metadataArray[$i][$metadataName], function($value) |
|
254 | - { |
|
247 | + $metadataArray[$i][$metadataName] = array_values(array_filter($metadataArray[$i][$metadataName], function($value) { |
|
255 | 248 | return !empty($value); |
256 | 249 | })); |
257 | 250 | } |
@@ -273,8 +266,7 @@ discard block |
||
273 | 266 | * |
274 | 267 | * @return array metadata |
275 | 268 | */ |
276 | - private function getMetadata() |
|
277 | - { |
|
269 | + private function getMetadata() { |
|
278 | 270 | $metadata = []; |
279 | 271 | if ($this->settings['rootline'] < 2) { |
280 | 272 | // Get current structure's @ID. |
@@ -312,8 +304,7 @@ discard block |
||
312 | 304 | * |
313 | 305 | * @return array metadata |
314 | 306 | */ |
315 | - private function getMetadataForIds($id, $metadata) |
|
316 | - { |
|
307 | + private function getMetadataForIds($id, $metadata) { |
|
317 | 308 | $useOriginalIiifManifestMetadata = $this->settings['originalIiifMetadata'] == 1 && $this->document->getDoc() instanceof IiifManifest; |
318 | 309 | foreach ($id as $sid) { |
319 | 310 | if ($useOriginalIiifManifestMetadata) { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | foreach ($this->requestData['selected'] as $docValue) { |
110 | 110 | if ($docValue['id']) { |
111 | 111 | $docData = $this->getDocumentData($docValue['id'], $docValue); |
112 | - $pdfUrl .= $docData['urlParams'] . $this->settings['pdfparamseparator']; |
|
112 | + $pdfUrl .= $docData['urlParams'].$this->settings['pdfparamseparator']; |
|
113 | 113 | $this->redirectToUri($pdfUrl); |
114 | 114 | } |
115 | 115 | } |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | if ($allMails->count() > 0) { |
173 | 173 | $mailSelect[0] = htmlspecialchars(LocalizationUtility::translate('basket.chooseMail', 'dlf')); |
174 | 174 | foreach ($allMails as $mail) { |
175 | - $mailSelect[$mail->getUid()] = htmlspecialchars($mail->getName()) . ' (' . htmlspecialchars($mail->getMail()) . ')'; |
|
175 | + $mailSelect[$mail->getUid()] = htmlspecialchars($mail->getName()).' ('.htmlspecialchars($mail->getMail()).')'; |
|
176 | 176 | } |
177 | 177 | $this->view->assign('mailSelect', $mailSelect); |
178 | 178 | } |
@@ -256,12 +256,12 @@ discard block |
||
256 | 256 | |
257 | 257 | $entryArray['BASKETDATA'] = $docData; |
258 | 258 | |
259 | - $entryKey = $id . '_' . $startpage; |
|
259 | + $entryKey = $id.'_'.$startpage; |
|
260 | 260 | if (!empty($startX)) { |
261 | - $entryKey .= '_' . $startX; |
|
261 | + $entryKey .= '_'.$startX; |
|
262 | 262 | } |
263 | 263 | if (!empty($endX)) { |
264 | - $entryKey .= '_' . $endX; |
|
264 | + $entryKey .= '_'.$endX; |
|
265 | 265 | } |
266 | 266 | |
267 | 267 | $entryArray['id'] = $id; |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | $urlParams = str_replace("##endy##", $data['endY'] === "" ? "" : (int) $data['endY'], $urlParams); |
313 | 313 | $urlParams = str_replace("##rotation##", $data['rotation'] === "" ? "" : (int) $data['rotation'], $urlParams); |
314 | 314 | |
315 | - $downloadUrl = $this->settings['pdfgenerate'] . $urlParams; |
|
315 | + $downloadUrl = $this->settings['pdfgenerate'].$urlParams; |
|
316 | 316 | |
317 | 317 | $title = $this->document->getTitle(); |
318 | 318 | if (empty($title)) { |
@@ -323,15 +323,15 @@ discard block |
||
323 | 323 | $info = ''; |
324 | 324 | if ($data['startX'] != '' && $data['endX'] != '') { |
325 | 325 | // cutout |
326 | - $info .= htmlspecialchars(LocalizationUtility::translate('basket.cutout', 'dlf')) . ' '; |
|
326 | + $info .= htmlspecialchars(LocalizationUtility::translate('basket.cutout', 'dlf')).' '; |
|
327 | 327 | } |
328 | 328 | if ($data['startpage'] == $data['endpage']) { |
329 | 329 | // One page |
330 | - $info .= htmlspecialchars(LocalizationUtility::translate('page', 'dlf')) . ' ' . $data['startpage']; |
|
330 | + $info .= htmlspecialchars(LocalizationUtility::translate('page', 'dlf')).' '.$data['startpage']; |
|
331 | 331 | } else { |
332 | - $info .= htmlspecialchars(LocalizationUtility::translate('page', 'dlf')) . ' ' . $data['startpage'] . '-' . $data['endpage']; |
|
332 | + $info .= htmlspecialchars(LocalizationUtility::translate('page', 'dlf')).' '.$data['startpage'].'-'.$data['endpage']; |
|
333 | 333 | } |
334 | - $downloadLink = '<a href="' . $downloadUrl . '" target="_blank">' . htmlspecialchars($title) . '</a> (' . $info . ')'; |
|
334 | + $downloadLink = '<a href="'.$downloadUrl.'" target="_blank">'.htmlspecialchars($title).'</a> ('.$info.')'; |
|
335 | 335 | if ($data['startpage'] == $data['endpage']) { |
336 | 336 | $pageNums = 1; |
337 | 337 | } else { |
@@ -407,12 +407,12 @@ discard block |
||
407 | 407 | if ($_piVars['addToBasket'] == 'list') { |
408 | 408 | $documentItem['endpage'] = $this->document->getDoc()->numPages; |
409 | 409 | } |
410 | - $arrayKey = $documentItem['id'] . '_' . $page; |
|
410 | + $arrayKey = $documentItem['id'].'_'.$page; |
|
411 | 411 | if (!empty($documentItem['startX'])) { |
412 | - $arrayKey .= '_' . $documentItem['startX']; |
|
412 | + $arrayKey .= '_'.$documentItem['startX']; |
|
413 | 413 | } |
414 | 414 | if (!empty($documentItem['endX'])) { |
415 | - $arrayKey .= '_' . $documentItem['endX']; |
|
415 | + $arrayKey .= '_'.$documentItem['endX']; |
|
416 | 416 | } |
417 | 417 | // do not add more than one identical object |
418 | 418 | if (!in_array($arrayKey, $items)) { |
@@ -431,14 +431,14 @@ discard block |
||
431 | 431 | // remove parameter endpage |
432 | 432 | $pdfParams = str_replace(",##endpage##", '', $pdfParams); |
433 | 433 | } |
434 | - $pdfGenerateUrl = $this->settings['pdfgenerate'] . $pdfParams; |
|
434 | + $pdfGenerateUrl = $this->settings['pdfgenerate'].$pdfParams; |
|
435 | 435 | if ($this->settings['pregeneration']) { |
436 | 436 | // send ajax request to webapp |
437 | 437 | $output .= ' |
438 | 438 | <script> |
439 | 439 | $(document).ready(function(){ |
440 | 440 | $.ajax({ |
441 | - url: "' . $pdfGenerateUrl . '", |
|
441 | + url: "' . $pdfGenerateUrl.'", |
|
442 | 442 | }).done(function() { |
443 | 443 | }); |
444 | 444 | }); |
@@ -476,12 +476,12 @@ discard block |
||
476 | 476 | } |
477 | 477 | foreach ($_piVars['selected'] as $value) { |
478 | 478 | if (isset($value['id'])) { |
479 | - $arrayKey = $value['id'] . '_' . $value['startpage']; |
|
479 | + $arrayKey = $value['id'].'_'.$value['startpage']; |
|
480 | 480 | if (!empty($value['startX'])) { |
481 | - $arrayKey .= '_' . $value['startX']; |
|
481 | + $arrayKey .= '_'.$value['startX']; |
|
482 | 482 | } |
483 | 483 | if (!empty($value['endX'])) { |
484 | - $arrayKey .= '_' . $value['endX']; |
|
484 | + $arrayKey .= '_'.$value['endX']; |
|
485 | 485 | } |
486 | 486 | if (isset($items[$arrayKey])) { |
487 | 487 | unset($items[$arrayKey]); |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | |
515 | 515 | $mailObject = $this->mailRepository->findByUid(intval($mailId))->getFirst(); |
516 | 516 | |
517 | - $mailText = htmlspecialchars(LocalizationUtility::translate('basket.mailBody', 'dlf')) . "\n"; |
|
517 | + $mailText = htmlspecialchars(LocalizationUtility::translate('basket.mailBody', 'dlf'))."\n"; |
|
518 | 518 | $numberOfPages = 0; |
519 | 519 | $pdfUrl = $this->settings['pdfdownload']; |
520 | 520 | // prepare links |
@@ -522,7 +522,7 @@ discard block |
||
522 | 522 | if ($docValue['id']) { |
523 | 523 | $explodeId = explode("_", $docValue['id']); |
524 | 524 | $docData = $this->getDocumentData($explodeId[0], $docValue); |
525 | - $pdfUrl .= $docData['urlParams'] . $this->settings['pdfparamseparator']; |
|
525 | + $pdfUrl .= $docData['urlParams'].$this->settings['pdfparamseparator']; |
|
526 | 526 | $pages = (abs(intval($docValue['startpage']) - intval($docValue['endpage']))); |
527 | 527 | if ($pages === 0) { |
528 | 528 | $numberOfPages = $numberOfPages + 1; |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | } |
534 | 534 | // Remove leading/tailing pdfparamseperator |
535 | 535 | $pdfUrl = trim($pdfUrl, $this->settings['pdfparamseparator']); |
536 | - $mailBody = $mailText . $pdfUrl; |
|
536 | + $mailBody = $mailText.$pdfUrl; |
|
537 | 537 | // Get hook objects. |
538 | 538 | $hookObjects = Helper::getHookObjects('Classes/Controller/BasketController.php'); |
539 | 539 | // Hook for getting a customized mail body. |
@@ -560,7 +560,7 @@ discard block |
||
560 | 560 | $newActionLog = GeneralUtility::makeInstance(ActionLog::class); |
561 | 561 | $newActionLog->setFileName($pdfUrl); |
562 | 562 | $newActionLog->setCountPages($numberOfPages); |
563 | - $newActionLog->setLabel('Mail: ' . $mailObject->getMail()); |
|
563 | + $newActionLog->setLabel('Mail: '.$mailObject->getMail()); |
|
564 | 564 | |
565 | 565 | if ($GLOBALS["TSFE"]->loginUser) { |
566 | 566 | // internal user |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | foreach ($this->requestData['selected'] as $docId => $docValue) { |
593 | 593 | if ($docValue['id']) { |
594 | 594 | $docData = $this->getDocumentData($docValue['id'], $docValue); |
595 | - $pdfUrl .= $docData['urlParams'] . $this->settings['pdfparamseparator']; |
|
595 | + $pdfUrl .= $docData['urlParams'].$this->settings['pdfparamseparator']; |
|
596 | 596 | $numberOfPages += $docData['pageNums']; |
597 | 597 | } |
598 | 598 | } |
@@ -610,7 +610,7 @@ discard block |
||
610 | 610 | if ($docValue['id']) { |
611 | 611 | $explodeId = explode("_", $docId); |
612 | 612 | $docData = $this->getDocumentData($explodeId[0], $docValue); |
613 | - $pdfUrl .= $docData['urlParams'] . $this->settings['pdfparamseparator']; |
|
613 | + $pdfUrl .= $docData['urlParams'].$this->settings['pdfparamseparator']; |
|
614 | 614 | $numberOfPages += $docData['pageNums']; |
615 | 615 | } |
616 | 616 | } |
@@ -627,12 +627,12 @@ discard block |
||
627 | 627 | // internal user |
628 | 628 | $actionLog->setUserId($GLOBALS["TSFE"]->fe_user->user['uid']); |
629 | 629 | $actionLog->setName($GLOBALS["TSFE"]->fe_user->user['username']); |
630 | - $actionLog->setLabel('Print: ' . $printer->getLabel()); |
|
630 | + $actionLog->setLabel('Print: '.$printer->getLabel()); |
|
631 | 631 | } else { |
632 | 632 | // external user |
633 | 633 | $actionLog->setUserId(0); |
634 | 634 | $actionLog->setName('n/a'); |
635 | - $actionLog->setLabel('Print: ' . $printer->getLabel()); |
|
635 | + $actionLog->setLabel('Print: '.$printer->getLabel()); |
|
636 | 636 | } |
637 | 637 | // add action to protocol |
638 | 638 | $this->actionLogRepository->add($actionLog); |
@@ -23,8 +23,7 @@ discard block |
||
23 | 23 | * @subpackage dlf |
24 | 24 | * @access public |
25 | 25 | */ |
26 | -class TableOfContentsController extends AbstractController |
|
27 | -{ |
|
26 | +class TableOfContentsController extends AbstractController { |
|
28 | 27 | /** |
29 | 28 | * This holds the active entries according to the currently selected page |
30 | 29 | * |
@@ -43,8 +42,7 @@ discard block |
||
43 | 42 | * |
44 | 43 | * @return array HMENU array for menu entry |
45 | 44 | */ |
46 | - protected function getMenuEntry(array $entry, $recursive = false) |
|
47 | - { |
|
45 | + protected function getMenuEntry(array $entry, $recursive = false) { |
|
48 | 46 | $entryArray = []; |
49 | 47 | // Set "title", "volume", "type" and "pagination" from $entry array. |
50 | 48 | $entryArray['title'] = !empty($entry['label']) ? $entry['label'] : $entry['orderlabel']; |
@@ -131,8 +129,7 @@ discard block |
||
131 | 129 | * |
132 | 130 | * @return void |
133 | 131 | */ |
134 | - public function mainAction() |
|
135 | - { |
|
132 | + public function mainAction() { |
|
136 | 133 | $this->view->assign('toc', $this->makeMenuArray()); |
137 | 134 | } |
138 | 135 | |
@@ -142,8 +139,7 @@ discard block |
||
142 | 139 | * @access public |
143 | 140 | * @return array HMENU array |
144 | 141 | */ |
145 | - public function makeMenuArray() |
|
146 | - { |
|
142 | + public function makeMenuArray() { |
|
147 | 143 | // Load current document. |
148 | 144 | $this->loadDocument($this->requestData); |
149 | 145 | if ( |
@@ -65,22 +65,22 @@ |
||
65 | 65 | $_EXTKEY = 'dlf'; |
66 | 66 | // Register tools for toolbox plugin. |
67 | 67 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] = []; |
68 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_fulltexttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.fulltexttool'; |
|
69 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_annotationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.annotationtool'; |
|
70 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_fulltextdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.fulltextdownloadtool'; |
|
71 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_imagedownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagedownloadtool'; |
|
72 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_imagemanipulationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagemanipulationtool'; |
|
73 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_pdfdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.pdfdownloadtool'; |
|
74 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_searchindocumenttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.searchindocumenttool'; |
|
68 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_fulltexttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.fulltexttool'; |
|
69 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_annotationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.annotationtool'; |
|
70 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_fulltextdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.fulltextdownloadtool'; |
|
71 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_imagedownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagedownloadtool'; |
|
72 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_imagemanipulationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagemanipulationtool'; |
|
73 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_pdfdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.pdfdownloadtool'; |
|
74 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_searchindocumenttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.searchindocumenttool'; |
|
75 | 75 | // Register hooks. |
76 | 76 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class; |
77 | 77 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class; |
78 | 78 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Common/MetsDocument.php']['hookClass'][] = \Kitodo\Dlf\Hooks\KitodoProductionHacks::class; |
79 | 79 | // Register AJAX eID handlers. |
80 | -$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Eid\SearchSuggest::class . '::main'; |
|
81 | -$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Eid\SearchInDocument::class . '::main'; |
|
80 | +$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Eid\SearchSuggest::class.'::main'; |
|
81 | +$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Eid\SearchInDocument::class.'::main'; |
|
82 | 82 | if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['dlf']['enableInternalProxy'] ?? false) { |
83 | - $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Eid\PageViewProxy::class . '::main'; |
|
83 | + $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Eid\PageViewProxy::class.'::main'; |
|
84 | 84 | } |
85 | 85 | // Use Caching Framework for Solr queries |
86 | 86 | if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'])) { |
@@ -79,7 +79,7 @@ |
||
79 | 79 | // Register AJAX eID handlers. |
80 | 80 | $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Eid\SearchSuggest::class . '::main'; |
81 | 81 | $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Eid\SearchInDocument::class . '::main'; |
82 | -if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['dlf']['enableInternalProxy'] ?? false) { |
|
82 | +if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['dlf']['enableInternalProxy'] ?? FALSE) { |
|
83 | 83 | $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Eid\PageViewProxy::class . '::main'; |
84 | 84 | } |
85 | 85 | // Use Caching Framework for Solr queries |