@@ -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' => [ |
@@ -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'); |
|
@@ -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 | } |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | ->select(...explode(',', $fields)) |
| 116 | 116 | ->from($table) |
| 117 | 117 | ->where( |
| 118 | - $queryBuilder->expr()->eq($table . '.pid', intval($page['uid'])), |
|
| 118 | + $queryBuilder->expr()->eq($table.'.pid', intval($page['uid'])), |
|
| 119 | 119 | $andWhere |
| 120 | 120 | ) |
| 121 | 121 | ->orderBy($sorting) |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | } |
| 58 | 58 | $dmdIds = explode(' ', $id); |
| 59 | 59 | foreach ($dmdIds as $dmdId) { |
| 60 | - $recordIds = $xml->xpath('//mets:dmdSec[@ID="' . $dmdId . '"]//mods:mods/mods:recordInfo/mods:recordIdentifier'); |
|
| 60 | + $recordIds = $xml->xpath('//mets:dmdSec[@ID="'.$dmdId.'"]//mods:mods/mods:recordInfo/mods:recordIdentifier'); |
|
| 61 | 61 | if (!empty($recordIds)) { |
| 62 | 62 | $record_id = (string) $recordIds[0]; |
| 63 | 63 | break; |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | protected function cmdAddMetadata() |
| 46 | 46 | { |
| 47 | 47 | // Include metadata definition file. |
| 48 | - $metadataDefaults = include (ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/MetadataDefaults.php'); |
|
| 48 | + $metadataDefaults = include (ExtensionManagementUtility::extPath($this->extKey).'Resources/Private/Data/MetadataDefaults.php'); |
|
| 49 | 49 | $i = 0; |
| 50 | 50 | // Build data array. |
| 51 | 51 | foreach ($metadataDefaults as $index_name => $values) { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | $data['tx_dlf_metadata'][uniqid('NEW')] = [ |
| 60 | 60 | 'pid' => intval($this->id), |
| 61 | - 'label' => $GLOBALS['LANG']->getLL('metadata.' . $index_name), |
|
| 61 | + 'label' => $GLOBALS['LANG']->getLL('metadata.'.$index_name), |
|
| 62 | 62 | 'index_name' => $index_name, |
| 63 | 63 | 'format' => implode(',', $formatIds), |
| 64 | 64 | 'default_value' => $values['default_value'], |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | // Build data array. |
| 106 | 106 | $data['tx_dlf_solrcores'][uniqid('NEW')] = [ |
| 107 | 107 | 'pid' => intval($this->id), |
| 108 | - 'label' => $GLOBALS['LANG']->getLL('solrcore') . ' (PID ' . $this->id . ')', |
|
| 108 | + 'label' => $GLOBALS['LANG']->getLL('solrcore').' (PID '.$this->id.')', |
|
| 109 | 109 | 'index_name' => '', |
| 110 | 110 | ]; |
| 111 | 111 | $_ids = Helper::processDBasAdmin($data); |
@@ -137,13 +137,13 @@ discard block |
||
| 137 | 137 | protected function cmdAddStructure() |
| 138 | 138 | { |
| 139 | 139 | // Include structure definition file. |
| 140 | - $structureDefaults = include (ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/StructureDefaults.php'); |
|
| 140 | + $structureDefaults = include (ExtensionManagementUtility::extPath($this->extKey).'Resources/Private/Data/StructureDefaults.php'); |
|
| 141 | 141 | // Build data array. |
| 142 | 142 | foreach ($structureDefaults as $index_name => $values) { |
| 143 | 143 | $data['tx_dlf_structures'][uniqid('NEW')] = [ |
| 144 | 144 | 'pid' => intval($this->id), |
| 145 | 145 | 'toplevel' => $values['toplevel'], |
| 146 | - 'label' => $GLOBALS['LANG']->getLL('structure.' . $index_name), |
|
| 146 | + 'label' => $GLOBALS['LANG']->getLL('structure.'.$index_name), |
|
| 147 | 147 | 'index_name' => $index_name, |
| 148 | 148 | 'oai_name' => $values['oai_name'], |
| 149 | 149 | 'thumbnail' => 0, |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | // Should we do something? |
| 208 | 208 | if (!empty($this->CMD)) { |
| 209 | 209 | // Sanitize input... |
| 210 | - $_method = 'cmd' . ucfirst($this->CMD); |
|
| 210 | + $_method = 'cmd'.ucfirst($this->CMD); |
|
| 211 | 211 | // ...and unset to prevent infinite looping. |
| 212 | 212 | unset($this->CMD); |
| 213 | 213 | if (method_exists($this, $_method)) { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $startingPoint = MathUtility::forceIntegerInRange((int) $input->getOption('pid'), 0); |
| 94 | 94 | } |
| 95 | 95 | if ($startingPoint == 0) { |
| 96 | - $io->error('ERROR: No valid PID (' . $startingPoint . ') given.'); |
|
| 96 | + $io->error('ERROR: No valid PID ('.$startingPoint.') given.'); |
|
| 97 | 97 | exit(1); |
| 98 | 98 | } |
| 99 | 99 | |
@@ -111,13 +111,13 @@ discard block |
||
| 111 | 111 | if (empty($solrCoreUid) || !in_array($solrCoreUid, $allSolrCores)) { |
| 112 | 112 | $output_solrCores = []; |
| 113 | 113 | foreach ($allSolrCores as $index_name => $uid) { |
| 114 | - $output_solrCores[] = $uid . ' : ' . $index_name; |
|
| 114 | + $output_solrCores[] = $uid.' : '.$index_name; |
|
| 115 | 115 | } |
| 116 | 116 | if (empty($output_solrCores)) { |
| 117 | - $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. No valid cores found on PID ' . $startingPoint . ".\n"); |
|
| 117 | + $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. No valid cores found on PID '.$startingPoint.".\n"); |
|
| 118 | 118 | exit(1); |
| 119 | 119 | } else { |
| 120 | - $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. ' . "Valid cores are (<uid>:<index_name>):\n" . implode("\n", $output_solrCores) . "\n"); |
|
| 120 | + $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. '."Valid cores are (<uid>:<index_name>):\n".implode("\n", $output_solrCores)."\n"); |
|
| 121 | 121 | exit(1); |
| 122 | 122 | } |
| 123 | 123 | } |
@@ -142,19 +142,19 @@ discard block |
||
| 142 | 142 | $doc = Document::getInstance($input->getOption('doc'), $startingPoint, true); |
| 143 | 143 | if ($doc->ready) { |
| 144 | 144 | if ($dryRun) { |
| 145 | - $io->section('DRY RUN: Would index ' . $doc->uid . ' ("' . $doc->location . '") on UID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.'); |
|
| 145 | + $io->section('DRY RUN: Would index '.$doc->uid.' ("'.$doc->location.'") on UID '.$startingPoint.' and Solr core '.$solrCoreUid.'.'); |
|
| 146 | 146 | } else { |
| 147 | 147 | if ($io->isVerbose()) { |
| 148 | - $io->section('Indexing ' . $doc->uid . ' ("' . $doc->location . '") on UID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.'); |
|
| 148 | + $io->section('Indexing '.$doc->uid.' ("'.$doc->location.'") on UID '.$startingPoint.' and Solr core '.$solrCoreUid.'.'); |
|
| 149 | 149 | } |
| 150 | 150 | // ...and save it to the database... |
| 151 | 151 | if (!$doc->save($startingPoint, $solrCoreUid)) { |
| 152 | - $io->error('ERROR: Document "' . $input->getOption('doc') . '" not saved and indexed.'); |
|
| 152 | + $io->error('ERROR: Document "'.$input->getOption('doc').'" not saved and indexed.'); |
|
| 153 | 153 | exit(1); |
| 154 | 154 | } |
| 155 | 155 | } |
| 156 | 156 | } else { |
| 157 | - $io->error('ERROR: Document "' . $input->getOption('doc') . '" could not be loaded.'); |
|
| 157 | + $io->error('ERROR: Document "'.$input->getOption('doc').'" could not be loaded.'); |
|
| 158 | 158 | exit(1); |
| 159 | 159 | } |
| 160 | 160 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $startingPoint = MathUtility::forceIntegerInRange((int) $input->getOption('pid'), 0); |
| 100 | 100 | } |
| 101 | 101 | if ($startingPoint == 0) { |
| 102 | - $io->error('ERROR: No valid PID (' . $startingPoint . ') given.'); |
|
| 102 | + $io->error('ERROR: No valid PID ('.$startingPoint.') given.'); |
|
| 103 | 103 | exit(1); |
| 104 | 104 | } |
| 105 | 105 | |
@@ -117,13 +117,13 @@ discard block |
||
| 117 | 117 | if (empty($solrCoreUid) || !in_array($solrCoreUid, $allSolrCores)) { |
| 118 | 118 | $output_solrCores = []; |
| 119 | 119 | foreach ($allSolrCores as $index_name => $uid) { |
| 120 | - $output_solrCores[] = $uid . ' : ' . $index_name; |
|
| 120 | + $output_solrCores[] = $uid.' : '.$index_name; |
|
| 121 | 121 | } |
| 122 | 122 | if (empty($output_solrCores)) { |
| 123 | - $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. No valid cores found on PID ' . $startingPoint . ".\n"); |
|
| 123 | + $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. No valid cores found on PID '.$startingPoint.".\n"); |
|
| 124 | 124 | exit(1); |
| 125 | 125 | } else { |
| 126 | - $io->error('ERROR: No valid Solr core ("' . $input->getOption('solr') . '") given. ' . "Valid cores are (<uid>:<index_name>):\n" . implode("\n", $output_solrCores) . "\n"); |
|
| 126 | + $io->error('ERROR: No valid Solr core ("'.$input->getOption('solr').'") given. '."Valid cores are (<uid>:<index_name>):\n".implode("\n", $output_solrCores)."\n"); |
|
| 127 | 127 | exit(1); |
| 128 | 128 | } |
| 129 | 129 | } |
@@ -154,18 +154,18 @@ discard block |
||
| 154 | 154 | $doc = Document::getInstance($document, $startingPoint, true); |
| 155 | 155 | if ($doc->ready) { |
| 156 | 156 | if ($dryRun) { |
| 157 | - $io->writeln('DRY RUN: Would index ' . $id . '/' . count($documents) . ' ' . $doc->uid . ' ("' . $doc->location . '") on UID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.'); |
|
| 157 | + $io->writeln('DRY RUN: Would index '.$id.'/'.count($documents).' '.$doc->uid.' ("'.$doc->location.'") on UID '.$startingPoint.' and Solr core '.$solrCoreUid.'.'); |
|
| 158 | 158 | } else { |
| 159 | 159 | if ($io->isVerbose()) { |
| 160 | - $io->writeln(date('Y-m-d H:i:s') . ' Indexing ' . $id . '/' . count($documents) . ' ' . $doc->uid . ' ("' . $doc->location . '") on UID ' . $startingPoint . ' and Solr core ' . $solrCoreUid . '.'); |
|
| 160 | + $io->writeln(date('Y-m-d H:i:s').' Indexing '.$id.'/'.count($documents).' '.$doc->uid.' ("'.$doc->location.'") on UID '.$startingPoint.' and Solr core '.$solrCoreUid.'.'); |
|
| 161 | 161 | } |
| 162 | 162 | // ...and save it to the database... |
| 163 | 163 | if (!$doc->save($startingPoint, $solrCoreUid)) { |
| 164 | - $io->error('ERROR: Document "' . $id . '" not saved and indexed.'); |
|
| 164 | + $io->error('ERROR: Document "'.$id.'" not saved and indexed.'); |
|
| 165 | 165 | } |
| 166 | 166 | } |
| 167 | 167 | } else { |
| 168 | - $io->error('ERROR: Document "' . $id . '" could not be loaded.'); |
|
| 168 | + $io->error('ERROR: Document "'.$id.'" could not be loaded.'); |
|
| 169 | 169 | } |
| 170 | 170 | // Clear document registry to prevent memory exhaustion. |
| 171 | 171 | Document::clearRegistry(); |