@@ -24,8 +24,7 @@ discard block |
||
| 24 | 24 | * @subpackage dlf |
| 25 | 25 | * @access public |
| 26 | 26 | */ |
| 27 | -class TableOfContentsController extends AbstractController |
|
| 28 | -{ |
|
| 27 | +class TableOfContentsController extends AbstractController { |
|
| 29 | 28 | /** |
| 30 | 29 | * This holds the active entries according to the currently selected page |
| 31 | 30 | * |
@@ -45,8 +44,7 @@ discard block |
||
| 45 | 44 | * |
| 46 | 45 | * @return void |
| 47 | 46 | */ |
| 48 | - public function filterAction() |
|
| 49 | - { |
|
| 47 | + public function filterAction() { |
|
| 50 | 48 | // if filter was triggered, get filter parameters from POST variables |
| 51 | 49 | $this->filterParams = $this->getParametersSafely('filterParameter'); |
| 52 | 50 | |
@@ -59,8 +57,7 @@ discard block |
||
| 59 | 57 | * |
| 60 | 58 | * @return void |
| 61 | 59 | */ |
| 62 | - public function mainAction() |
|
| 63 | - { |
|
| 60 | + public function mainAction() { |
|
| 64 | 61 | // Load current document. |
| 65 | 62 | $this->loadDocument($this->requestData); |
| 66 | 63 | if ( |
@@ -91,8 +88,7 @@ discard block |
||
| 91 | 88 | * @access protected |
| 92 | 89 | * @return array HMENU array |
| 93 | 90 | */ |
| 94 | - protected function makeMenuArray() |
|
| 95 | - { |
|
| 91 | + protected function makeMenuArray() { |
|
| 96 | 92 | // Set default values for page if not set. |
| 97 | 93 | // $this->requestData['page'] may be integer or string (physical structure @ID) |
| 98 | 94 | if ( |
@@ -168,8 +164,7 @@ discard block |
||
| 168 | 164 | * |
| 169 | 165 | * @return array HMENU array |
| 170 | 166 | */ |
| 171 | - protected function makeMenuFor3DObjects() |
|
| 172 | - { |
|
| 167 | + protected function makeMenuFor3DObjects() { |
|
| 173 | 168 | $menuArray = []; |
| 174 | 169 | |
| 175 | 170 | // Go through table of contents and create all menu entries. |
@@ -192,8 +187,7 @@ discard block |
||
| 192 | 187 | * |
| 193 | 188 | * @return array HMENU array for menu entry |
| 194 | 189 | */ |
| 195 | - protected function getMenuEntry(array $entry, $recursive = false) |
|
| 196 | - { |
|
| 190 | + protected function getMenuEntry(array $entry, $recursive = false) { |
|
| 197 | 191 | $entry = $this->resolveMenuEntry($entry); |
| 198 | 192 | |
| 199 | 193 | $entryArray = []; |
@@ -287,8 +281,7 @@ discard block |
||
| 287 | 281 | * @param array $entry |
| 288 | 282 | * @return array |
| 289 | 283 | */ |
| 290 | - protected function resolveMenuEntry($entry) |
|
| 291 | - { |
|
| 284 | + protected function resolveMenuEntry($entry) { |
|
| 292 | 285 | // If the menu entry points to the parent document, |
| 293 | 286 | // resolve to the parent UID set on indexation. |
| 294 | 287 | $doc = $this->document->getDoc(); |
@@ -304,8 +297,7 @@ discard block |
||
| 304 | 297 | return $entry; |
| 305 | 298 | } |
| 306 | 299 | |
| 307 | - protected function getMenuEntryWithImage(array $entry, $recursive = false) |
|
| 308 | - { |
|
| 300 | + protected function getMenuEntryWithImage(array $entry, $recursive = false) { |
|
| 309 | 301 | $entryArray = []; |
| 310 | 302 | |
| 311 | 303 | // don't filter if the entry type is collection or search params are empty |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $this->filterParams = $this->getParametersSafely('filterParameter'); |
| 52 | 52 | |
| 53 | 53 | // output is done by main action |
| 54 | - $this->forward('main', null, null, ['filterParameter' => $this->filterParams]); |
|
| 54 | + $this->forward('main', NULL, NULL, ['filterParameter' => $this->filterParams]); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | // Load current document. |
| 65 | 65 | $this->loadDocument($this->requestData); |
| 66 | 66 | if ( |
| 67 | - $this->document === null |
|
| 68 | - || $this->document->getDoc() === null |
|
| 67 | + $this->document === NULL |
|
| 68 | + || $this->document->getDoc() === NULL |
|
| 69 | 69 | ) { |
| 70 | 70 | // Quit without doing anything if required variables are not set. |
| 71 | 71 | return; |
@@ -127,12 +127,12 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | // Go through table of contents and create all menu entries. |
| 129 | 129 | foreach ($this->document->getDoc()->tableOfContents as $entry) { |
| 130 | - $menuArray[] = $this->getMenuEntry($entry, true); |
|
| 130 | + $menuArray[] = $this->getMenuEntry($entry, TRUE); |
|
| 131 | 131 | } |
| 132 | 132 | } else { |
| 133 | 133 | // Go through table of contents and create top-level menu entries. |
| 134 | 134 | foreach ($this->document->getDoc()->tableOfContents as $entry) { |
| 135 | - $menuArray[] = $this->getMenuEntry($entry, false); |
|
| 135 | + $menuArray[] = $this->getMenuEntry($entry, FALSE); |
|
| 136 | 136 | } |
| 137 | 137 | // Build table of contents from database. |
| 138 | 138 | $result = $this->documentRepository->getTableOfContentsFromDb($this->document->getUid(), $this->document->getPid(), $this->settings); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | 'pagination' => '', |
| 152 | 152 | 'targetUid' => $resArray['uid'] |
| 153 | 153 | ]; |
| 154 | - $menuArray[0]['_SUB_MENU'][] = $this->getMenuEntry($entry, false); |
|
| 154 | + $menuArray[0]['_SUB_MENU'][] = $this->getMenuEntry($entry, FALSE); |
|
| 155 | 155 | } |
| 156 | 156 | } |
| 157 | 157 | } |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | // Go through table of contents and create all menu entries. |
| 176 | 176 | foreach ($this->document->getDoc()->tableOfContents as $entry) { |
| 177 | - $menuEntry = $this->getMenuEntryWithImage($entry, true); |
|
| 177 | + $menuEntry = $this->getMenuEntryWithImage($entry, TRUE); |
|
| 178 | 178 | if (!empty($menuEntry)) { |
| 179 | 179 | $menuArray[] = $menuEntry; |
| 180 | 180 | } |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | * |
| 193 | 193 | * @return array HMENU array for menu entry |
| 194 | 194 | */ |
| 195 | - protected function getMenuEntry(array $entry, $recursive = false) |
|
| 195 | + protected function getMenuEntry(array $entry, $recursive = FALSE) |
|
| 196 | 196 | { |
| 197 | 197 | $entry = $this->resolveMenuEntry($entry); |
| 198 | 198 | |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | } |
| 251 | 251 | // Build sub-menu if available and called recursively. |
| 252 | 252 | if ( |
| 253 | - $recursive === true |
|
| 253 | + $recursive === TRUE |
|
| 254 | 254 | && !empty($entry['children']) |
| 255 | 255 | ) { |
| 256 | 256 | // Build sub-menu only if one of the following conditions apply: |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | if (in_array($child['id'], $this->activeEntries)) { |
| 269 | 269 | $entryArray['ITEM_STATE'] = 'ACT'; |
| 270 | 270 | } |
| 271 | - $entryArray['_SUB_MENU'][] = $this->getMenuEntry($child, true); |
|
| 271 | + $entryArray['_SUB_MENU'][] = $this->getMenuEntry($child, TRUE); |
|
| 272 | 272 | } |
| 273 | 273 | } |
| 274 | 274 | // Append "IFSUB" to "ITEM_STATE" if this entry has sub-entries. |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | return $entry; |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | - protected function getMenuEntryWithImage(array $entry, $recursive = false) |
|
| 307 | + protected function getMenuEntryWithImage(array $entry, $recursive = FALSE) |
|
| 308 | 308 | { |
| 309 | 309 | $entryArray = []; |
| 310 | 310 | |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | $entryArray['doNotLinkIt'] = 1; |
| 326 | 326 | $entryArray['ITEM_STATE'] = 'HEADER'; |
| 327 | 327 | |
| 328 | - if ($entry['children'] === null) { |
|
| 328 | + if ($entry['children'] === NULL) { |
|
| 329 | 329 | $entryArray['description'] = $entry['description']; |
| 330 | 330 | $id = $this->document->getDoc()->smLinks['l2p'][$entry['id']][0]; |
| 331 | 331 | $entryArray['image'] = $this->document->getDoc()->getFileLocation($this->document->getDoc()->physicalStructureInfo[$id]['files']['THUMBS']); |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | |
| 339 | 339 | // Build sub-menu if available and called recursively. |
| 340 | 340 | if ( |
| 341 | - $recursive == true |
|
| 341 | + $recursive == TRUE |
|
| 342 | 342 | && !empty($entry['children']) |
| 343 | 343 | ) { |
| 344 | 344 | // Build sub-menu only if one of the following conditions apply: |
@@ -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)) { |
@@ -80,8 +80,8 @@ discard block |
||
| 80 | 80 | // Load current document. |
| 81 | 81 | $this->loadDocument($this->requestData); |
| 82 | 82 | if ( |
| 83 | - $this->document === null |
|
| 84 | - || $this->document->getDoc() === null |
|
| 83 | + $this->document === NULL |
|
| 84 | + || $this->document->getDoc() === NULL |
|
| 85 | 85 | ) { |
| 86 | 86 | // Quit without doing anything if required variables are not set. |
| 87 | 87 | return ''; |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | * |
| 131 | 131 | * @return string The metadata array ready for output |
| 132 | 132 | */ |
| 133 | - protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false) |
|
| 133 | + protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = FALSE) |
|
| 134 | 134 | { |
| 135 | 135 | if ($useOriginalIiifManifestMetadata) { |
| 136 | 136 | $iiifData = []; |
@@ -148,14 +148,14 @@ discard block |
||
| 148 | 148 | $iiifData[$key] = [ |
| 149 | 149 | 'label' => $key, |
| 150 | 150 | 'value' => $group, |
| 151 | - 'buildUrl' => true, |
|
| 151 | + 'buildUrl' => TRUE, |
|
| 152 | 152 | ]; |
| 153 | 153 | } else { |
| 154 | 154 | // Data output |
| 155 | 155 | $iiifData[$key] = [ |
| 156 | 156 | 'label' => $key, |
| 157 | 157 | 'value' => $group, |
| 158 | - 'buildUrl' => false, |
|
| 158 | + 'buildUrl' => FALSE, |
|
| 159 | 159 | ]; |
| 160 | 160 | } |
| 161 | 161 | } else { |
@@ -172,18 +172,18 @@ discard block |
||
| 172 | 172 | $iiifData[$key]['data'][] = [ |
| 173 | 173 | 'label' => $nolabel ? '' : $label, |
| 174 | 174 | 'value' => $value, |
| 175 | - 'buildUrl' => true, |
|
| 175 | + 'buildUrl' => TRUE, |
|
| 176 | 176 | ]; |
| 177 | 177 | } else { |
| 178 | 178 | $iiifData[$key]['data'][] = [ |
| 179 | 179 | 'label' => $label, |
| 180 | 180 | 'value' => $value, |
| 181 | - 'buildUrl' => false, |
|
| 181 | + 'buildUrl' => FALSE, |
|
| 182 | 182 | ]; |
| 183 | 183 | } |
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | - $this->view->assign('useIiif', true); |
|
| 186 | + $this->view->assign('useIiif', TRUE); |
|
| 187 | 187 | $this->view->assign('iiifData', $iiifData); |
| 188 | 188 | } |
| 189 | 189 | } |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | if ($metadataName == 'title') { |
| 214 | 214 | // Get title of parent document if needed. |
| 215 | 215 | if (empty(implode('', $metadataValue)) && $this->settings['getTitle'] && $this->document->getPartof()) { |
| 216 | - $superiorTitle = Doc::getTitle($this->document->getPartof(), true); |
|
| 216 | + $superiorTitle = Doc::getTitle($this->document->getPartof(), TRUE); |
|
| 217 | 217 | if (!empty($superiorTitle)) { |
| 218 | 218 | $metadataArray[$i][$metadataName] = ['[' . $superiorTitle . ']']; |
| 219 | 219 | } |
@@ -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 | '; |
@@ -31,8 +31,7 @@ discard block |
||
| 31 | 31 | * @subpackage dlf |
| 32 | 32 | * @access public |
| 33 | 33 | */ |
| 34 | -class BasketController extends AbstractController |
|
| 35 | -{ |
|
| 34 | +class BasketController extends AbstractController { |
|
| 36 | 35 | /** |
| 37 | 36 | * @var BasketRepository |
| 38 | 37 | */ |
@@ -41,8 +40,7 @@ discard block |
||
| 41 | 40 | /** |
| 42 | 41 | * @param BasketRepository $basketRepository |
| 43 | 42 | */ |
| 44 | - public function injectBasketRepository(BasketRepository $basketRepository) |
|
| 45 | - { |
|
| 43 | + public function injectBasketRepository(BasketRepository $basketRepository) { |
|
| 46 | 44 | $this->basketRepository = $basketRepository; |
| 47 | 45 | } |
| 48 | 46 | |
@@ -54,8 +52,7 @@ discard block |
||
| 54 | 52 | /** |
| 55 | 53 | * @param MailRepository $mailRepository |
| 56 | 54 | */ |
| 57 | - public function injectMailRepository(MailRepository $mailRepository) |
|
| 58 | - { |
|
| 55 | + public function injectMailRepository(MailRepository $mailRepository) { |
|
| 59 | 56 | $this->mailRepository = $mailRepository; |
| 60 | 57 | } |
| 61 | 58 | |
@@ -67,8 +64,7 @@ discard block |
||
| 67 | 64 | /** |
| 68 | 65 | * @param PrinterRepository $printerRepository |
| 69 | 66 | */ |
| 70 | - public function injectPrinterRepository(PrinterRepository $printerRepository) |
|
| 71 | - { |
|
| 67 | + public function injectPrinterRepository(PrinterRepository $printerRepository) { |
|
| 72 | 68 | $this->printerRepository = $printerRepository; |
| 73 | 69 | } |
| 74 | 70 | |
@@ -80,8 +76,7 @@ discard block |
||
| 80 | 76 | /** |
| 81 | 77 | * @param ActionLogRepository $actionLogRepository |
| 82 | 78 | */ |
| 83 | - public function injectActionLogRepository(ActionLogRepository $actionLogRepository) |
|
| 84 | - { |
|
| 79 | + public function injectActionLogRepository(ActionLogRepository $actionLogRepository) { |
|
| 85 | 80 | $this->actionLogRepository = $actionLogRepository; |
| 86 | 81 | } |
| 87 | 82 | |
@@ -90,8 +85,7 @@ discard block |
||
| 90 | 85 | * |
| 91 | 86 | * @return void |
| 92 | 87 | */ |
| 93 | - public function basketAction() |
|
| 94 | - { |
|
| 88 | + public function basketAction() { |
|
| 95 | 89 | $basket = $this->getBasketData(); |
| 96 | 90 | |
| 97 | 91 | // action remove from basket |
@@ -137,8 +131,7 @@ discard block |
||
| 137 | 131 | * |
| 138 | 132 | * @return void |
| 139 | 133 | */ |
| 140 | - public function addAction() |
|
| 141 | - { |
|
| 134 | + public function addAction() { |
|
| 142 | 135 | $basket = $this->getBasketData(); |
| 143 | 136 | |
| 144 | 137 | if ( |
@@ -156,8 +149,7 @@ discard block |
||
| 156 | 149 | * |
| 157 | 150 | * @return void |
| 158 | 151 | */ |
| 159 | - public function mainAction() |
|
| 160 | - { |
|
| 152 | + public function mainAction() { |
|
| 161 | 153 | $basket = $this->getBasketData(); |
| 162 | 154 | |
| 163 | 155 | $countDocs = 0; |
@@ -203,8 +195,7 @@ discard block |
||
| 203 | 195 | * |
| 204 | 196 | * @return Basket The found data from user session. |
| 205 | 197 | */ |
| 206 | - protected function getBasketData() |
|
| 207 | - { |
|
| 198 | + protected function getBasketData() { |
|
| 208 | 199 | // get user session |
| 209 | 200 | $sessionId = $GLOBALS['TSFE']->fe_user->id; |
| 210 | 201 | |
@@ -238,8 +229,7 @@ discard block |
||
| 238 | 229 | * |
| 239 | 230 | * @return string One basket entry |
| 240 | 231 | */ |
| 241 | - protected function getEntry($data) |
|
| 242 | - { |
|
| 232 | + protected function getEntry($data) { |
|
| 243 | 233 | if (is_object($data)) { |
| 244 | 234 | $data = get_object_vars($data); |
| 245 | 235 | } |
@@ -291,8 +281,7 @@ discard block |
||
| 291 | 281 | * |
| 292 | 282 | * @return mixed download url or false |
| 293 | 283 | */ |
| 294 | - protected function getDocumentData($id, $data) |
|
| 295 | - { |
|
| 284 | + protected function getDocumentData($id, $data) { |
|
| 296 | 285 | // get document instance to load further information |
| 297 | 286 | $this->loadDocument(['id' => $id]); |
| 298 | 287 | if ($this->document) { |
@@ -360,8 +349,7 @@ discard block |
||
| 360 | 349 | * |
| 361 | 350 | * @return array Basket data and JavaScript output |
| 362 | 351 | */ |
| 363 | - protected function addToBasket($_piVars, $basket) |
|
| 364 | - { |
|
| 352 | + protected function addToBasket($_piVars, $basket) { |
|
| 365 | 353 | $output = ''; |
| 366 | 354 | |
| 367 | 355 | if (!$_piVars['startpage']) { |
@@ -468,8 +456,7 @@ discard block |
||
| 468 | 456 | * |
| 469 | 457 | * @return Basket basket |
| 470 | 458 | */ |
| 471 | - protected function removeFromBasket($_piVars, $basket) |
|
| 472 | - { |
|
| 459 | + protected function removeFromBasket($_piVars, $basket) { |
|
| 473 | 460 | if (!empty($basket->getDocIds())) { |
| 474 | 461 | $items = json_decode($basket->getDocIds()); |
| 475 | 462 | $items = get_object_vars($items); |
@@ -507,8 +494,7 @@ discard block |
||
| 507 | 494 | * |
| 508 | 495 | * @return void |
| 509 | 496 | */ |
| 510 | - protected function sendMail() |
|
| 511 | - { |
|
| 497 | + protected function sendMail() { |
|
| 512 | 498 | // send mail |
| 513 | 499 | $mailId = $this->requestData['mail_action']; |
| 514 | 500 | |
@@ -585,8 +571,7 @@ discard block |
||
| 585 | 571 | * |
| 586 | 572 | * @return void |
| 587 | 573 | */ |
| 588 | - protected function printDocument($basket) |
|
| 589 | - { |
|
| 574 | + protected function printDocument($basket) { |
|
| 590 | 575 | $pdfUrl = $this->settings['pdfprint']; |
| 591 | 576 | $numberOfPages = 0; |
| 592 | 577 | foreach ($this->requestData['selected'] as $docId => $docValue) { |
@@ -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', |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | } |
| 118 | 118 | // Append "valueURI" to name using Unicode unit separator. |
| 119 | 119 | if (isset($authors[$i]['valueURI'])) { |
| 120 | - $this->metadata['author'][$i] .= chr(31) . (string) $authors[$i]['valueURI']; |
|
| 120 | + $this->metadata['author'][$i] .= chr(31).(string) $authors[$i]['valueURI']; |
|
| 121 | 121 | } |
| 122 | 122 | } |
| 123 | 123 | } |
@@ -46,8 +46,7 @@ |
||
| 46 | 46 | * |
| 47 | 47 | * @return void |
| 48 | 48 | */ |
| 49 | - public function extractMetadata(\SimpleXMLElement $xml, array &$metadata) |
|
| 50 | - { |
|
| 49 | + public function extractMetadata(\SimpleXMLElement $xml, array &$metadata) { |
|
| 51 | 50 | $this->xml = $xml; |
| 52 | 51 | $this->metadata = $metadata; |
| 53 | 52 | |