@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $additionalGetVars = '&tx_dlf[id]=' . urlencode($previewMets) . '&no_cache=1'; |
| 63 | 63 | $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = null); |
| 64 | 64 | $icon = '<a href="#" data-toggle="tooltip" class="' . $class . '" onclick="' . htmlspecialchars(\TYPO3\CMS\Backend\Utility\BackendUtility::viewOnClick($pageUid, $this->backPath, '', '', '', $additionalGetVars)) . '" title="' . $title . '">' . |
| 65 | - $insideText . '</a>'; |
|
| 65 | + $insideText . '</a>'; |
|
| 66 | 66 | |
| 67 | 67 | return $icon; |
| 68 | 68 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class) |
| 58 | 58 | { |
| 59 | 59 | |
| 60 | - $previewMets = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action']; |
|
| 60 | + $previewMets = BackendUtility::getViewDomain($pageUid) . '/index.php?id=' . $apiPid . '&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action']; |
|
| 61 | 61 | |
| 62 | 62 | $additionalGetVars = '&tx_dlf[id]=' . urlencode($previewMets) . '&no_cache=1'; |
| 63 | 63 | $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = null); |
@@ -19,8 +19,7 @@ discard block |
||
| 19 | 19 | use TYPO3\CMS\Backend\Utility\BackendUtility; |
| 20 | 20 | use TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper; |
| 21 | 21 | |
| 22 | -class PreviewViewHelper extends AbstractBackendViewHelper |
|
| 23 | -{ |
|
| 22 | +class PreviewViewHelper extends AbstractBackendViewHelper { |
|
| 24 | 23 | |
| 25 | 24 | /** |
| 26 | 25 | * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface |
@@ -31,8 +30,7 @@ discard block |
||
| 31 | 30 | * @param \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager |
| 32 | 31 | * @return void |
| 33 | 32 | */ |
| 34 | - public function injectConfigurationManager(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager) |
|
| 35 | - { |
|
| 33 | + public function injectConfigurationManager(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager) { |
|
| 36 | 34 | $this->configurationManager = $configurationManager; |
| 37 | 35 | } |
| 38 | 36 | |
@@ -54,8 +52,7 @@ discard block |
||
| 54 | 52 | * @param string $class |
| 55 | 53 | * @return string html output |
| 56 | 54 | */ |
| 57 | - protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class) |
|
| 58 | - { |
|
| 55 | + protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class) { |
|
| 59 | 56 | |
| 60 | 57 | $previewMets = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action']; |
| 61 | 58 | |
@@ -78,8 +75,7 @@ discard block |
||
| 78 | 75 | * @param string $class |
| 79 | 76 | * @return string the rendered record list |
| 80 | 77 | */ |
| 81 | - public function render(array $arguments, $pageUid, $apiPid, $class) |
|
| 82 | - { |
|
| 78 | + public function render(array $arguments, $pageUid, $apiPid, $class) { |
|
| 83 | 79 | |
| 84 | 80 | if ($arguments['document']) { |
| 85 | 81 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $previewMets = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action']; |
| 61 | 61 | |
| 62 | 62 | $additionalGetVars = '&tx_dlf[id]=' . urlencode($previewMets) . '&no_cache=1'; |
| 63 | - $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = null); |
|
| 63 | + $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = NULL); |
|
| 64 | 64 | $icon = '<a href="#" data-toggle="tooltip" class="' . $class . '" onclick="' . htmlspecialchars(\TYPO3\CMS\Backend\Utility\BackendUtility::viewOnClick($pageUid, $this->backPath, '', '', '', $additionalGetVars)) . '" title="' . $title . '">' . |
| 65 | 65 | $insideText . '</a>'; |
| 66 | 66 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | protected function getViewIcon($row, $pageUid, $apiPid, $insideText, $class) |
| 42 | 42 | { |
| 43 | 43 | |
| 44 | - $dataCite = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action']; |
|
| 44 | + $dataCite = BackendUtility::getViewDomain($pageUid) . '/index.php?id=' . $apiPid . '&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action']; |
|
| 45 | 45 | |
| 46 | 46 | $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.datacite', 'dpf', $arguments = null); |
| 47 | 47 | $icon = '<a href="' . $dataCite . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>'; |
@@ -19,8 +19,7 @@ discard block |
||
| 19 | 19 | use TYPO3\CMS\Backend\Utility\BackendUtility; |
| 20 | 20 | use TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper; |
| 21 | 21 | |
| 22 | -class DataCiteViewHelper extends AbstractBackendViewHelper |
|
| 23 | -{ |
|
| 22 | +class DataCiteViewHelper extends AbstractBackendViewHelper { |
|
| 24 | 23 | |
| 25 | 24 | /** |
| 26 | 25 | * documentRepository |
@@ -38,8 +37,7 @@ discard block |
||
| 38 | 37 | * @param string $class |
| 39 | 38 | * @return string html output |
| 40 | 39 | */ |
| 41 | - protected function getViewIcon($row, $pageUid, $apiPid, $insideText, $class) |
|
| 42 | - { |
|
| 40 | + protected function getViewIcon($row, $pageUid, $apiPid, $insideText, $class) { |
|
| 43 | 41 | |
| 44 | 42 | $dataCite = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action']; |
| 45 | 43 | |
@@ -59,8 +57,7 @@ discard block |
||
| 59 | 57 | * @param string $class |
| 60 | 58 | * @return string the rendered record list |
| 61 | 59 | */ |
| 62 | - public function render(array $arguments, $pageUid, $apiPid, $class) |
|
| 63 | - { |
|
| 60 | + public function render(array $arguments, $pageUid, $apiPid, $class) { |
|
| 64 | 61 | |
| 65 | 62 | if ($arguments['document']) { |
| 66 | 63 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | $dataCite = BackendUtility::getViewDomain($pageUid) . '/index.php?id='.$apiPid.'&tx_dpf[qid]=' . $row['uid'] . '&tx_dpf[action]=' . $row['action']; |
| 45 | 45 | |
| 46 | - $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.datacite', 'dpf', $arguments = null); |
|
| 46 | + $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.datacite', 'dpf', $arguments = NULL); |
|
| 47 | 47 | $icon = '<a href="' . $dataCite . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>'; |
| 48 | 48 | |
| 49 | 49 | return $icon; |
@@ -55,18 +55,18 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | if (is_array($dpfTSconfig['settings.'])) { |
| 57 | 57 | |
| 58 | - \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, true, false); |
|
| 58 | + \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, TRUE, FALSE); |
|
| 59 | 59 | $this->conf = $dpfTSconfig['settings.']; |
| 60 | 60 | |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | // Turn cache on. |
| 64 | - $this->setCache(true); |
|
| 64 | + $this->setCache(TRUE); |
|
| 65 | 65 | |
| 66 | 66 | // Load current document. |
| 67 | 67 | $this->loadDocument(); |
| 68 | 68 | |
| 69 | - if ($this->doc === null) { |
|
| 69 | + if ($this->doc === NULL) { |
|
| 70 | 70 | |
| 71 | 71 | // Quit without doing anything if required variables are not set. |
| 72 | 72 | return $content; |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | 'useCacheHash' => 0, |
| 172 | 172 | 'parameter' => $this->conf['apiPid'], |
| 173 | 173 | 'additionalParams' => '&tx_dpf[qid]=' . $values[0] . '&tx_dpf[action]=attachment&tx_dpf[attachment]=ATT-0', |
| 174 | - 'forceAbsoluteUrl' => true, |
|
| 174 | + 'forceAbsoluteUrl' => TRUE, |
|
| 175 | 175 | ); |
| 176 | 176 | |
| 177 | 177 | // replace uid with URI to dpf API |