@@ -226,7 +226,7 @@ |
||
| 226 | 226 | 'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_documents.thumbnail', |
| 227 | 227 | 'config' => [ |
| 228 | 228 | 'type' => 'user', |
| 229 | - 'userFunc' => \Kitodo\Dlf\Hooks\UserFunc::class . '->displayThumbnail', |
|
| 229 | + 'userFunc' => \Kitodo\Dlf\Hooks\UserFunc::class.'->displayThumbnail', |
|
| 230 | 230 | ], |
| 231 | 231 | ], |
| 232 | 232 | 'metadata' => [ |
@@ -269,10 +269,10 @@ |
||
| 269 | 269 | 'readOnly' => 1, |
| 270 | 270 | 'fieldControl' => [ |
| 271 | 271 | 'elementBrowser' => [ |
| 272 | - 'disabled' => true |
|
| 272 | + 'disabled' => TRUE |
|
| 273 | 273 | ] |
| 274 | 274 | ], |
| 275 | - 'hideDeleteIcon' => true |
|
| 275 | + 'hideDeleteIcon' => TRUE |
|
| 276 | 276 | ], |
| 277 | 277 | ], |
| 278 | 278 | 'volume' => [ |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | 'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_metadata.wrap', |
| 145 | 145 | 'config' => [ |
| 146 | 146 | 'behaviour' => [ |
| 147 | - 'allowLanguageSynchronization' => true |
|
| 147 | + 'allowLanguageSynchronization' => TRUE |
|
| 148 | 148 | ], |
| 149 | 149 | 'type' => 'text', |
| 150 | 150 | 'cols' => 48, |
@@ -152,8 +152,8 @@ discard block |
||
| 152 | 152 | 'wrap' => 'off', |
| 153 | 153 | 'eval' => 'trim', |
| 154 | 154 | 'default' => "key.wrap = <dt>|</dt>\nvalue.required = 1\nvalue.wrap = <dd>|</dd>", |
| 155 | - 'fixedFont' => true, |
|
| 156 | - 'enableTabulator' => true |
|
| 155 | + 'fixedFont' => TRUE, |
|
| 156 | + 'enableTabulator' => TRUE |
|
| 157 | 157 | ], |
| 158 | 158 | ], |
| 159 | 159 | 'index_tokenized' => [ |
@@ -17,79 +17,79 @@ |
||
| 17 | 17 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_audioplayer'] = 'layout,select_key,pages,recursive'; |
| 18 | 18 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_audioplayer'] = 'pi_flexform'; |
| 19 | 19 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_audioplayer', 'dlf_audioplayer'], 'list_type', 'dlf'); |
| 20 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_audioplayer', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/AudioPlayer.xml'); |
|
| 20 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_audioplayer', 'FILE:EXT:'.'dlf/Configuration/Flexforms/AudioPlayer.xml'); |
|
| 21 | 21 | // Plugin "basket". |
| 22 | 22 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_basket'] = 'layout,select_key,pages,recursive'; |
| 23 | 23 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_basket'] = 'pi_flexform'; |
| 24 | 24 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_basket', 'dlf_basket'], 'list_type', 'dlf'); |
| 25 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_basket', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Basket.xml'); |
|
| 25 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_basket', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Basket.xml'); |
|
| 26 | 26 | // Plugin "calendar". |
| 27 | 27 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_calendar'] = 'layout,select_key,pages,recursive'; |
| 28 | 28 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_calendar'] = 'pi_flexform'; |
| 29 | 29 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_calendar', 'dlf_calendar'], 'list_type', 'dlf'); |
| 30 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_calendar', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Calendar.xml'); |
|
| 30 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_calendar', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Calendar.xml'); |
|
| 31 | 31 | // Plugin "collection". |
| 32 | 32 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_collection'] = 'layout,select_key,pages,recursive'; |
| 33 | 33 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_collection'] = 'pi_flexform'; |
| 34 | 34 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_collection', 'dlf_collection'], 'list_type', 'dlf'); |
| 35 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_collection', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Collection.xml'); |
|
| 35 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_collection', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Collection.xml'); |
|
| 36 | 36 | // Plugin "feeds". |
| 37 | 37 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_feeds'] = 'layout,select_key,pages,recursive'; |
| 38 | 38 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_feeds'] = 'pi_flexform'; |
| 39 | 39 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_feeds', 'dlf_feeds'], 'list_type', 'dlf'); |
| 40 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_feeds', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Feeds.xml'); |
|
| 40 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_feeds', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Feeds.xml'); |
|
| 41 | 41 | // Plugin "listview". |
| 42 | 42 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_listview'] = 'layout,select_key,pages,recursive'; |
| 43 | 43 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_listview'] = 'pi_flexform'; |
| 44 | 44 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_listview', 'dlf_listview'], 'list_type', 'dlf'); |
| 45 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_listview', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/ListView.xml'); |
|
| 45 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_listview', 'FILE:EXT:'.'dlf/Configuration/Flexforms/ListView.xml'); |
|
| 46 | 46 | // Plugin "metadata". |
| 47 | 47 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_metadata'] = 'layout,select_key,pages,recursive'; |
| 48 | 48 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_metadata'] = 'pi_flexform'; |
| 49 | 49 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_metadata', 'dlf_metadata'], 'list_type', 'dlf'); |
| 50 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_metadata', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Metadata.xml'); |
|
| 50 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_metadata', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Metadata.xml'); |
|
| 51 | 51 | // Plugin "navigation". |
| 52 | 52 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_navigation'] = 'layout,select_key,pages,recursive'; |
| 53 | 53 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_navigation'] = 'pi_flexform'; |
| 54 | 54 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_navigation', 'dlf_navigation'], 'list_type', 'dlf'); |
| 55 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_navigation', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Navigation.xml'); |
|
| 55 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_navigation', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Navigation.xml'); |
|
| 56 | 56 | // Plugin "oaipmh". |
| 57 | 57 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_oaipmh'] = 'layout,select_key,pages,recursive'; |
| 58 | 58 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_oaipmh'] = 'pi_flexform'; |
| 59 | 59 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_oaipmh', 'dlf_oaipmh'], 'list_type', 'dlf'); |
| 60 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_oaipmh', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/OaiPmh.xml'); |
|
| 60 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_oaipmh', 'FILE:EXT:'.'dlf/Configuration/Flexforms/OaiPmh.xml'); |
|
| 61 | 61 | // Plugin "pagegrid". |
| 62 | 62 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_pagegrid'] = 'layout,select_key,pages,recursive'; |
| 63 | 63 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_pagegrid'] = 'pi_flexform'; |
| 64 | 64 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_pagegrid', 'dlf_pagegrid'], 'list_type', 'dlf'); |
| 65 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pagegrid', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/PageGrid.xml'); |
|
| 65 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pagegrid', 'FILE:EXT:'.'dlf/Configuration/Flexforms/PageGrid.xml'); |
|
| 66 | 66 | // Plugin "pageview". |
| 67 | 67 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_pageview'] = 'layout,select_key,pages,recursive'; |
| 68 | 68 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_pageview'] = 'pi_flexform'; |
| 69 | 69 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_pageview', 'dlf_pageview'], 'list_type', 'dlf'); |
| 70 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pageview', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/PageView.xml'); |
|
| 70 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pageview', 'FILE:EXT:'.'dlf/Configuration/Flexforms/PageView.xml'); |
|
| 71 | 71 | // Plugin "search". |
| 72 | 72 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_search'] = 'layout,select_key,pages,recursive'; |
| 73 | 73 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_search'] = 'pi_flexform'; |
| 74 | 74 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_search', 'dlf_search'], 'list_type', 'dlf'); |
| 75 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_search', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Search.xml'); |
|
| 75 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_search', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Search.xml'); |
|
| 76 | 76 | // Plugin "statistics". |
| 77 | 77 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_statistics'] = 'layout,select_key,pages,recursive'; |
| 78 | 78 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_statistics'] = 'pi_flexform'; |
| 79 | 79 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_statistics', 'dlf_statistics'], 'list_type', 'dlf'); |
| 80 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_statistics', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Statistics.xml'); |
|
| 80 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_statistics', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Statistics.xml'); |
|
| 81 | 81 | // Plugin "tableofcontents". |
| 82 | 82 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_tableofcontents'] = 'layout,select_key,pages,recursive'; |
| 83 | 83 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_tableofcontents'] = 'pi_flexform'; |
| 84 | 84 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_tableofcontents', 'dlf_tableofcontents'], 'list_type', 'dlf'); |
| 85 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_tableofcontents', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/TableOfContents.xml'); |
|
| 85 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_tableofcontents', 'FILE:EXT:'.'dlf/Configuration/Flexforms/TableOfContents.xml'); |
|
| 86 | 86 | // Plugin "toolbox". |
| 87 | 87 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_toolbox'] = 'layout,select_key,pages,recursive'; |
| 88 | 88 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_toolbox'] = 'pi_flexform'; |
| 89 | 89 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_toolbox', 'dlf_toolbox'], 'list_type', 'dlf'); |
| 90 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_toolbox', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Toolbox.xml'); |
|
| 90 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_toolbox', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Toolbox.xml'); |
|
| 91 | 91 | // Plugin "validator". |
| 92 | 92 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_validator'] = 'layout,select_key,pages,recursive'; |
| 93 | 93 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_validator'] = 'pi_flexform'; |
| 94 | 94 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_validator', 'dlf_validator'], 'list_type', 'dlf'); |
| 95 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_validator', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Validator.xml'); |
|
| 95 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_validator', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Validator.xml'); |
|
@@ -157,14 +157,14 @@ |
||
| 157 | 157 | 'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_collections.description', |
| 158 | 158 | 'config' => [ |
| 159 | 159 | 'behaviour' => [ |
| 160 | - 'allowLanguageSynchronization' => true |
|
| 160 | + 'allowLanguageSynchronization' => TRUE |
|
| 161 | 161 | ], |
| 162 | 162 | 'type' => 'text', |
| 163 | 163 | 'cols' => 30, |
| 164 | 164 | 'rows' => 10, |
| 165 | 165 | 'wrap' => 'virtual', |
| 166 | 166 | 'default' => '', |
| 167 | - 'enableRichtext' => true, |
|
| 167 | + 'enableRichtext' => TRUE, |
|
| 168 | 168 | ], |
| 169 | 169 | ], |
| 170 | 170 | 'thumbnail' => [ |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | '', |
| 19 | 19 | '', |
| 20 | 20 | [ |
| 21 | - 'routeTarget' => \Kitodo\Dlf\Module\NewTenant::class . '::main', |
|
| 21 | + 'routeTarget' => \Kitodo\Dlf\Module\NewTenant::class.'::main', |
|
| 22 | 22 | 'access' => 'admin', |
| 23 | 23 | 'name' => 'tools_dlfNewTenantModule', |
| 24 | 24 | 'icon' => 'EXT:dlf/Resources/Public/Icons/Extension.svg', |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | $tool = trim($tool); |
| 57 | 57 | $cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class); |
| 58 | 58 | $cObj->data = $data; |
| 59 | - $content .= $this->templateService->substituteMarkerArray($subpart, ['###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool . '.'])]); |
|
| 59 | + $content .= $this->templateService->substituteMarkerArray($subpart, ['###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool.'.'])]); |
|
| 60 | 60 | } |
| 61 | 61 | return $this->pi_wrapInBaseClass($this->templateService->substituteSubpart($this->template, '###TOOLS###', $content, true)); |
| 62 | 62 | } |
@@ -20,8 +20,7 @@ discard block |
||
| 20 | 20 | * @subpackage dlf |
| 21 | 21 | * @access public |
| 22 | 22 | */ |
| 23 | -class Toolbox extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 24 | -{ |
|
| 23 | +class Toolbox extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 25 | 24 | public $scriptRelPath = 'Classes/Plugin/Toolbox.php'; |
| 26 | 25 | |
| 27 | 26 | /** |
@@ -34,8 +33,7 @@ discard block |
||
| 34 | 33 | * |
| 35 | 34 | * @return string The content that is displayed on the website |
| 36 | 35 | */ |
| 37 | - public function main($content, $conf) |
|
| 38 | - { |
|
| 36 | + public function main($content, $conf) { |
|
| 39 | 37 | $this->init($conf); |
| 40 | 38 | // Quit without doing anything if required variable is not set. |
| 41 | 39 | if (empty($this->piVars['id'])) { |
@@ -58,6 +58,6 @@ |
||
| 58 | 58 | $cObj->data = $data; |
| 59 | 59 | $content .= $this->templateService->substituteMarkerArray($subpart, ['###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool . '.'])]); |
| 60 | 60 | } |
| 61 | - return $this->pi_wrapInBaseClass($this->templateService->substituteSubpart($this->template, '###TOOLS###', $content, true)); |
|
| 61 | + return $this->pi_wrapInBaseClass($this->templateService->substituteSubpart($this->template, '###TOOLS###', $content, TRUE)); |
|
| 62 | 62 | } |
| 63 | 63 | } |
@@ -28,8 +28,7 @@ discard block |
||
| 28 | 28 | * @subpackage dlf |
| 29 | 29 | * @access public |
| 30 | 30 | */ |
| 31 | -class Metadata extends \Kitodo\Dlf\Common\AbstractPlugin |
|
| 32 | -{ |
|
| 31 | +class Metadata extends \Kitodo\Dlf\Common\AbstractPlugin { |
|
| 33 | 32 | public $scriptRelPath = 'Classes/Plugin/Metadata.php'; |
| 34 | 33 | |
| 35 | 34 | /** |
@@ -50,8 +49,7 @@ discard block |
||
| 50 | 49 | * |
| 51 | 50 | * @return string The content that is displayed on the website |
| 52 | 51 | */ |
| 53 | - public function main($content, $conf) |
|
| 54 | - { |
|
| 52 | + public function main($content, $conf) { |
|
| 55 | 53 | $this->init($conf); |
| 56 | 54 | // Turn cache on. |
| 57 | 55 | $this->setCache(true); |
@@ -156,8 +154,7 @@ discard block |
||
| 156 | 154 | * |
| 157 | 155 | * @return string The metadata array ready for output |
| 158 | 156 | */ |
| 159 | - protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false) |
|
| 160 | - { |
|
| 157 | + protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false) { |
|
| 161 | 158 | // Load template file. |
| 162 | 159 | $this->getTemplate(); |
| 163 | 160 | $output = ''; |
@@ -54,10 +54,10 @@ discard block |
||
| 54 | 54 | { |
| 55 | 55 | $this->init($conf); |
| 56 | 56 | // Turn cache on. |
| 57 | - $this->setCache(true); |
|
| 57 | + $this->setCache(TRUE); |
|
| 58 | 58 | // Load current document. |
| 59 | 59 | $this->loadDocument(); |
| 60 | - if ($this->doc === null) { |
|
| 60 | + if ($this->doc === NULL) { |
|
| 61 | 61 | // Quit without doing anything if required variables are not set. |
| 62 | 62 | return $content; |
| 63 | 63 | } else { |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * |
| 157 | 157 | * @return string The metadata array ready for output |
| 158 | 158 | */ |
| 159 | - protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false) |
|
| 159 | + protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = FALSE) |
|
| 160 | 160 | { |
| 161 | 161 | // Load template file. |
| 162 | 162 | $this->getTemplate(); |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | if ($index_name == 'title') { |
| 299 | 299 | // Get title of parent document if needed. |
| 300 | 300 | if (empty($value) && $this->conf['getTitle'] && $this->doc->parentId) { |
| 301 | - $superiorTitle = Document::getTitle($this->doc->parentId, true); |
|
| 301 | + $superiorTitle = Document::getTitle($this->doc->parentId, TRUE); |
|
| 302 | 302 | if (!empty($superiorTitle)) { |
| 303 | 303 | $value = '[' . $superiorTitle . ']'; |
| 304 | 304 | } |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | // Link title to pageview. |
| 309 | 309 | if ($this->conf['linkTitle'] && $metadata['_id']) { |
| 310 | 310 | $details = $this->doc->getLogicalStructure($metadata['_id']); |
| 311 | - $value = $this->pi_linkTP($value, [$this->prefixId => ['id' => $this->doc->uid, 'page' => (!empty($details['points']) ? intval($details['points']) : 1)]], true, $this->conf['targetPid']); |
|
| 311 | + $value = $this->pi_linkTP($value, [$this->prefixId => ['id' => $this->doc->uid, 'page' => (!empty($details['points']) ? intval($details['points']) : 1)]], TRUE, $this->conf['targetPid']); |
|
| 312 | 312 | } |
| 313 | 313 | } |
| 314 | 314 | } elseif ($index_name == 'owner' && !empty($value)) { |
@@ -354,6 +354,6 @@ discard block |
||
| 354 | 354 | $output .= $this->templateService->substituteMarkerArray($subpart['block'], $markerArray); |
| 355 | 355 | } |
| 356 | 356 | } |
| 357 | - return $this->templateService->substituteSubpart($this->template, '###BLOCK###', $output, true); |
|
| 357 | + return $this->templateService->substituteSubpart($this->template, '###BLOCK###', $output, TRUE); |
|
| 358 | 358 | } |
| 359 | 359 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | array_unshift($metadata, $data); |
| 131 | 131 | } |
| 132 | 132 | if (empty($metadata)) { |
| 133 | - $this->logger->warning('No metadata found for document with UID ' . $this->doc->uid); |
|
| 133 | + $this->logger->warning('No metadata found for document with UID '.$this->doc->uid); |
|
| 134 | 134 | return $content; |
| 135 | 135 | } |
| 136 | 136 | ksort($metadata); |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | $iiifLink['value.']['wrap'] = '<dd>|</dd>'; |
| 185 | 185 | foreach ($metadataArray as $metadata) { |
| 186 | 186 | foreach ($metadata as $key => $group) { |
| 187 | - $markerArray['###METADATA###'] = '<span class="tx-dlf-metadata-group">' . $this->pi_getLL($key) . '</span>'; |
|
| 187 | + $markerArray['###METADATA###'] = '<span class="tx-dlf-metadata-group">'.$this->pi_getLL($key).'</span>'; |
|
| 188 | 188 | // Reset content object's data array. |
| 189 | 189 | $this->cObj->data = $cObjData; |
| 190 | 190 | if (!is_array($group)) { |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | if (empty($value) && $this->conf['getTitle'] && $this->doc->parentId) { |
| 303 | 303 | $superiorTitle = Document::getTitle($this->doc->parentId, true); |
| 304 | 304 | if (!empty($superiorTitle)) { |
| 305 | - $value = '[' . $superiorTitle . ']'; |
|
| 305 | + $value = '['.$superiorTitle.']'; |
|
| 306 | 306 | } |
| 307 | 307 | } |
| 308 | 308 | if (!empty($value)) { |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | /** |
| 35 | 35 | * The main method of the eID script |
| 36 | 36 | * |
| 37 | - * @param ServerRequestInterface $request |
|
| 37 | + * @param ServerRequestInterface $request |
|
| 38 | 38 | * @return ResponseInterface XML response of search suggestions |
| 39 | 39 | */ |
| 40 | 40 | public function main(ServerRequestInterface $request) |
@@ -28,16 +28,14 @@ |
||
| 28 | 28 | * @subpackage dlf |
| 29 | 29 | * @access public |
| 30 | 30 | */ |
| 31 | -class SearchSuggest |
|
| 32 | -{ |
|
| 31 | +class SearchSuggest { |
|
| 33 | 32 | /** |
| 34 | 33 | * The main method of the eID script |
| 35 | 34 | * |
| 36 | 35 | * @param ServerRequestInterface $request |
| 37 | 36 | * @return ResponseInterface XML response of search suggestions |
| 38 | 37 | */ |
| 39 | - public function main(ServerRequestInterface $request) |
|
| 40 | - { |
|
| 38 | + public function main(ServerRequestInterface $request) { |
|
| 41 | 39 | $output = []; |
| 42 | 40 | // Get input parameters and decrypt core name. |
| 43 | 41 | $parameters = $request->getParsedBody(); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | if (!empty($fetchedHeaderString)) { |
| 57 | 57 | $fetchedHeader = explode("\n", $fetchedHeaderString); |
| 58 | 58 | foreach ($fetchedHeader as $headerline) { |
| 59 | - if (stripos($headerline, 'Last-Modified:') !== false) { |
|
| 59 | + if (stripos($headerline, 'Last-Modified:') !== FALSE) { |
|
| 60 | 60 | $lastModified = trim(substr($headerline, strpos($headerline, ':') + 1)); |
| 61 | 61 | break; |
| 62 | 62 | } |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | if ($fetchedData) { |
| 71 | 71 | $response->getBody()->write($fetchedData); |
| 72 | 72 | $response = $response->withHeader('Access-Control-Allow-Methods', 'GET'); |
| 73 | - $response = $response->withHeader('Access-Control-Allow-Origin', $request->getHeaderLine('Origin') ?: '*'); |
|
| 73 | + $response = $response->withHeader('Access-Control-Allow-Origin', $request->getHeaderLine('Origin') ? : '*'); |
|
| 74 | 74 | $response = $response->withHeader('Access-Control-Max-Age', '86400'); |
| 75 | 75 | $response = $response->withHeader('Content-Type', finfo_buffer(finfo_open(FILEINFO_MIME), $fetchedData)); |
| 76 | 76 | } |
@@ -24,8 +24,7 @@ discard block |
||
| 24 | 24 | * @subpackage dlf |
| 25 | 25 | * @access public |
| 26 | 26 | */ |
| 27 | -class PageViewProxy |
|
| 28 | -{ |
|
| 27 | +class PageViewProxy { |
|
| 29 | 28 | |
| 30 | 29 | /** |
| 31 | 30 | * The main method of the eID script |
@@ -35,8 +34,7 @@ discard block |
||
| 35 | 34 | * @param ServerRequestInterface $request |
| 36 | 35 | * @return ResponseInterface |
| 37 | 36 | */ |
| 38 | - public function main(ServerRequestInterface $request) |
|
| 39 | - { |
|
| 37 | + public function main(ServerRequestInterface $request) { |
|
| 40 | 38 | // header parameter for getUrl(); allowed values 0,1,2; default 0 |
| 41 | 39 | $header = (int) $request->getQueryParams()['header']; |
| 42 | 40 | $header = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($header, 0, 2, 0); |