@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | |
| 357 | 357 | $excludeOtherWhere = ''; |
| 358 | 358 | if ($settings['excludeOther']) { |
| 359 | - $excludeOtherWhere = 'tx_dlf_documents.pid=' . intval($settings['storagePid']); |
|
| 359 | + $excludeOtherWhere = 'tx_dlf_documents.pid='.intval($settings['storagePid']); |
|
| 360 | 360 | } |
| 361 | 361 | // Check if there are any metadata to suggest. |
| 362 | 362 | $result = $queryBuilder |
@@ -408,12 +408,12 @@ discard block |
||
| 408 | 408 | $connection = GeneralUtility::makeInstance(ConnectionPool::class) |
| 409 | 409 | ->getConnectionForTable('tx_dlf_documents'); |
| 410 | 410 | |
| 411 | - $sql = 'SELECT `tx_dlf_documents`.*, GROUP_CONCAT(DISTINCT `tx_dlf_collections`.`oai_name` ORDER BY `tx_dlf_collections`.`oai_name` SEPARATOR " ") AS `collections` ' . |
|
| 412 | - 'FROM `tx_dlf_documents` ' . |
|
| 413 | - 'INNER JOIN `tx_dlf_relations` ON `tx_dlf_relations`.`uid_local` = `tx_dlf_documents`.`uid` ' . |
|
| 414 | - 'INNER JOIN `tx_dlf_collections` ON `tx_dlf_collections`.`uid` = `tx_dlf_relations`.`uid_foreign` ' . |
|
| 415 | - 'WHERE `tx_dlf_documents`.`record_id` = ? ' . |
|
| 416 | - 'AND `tx_dlf_relations`.`ident`="docs_colls" ' . |
|
| 411 | + $sql = 'SELECT `tx_dlf_documents`.*, GROUP_CONCAT(DISTINCT `tx_dlf_collections`.`oai_name` ORDER BY `tx_dlf_collections`.`oai_name` SEPARATOR " ") AS `collections` '. |
|
| 412 | + 'FROM `tx_dlf_documents` '. |
|
| 413 | + 'INNER JOIN `tx_dlf_relations` ON `tx_dlf_relations`.`uid_local` = `tx_dlf_documents`.`uid` '. |
|
| 414 | + 'INNER JOIN `tx_dlf_collections` ON `tx_dlf_collections`.`uid` = `tx_dlf_relations`.`uid_foreign` '. |
|
| 415 | + 'WHERE `tx_dlf_documents`.`record_id` = ? '. |
|
| 416 | + 'AND `tx_dlf_relations`.`ident`="docs_colls" '. |
|
| 417 | 417 | $where; |
| 418 | 418 | |
| 419 | 419 | $values = [ |
@@ -443,13 +443,13 @@ discard block |
||
| 443 | 443 | $connection = GeneralUtility::makeInstance(ConnectionPool::class) |
| 444 | 444 | ->getConnectionForTable('tx_dlf_documents'); |
| 445 | 445 | |
| 446 | - $sql = 'SELECT `tx_dlf_documents`.*, GROUP_CONCAT(DISTINCT `tx_dlf_collections`.`oai_name` ORDER BY `tx_dlf_collections`.`oai_name` SEPARATOR " ") AS `collections` ' . |
|
| 447 | - 'FROM `tx_dlf_documents` ' . |
|
| 448 | - 'INNER JOIN `tx_dlf_relations` ON `tx_dlf_relations`.`uid_local` = `tx_dlf_documents`.`uid` ' . |
|
| 449 | - 'INNER JOIN `tx_dlf_collections` ON `tx_dlf_collections`.`uid` = `tx_dlf_relations`.`uid_foreign` ' . |
|
| 450 | - 'WHERE `tx_dlf_documents`.`uid` IN ( ? ) ' . |
|
| 451 | - 'AND `tx_dlf_relations`.`ident`="docs_colls" ' . |
|
| 452 | - 'AND ' . Helper::whereExpression('tx_dlf_collections') . ' ' . |
|
| 446 | + $sql = 'SELECT `tx_dlf_documents`.*, GROUP_CONCAT(DISTINCT `tx_dlf_collections`.`oai_name` ORDER BY `tx_dlf_collections`.`oai_name` SEPARATOR " ") AS `collections` '. |
|
| 447 | + 'FROM `tx_dlf_documents` '. |
|
| 448 | + 'INNER JOIN `tx_dlf_relations` ON `tx_dlf_relations`.`uid_local` = `tx_dlf_documents`.`uid` '. |
|
| 449 | + 'INNER JOIN `tx_dlf_collections` ON `tx_dlf_collections`.`uid` = `tx_dlf_relations`.`uid_foreign` '. |
|
| 450 | + 'WHERE `tx_dlf_documents`.`uid` IN ( ? ) '. |
|
| 451 | + 'AND `tx_dlf_relations`.`ident`="docs_colls" '. |
|
| 452 | + 'AND '.Helper::whereExpression('tx_dlf_collections').' '. |
|
| 453 | 453 | 'GROUP BY `tx_dlf_documents`.`uid` '; |
| 454 | 454 | |
| 455 | 455 | $values = [ |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | { |
| 13 | 13 | parent::setUp(); |
| 14 | 14 | |
| 15 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/libraries.xml'); |
|
| 16 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/metadata.xml'); |
|
| 15 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/libraries.xml'); |
|
| 16 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/metadata.xml'); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -11,13 +11,13 @@ |
||
| 11 | 11 | { |
| 12 | 12 | parent::setUp(); |
| 13 | 13 | |
| 14 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/metadata.xml'); |
|
| 15 | - $this->importDataSet(__DIR__ . '/../../Fixtures/MetsDocument/metadata_mets.xml'); |
|
| 14 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/metadata.xml'); |
|
| 15 | + $this->importDataSet(__DIR__.'/../../Fixtures/MetsDocument/metadata_mets.xml'); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | protected function doc(string $file) |
| 19 | 19 | { |
| 20 | - $url = 'http://web:8001/Tests/Fixtures/MetsDocument/' . $file; |
|
| 20 | + $url = 'http://web:8001/Tests/Fixtures/MetsDocument/'.$file; |
|
| 21 | 21 | $doc = Doc::getInstance($url); |
| 22 | 22 | $this->assertNotNull($doc); |
| 23 | 23 | return $doc; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | foreach ($year['children'] as $month) { |
| 128 | 128 | foreach ($month['children'] as $day) { |
| 129 | 129 | foreach ($day['children'] as $issue) { |
| 130 | - $title = $issue['label'] ?: $issue['orderlabel']; |
|
| 130 | + $title = $issue['label'] ? : $issue['orderlabel']; |
|
| 131 | 131 | if (strtotime($title) !== false) { |
| 132 | 132 | $title = strftime('%x', strtotime($title)); |
| 133 | 133 | } |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | $_day = date('j', $dateTimestamp); |
| 172 | 172 | $calendarIssuesByYear[$_year][$_month][$_day][] = $issue; |
| 173 | 173 | } else { |
| 174 | - $this->logger->warning('Document with UID ' . $issue['uid'] . 'has no valid date of publication'); |
|
| 174 | + $this->logger->warning('Document with UID '.$issue['uid'].'has no valid date of publication'); |
|
| 175 | 175 | } |
| 176 | 176 | } |
| 177 | 177 | // Sort by years. |
@@ -218,8 +218,8 @@ discard block |
||
| 218 | 218 | $this->view->assign('calendarData', $calendarData); |
| 219 | 219 | $this->view->assign('documentId', $this->document->getUid()); |
| 220 | 220 | $this->view->assign('yearLinkTitle', $yearLinkTitle); |
| 221 | - $this->view->assign('parentDocumentId', $this->document->getPartof() ?: $this->document->getDoc()->tableOfContents[0]['points']); |
|
| 222 | - $this->view->assign('allYearDocTitle', $this->document->getDoc()->getTitle($this->document->getPartof()) ?: $this->document->getDoc()->tableOfContents[0]['label']); |
|
| 221 | + $this->view->assign('parentDocumentId', $this->document->getPartof() ? : $this->document->getDoc()->tableOfContents[0]['points']); |
|
| 222 | + $this->view->assign('allYearDocTitle', $this->document->getDoc()->getTitle($this->document->getPartof()) ? : $this->document->getDoc()->tableOfContents[0]['label']); |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | /** |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | |
| 256 | 256 | if (empty($yearLabel)) { |
| 257 | 257 | // if neither order nor orderlabel is set, use the id... |
| 258 | - $yearLabel = (string)$id; |
|
| 258 | + $yearLabel = (string) $id; |
|
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | $years[] = [ |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | protected function getCalendarYear(&$calendarData, $calendarIssuesByMonth, $year, $firstMonth = 1, $lastMonth = 12) |
| 305 | 305 | { |
| 306 | 306 | for ($i = $firstMonth; $i <= $lastMonth; $i++) { |
| 307 | - $key = $year . '-' . $i; |
|
| 307 | + $key = $year.'-'.$i; |
|
| 308 | 308 | |
| 309 | 309 | $calendarData[$key] = [ |
| 310 | 310 | 'DAYMON_NAME' => strftime('%a', strtotime('last Monday')), |
@@ -314,16 +314,16 @@ discard block |
||
| 314 | 314 | 'DAYFRI_NAME' => strftime('%a', strtotime('last Friday')), |
| 315 | 315 | 'DAYSAT_NAME' => strftime('%a', strtotime('last Saturday')), |
| 316 | 316 | 'DAYSUN_NAME' => strftime('%a', strtotime('last Sunday')), |
| 317 | - 'MONTHNAME' => strftime('%B', strtotime($year . '-' . $i . '-1')) . ' ' . $year, |
|
| 317 | + 'MONTHNAME' => strftime('%B', strtotime($year.'-'.$i.'-1')).' '.$year, |
|
| 318 | 318 | 'CALYEAR' => ($i == $firstMonth) ? $year : '' |
| 319 | 319 | ]; |
| 320 | 320 | |
| 321 | - $firstOfMonth = strtotime($year . '-' . $i . '-1'); |
|
| 321 | + $firstOfMonth = strtotime($year.'-'.$i.'-1'); |
|
| 322 | 322 | $lastOfMonth = strtotime('last day of', ($firstOfMonth)); |
| 323 | 323 | $firstOfMonthStart = strtotime('last Monday', $firstOfMonth); |
| 324 | 324 | // There are never more than 6 weeks in a month. |
| 325 | 325 | for ($j = 0; $j <= 5; $j++) { |
| 326 | - $firstDayOfWeek = strtotime('+ ' . $j . ' Week', $firstOfMonthStart); |
|
| 326 | + $firstDayOfWeek = strtotime('+ '.$j.' Week', $firstOfMonthStart); |
|
| 327 | 327 | |
| 328 | 328 | $calendarData[$key]['week'][$j] = [ |
| 329 | 329 | 'DAYMON' => ['dayValue' => ' '], |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | ]; |
| 337 | 337 | // Every week has seven days. ;-) |
| 338 | 338 | for ($k = 0; $k <= 6; $k++) { |
| 339 | - $currentDayTime = strtotime('+ ' . $k . ' Day', $firstDayOfWeek); |
|
| 339 | + $currentDayTime = strtotime('+ '.$k.' Day', $firstDayOfWeek); |
|
| 340 | 340 | if ( |
| 341 | 341 | $currentDayTime >= $firstOfMonth |
| 342 | 342 | && $currentDayTime <= $lastOfMonth |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | } |
| 368 | 368 | $dayLinkDiv = $dayLinksText; |
| 369 | 369 | } |
| 370 | - switch (strftime('%w', strtotime('+ ' . $k . ' Day', $firstDayOfWeek))) { |
|
| 370 | + switch (strftime('%w', strtotime('+ '.$k.' Day', $firstDayOfWeek))) { |
|
| 371 | 371 | case '0': |
| 372 | 372 | $calendarData[$key]['week'][$j]['DAYSUN']['dayValue'] = strftime('%d', $currentDayTime); |
| 373 | 373 | if ((int) $dayLinks === (int) date('j', $currentDayTime)) { |
@@ -48,8 +48,8 @@ |
||
| 48 | 48 | |
| 49 | 49 | $settingsParts = explode("/", $model); |
| 50 | 50 | $fileName = end($settingsParts); |
| 51 | - $path = substr($model, 0, strrpos($model, $fileName)); |
|
| 52 | - $modelSettings = $path . "metadata/" . $fileName . "_viewer"; |
|
| 51 | + $path = substr($model, 0, strrpos($model, $fileName)); |
|
| 52 | + $modelSettings = $path."metadata/".$fileName."_viewer"; |
|
| 53 | 53 | |
| 54 | 54 | if (!empty($modelConverted)) { |
| 55 | 55 | $model = $modelConverted; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | array_unshift($metadata, $data); |
| 113 | 113 | } |
| 114 | 114 | if (empty($metadata)) { |
| 115 | - $this->logger->warning('No metadata found for document with UID ' . $this->document->getUid()); |
|
| 115 | + $this->logger->warning('No metadata found for document with UID '.$this->document->getUid()); |
|
| 116 | 116 | return ''; |
| 117 | 117 | } |
| 118 | 118 | ksort($metadata); |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | if (empty(implode('', $metadataValue)) && $this->settings['getTitle'] && $this->document->getPartof()) { |
| 216 | 216 | $superiorTitle = Doc::getTitle($this->document->getPartof(), true); |
| 217 | 217 | if (!empty($superiorTitle)) { |
| 218 | - $metadataArray[$i][$metadataName] = ['[' . $superiorTitle . ']']; |
|
| 218 | + $metadataArray[$i][$metadataName] = ['['.$superiorTitle.']']; |
|
| 219 | 219 | } |
| 220 | 220 | } |
| 221 | 221 | if (!empty($metadataValue)) { |
@@ -52,12 +52,12 @@ |
||
| 52 | 52 | $(document).ready(function() { |
| 53 | 53 | AudioPlayer = new dlfAudioPlayer({ |
| 54 | 54 | audio: { |
| 55 | - mimeType: "' . $this->audio['mimetype'] . '", |
|
| 56 | - title: "' . $this->audio['label'] . '", |
|
| 57 | - url: "' . $this->audio['url'] . '" |
|
| 55 | + mimeType: "' . $this->audio['mimetype'].'", |
|
| 56 | + title: "' . $this->audio['label'].'", |
|
| 57 | + url: "' . $this->audio['url'].'" |
|
| 58 | 58 | }, |
| 59 | 59 | parentElId: "tx-dlf-audio", |
| 60 | - swfPath: "' . PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath('dlf')) . 'Resources/Public/JavaScript/jPlayer/jquery.jplayer.swf" |
|
| 60 | + swfPath: "' . PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath('dlf')).'Resources/Public/JavaScript/jPlayer/jquery.jplayer.swf" |
|
| 61 | 61 | }); |
| 62 | 62 | }); |
| 63 | 63 | '; |
@@ -16,67 +16,67 @@ |
||
| 16 | 16 | // Plugin "audioplayer". |
| 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 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_audioplayer', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/AudioPlayer.xml'); |
|
| 19 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_audioplayer', 'FILE:EXT:'.'dlf/Configuration/FlexForms/AudioPlayer.xml'); |
|
| 20 | 20 | // Plugin "basket". |
| 21 | 21 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_basket'] = 'layout,select_key,pages,recursive'; |
| 22 | 22 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_basket'] = 'pi_flexform'; |
| 23 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_basket', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/Basket.xml'); |
|
| 23 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_basket', 'FILE:EXT:'.'dlf/Configuration/FlexForms/Basket.xml'); |
|
| 24 | 24 | // Plugin "calendar". |
| 25 | 25 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_calendar'] = 'layout,select_key,pages,recursive'; |
| 26 | 26 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_calendar'] = 'pi_flexform'; |
| 27 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_calendar', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/Calendar.xml'); |
|
| 27 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_calendar', 'FILE:EXT:'.'dlf/Configuration/FlexForms/Calendar.xml'); |
|
| 28 | 28 | // Plugin "collection". |
| 29 | 29 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_collection'] = 'layout,select_key,pages,recursive'; |
| 30 | 30 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_collection'] = 'pi_flexform'; |
| 31 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_collection', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/Collection.xml'); |
|
| 31 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_collection', 'FILE:EXT:'.'dlf/Configuration/FlexForms/Collection.xml'); |
|
| 32 | 32 | // Plugin "feeds". |
| 33 | 33 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_feeds'] = 'layout,select_key,pages,recursive'; |
| 34 | 34 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_feeds'] = 'pi_flexform'; |
| 35 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_feeds', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/Feeds.xml'); |
|
| 35 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_feeds', 'FILE:EXT:'.'dlf/Configuration/FlexForms/Feeds.xml'); |
|
| 36 | 36 | // Plugin "listview". |
| 37 | 37 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_listview'] = 'layout,select_key,pages,recursive'; |
| 38 | 38 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_listview'] = 'pi_flexform'; |
| 39 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_listview', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/ListView.xml'); |
|
| 39 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_listview', 'FILE:EXT:'.'dlf/Configuration/FlexForms/ListView.xml'); |
|
| 40 | 40 | // Plugin "metadata". |
| 41 | 41 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_metadata'] = 'layout,select_key,pages,recursive'; |
| 42 | 42 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_metadata'] = 'pi_flexform'; |
| 43 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_metadata', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/Metadata.xml'); |
|
| 43 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_metadata', 'FILE:EXT:'.'dlf/Configuration/FlexForms/Metadata.xml'); |
|
| 44 | 44 | // Plugin "navigation". |
| 45 | 45 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_navigation'] = 'layout,select_key,pages,recursive'; |
| 46 | 46 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_navigation'] = 'pi_flexform'; |
| 47 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_navigation', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/Navigation.xml'); |
|
| 47 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_navigation', 'FILE:EXT:'.'dlf/Configuration/FlexForms/Navigation.xml'); |
|
| 48 | 48 | // Plugin "oaipmh". |
| 49 | 49 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_oaipmh'] = 'layout,select_key,pages,recursive'; |
| 50 | 50 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_oaipmh'] = 'pi_flexform'; |
| 51 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_oaipmh', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/OaiPmh.xml'); |
|
| 51 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_oaipmh', 'FILE:EXT:'.'dlf/Configuration/FlexForms/OaiPmh.xml'); |
|
| 52 | 52 | // Plugin "pagegrid". |
| 53 | 53 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_pagegrid'] = 'layout,select_key,pages,recursive'; |
| 54 | 54 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_pagegrid'] = 'pi_flexform'; |
| 55 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pagegrid', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/PageGrid.xml'); |
|
| 55 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pagegrid', 'FILE:EXT:'.'dlf/Configuration/FlexForms/PageGrid.xml'); |
|
| 56 | 56 | // Plugin "pageview". |
| 57 | 57 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_pageview'] = 'layout,select_key,pages,recursive'; |
| 58 | 58 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_pageview'] = 'pi_flexform'; |
| 59 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pageview', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/PageView.xml'); |
|
| 59 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pageview', 'FILE:EXT:'.'dlf/Configuration/FlexForms/PageView.xml'); |
|
| 60 | 60 | // Plugin "search". |
| 61 | 61 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_search'] = 'layout,select_key,pages,recursive'; |
| 62 | 62 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_search'] = 'pi_flexform'; |
| 63 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_search', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/Search.xml'); |
|
| 63 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_search', 'FILE:EXT:'.'dlf/Configuration/FlexForms/Search.xml'); |
|
| 64 | 64 | // Plugin "statistics". |
| 65 | 65 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_statistics'] = 'layout,select_key,pages,recursive'; |
| 66 | 66 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_statistics'] = 'pi_flexform'; |
| 67 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_statistics', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/Statistics.xml'); |
|
| 67 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_statistics', 'FILE:EXT:'.'dlf/Configuration/FlexForms/Statistics.xml'); |
|
| 68 | 68 | // Plugin "tableofcontents". |
| 69 | 69 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_tableofcontents'] = 'layout,select_key,pages,recursive'; |
| 70 | 70 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_tableofcontents'] = 'pi_flexform'; |
| 71 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_tableofcontents', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/TableOfContents.xml'); |
|
| 71 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_tableofcontents', 'FILE:EXT:'.'dlf/Configuration/FlexForms/TableOfContents.xml'); |
|
| 72 | 72 | // Plugin "toolbox". |
| 73 | 73 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_toolbox'] = 'layout,select_key,pages,recursive'; |
| 74 | 74 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_toolbox'] = 'pi_flexform'; |
| 75 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_toolbox', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/Toolbox.xml'); |
|
| 75 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_toolbox', 'FILE:EXT:'.'dlf/Configuration/FlexForms/Toolbox.xml'); |
|
| 76 | 76 | // Plugin "view3d". |
| 77 | 77 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_view3d'] = 'layout,select_key,pages,recursive'; |
| 78 | 78 | $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_view3d'] = 'pi_flexform'; |
| 79 | -\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_view3d', 'FILE:EXT:' . 'dlf/Configuration/FlexForms/View3D.xml'); |
|
| 79 | +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_view3d', 'FILE:EXT:'.'dlf/Configuration/FlexForms/View3D.xml'); |
|
| 80 | 80 | |
| 81 | 81 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( |
| 82 | 82 | 'Kitodo.Dlf', |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | } |
| 125 | 125 | // Append "valueURI" to name using Unicode unit separator. |
| 126 | 126 | if (isset($authors[$i]['valueURI'])) { |
| 127 | - $this->metadata['author'][$i] .= chr(31) . (string) $authors[$i]['valueURI']; |
|
| 127 | + $this->metadata['author'][$i] .= chr(31).(string) $authors[$i]['valueURI']; |
|
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | } |