@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $content = ''; |
| 73 | 73 | if (is_array($attachments)) { |
| 74 | 74 | foreach ($attachments as $id => $file) { |
| 75 | - $conf = array( |
|
| 75 | + $conf = array ( |
|
| 76 | 76 | 'useCacheHash' => 0, |
| 77 | 77 | 'parameter' => $this->conf['apiPid'] . ' - piwik_download', |
| 78 | 78 | 'additionalParams' => '&tx_dpf[qid]=' . $this->doc->recordId . '&tx_dpf[action]=attachment' . '&tx_dpf[attachment]=' . $file['ID'], |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $title = $file['LABEL'] ? $file['LABEL'] : $file['ID']; |
| 82 | 82 | $markerArray['###FILE###'] = $this->cObj->typoLink($title, $conf); |
| 83 | 83 | |
| 84 | - if(!empty($vgwort)) { |
|
| 84 | + if (!empty($vgwort)) { |
|
| 85 | 85 | $markerArray['###VGWORT###'] = "<div class='div_vgwpixel' data-url='" . $vgwort . "'></div>"; |
| 86 | 86 | } else { |
| 87 | 87 | $markerArray['###VGWORT###'] = ""; |
@@ -103,10 +103,10 @@ discard block |
||
| 103 | 103 | $xPath = 'mets:fileSec/mets:fileGrp[@USE="' . $this->conf['fileGrpDownload'] . '"]/mets:file'; |
| 104 | 104 | $files = $this->doc->mets->xpath($xPath); |
| 105 | 105 | if (!is_array($files)) { |
| 106 | - return array(); |
|
| 106 | + return array (); |
|
| 107 | 107 | } |
| 108 | 108 | foreach ($files as $key => $file) { |
| 109 | - $singleFile = array(); |
|
| 109 | + $singleFile = array (); |
|
| 110 | 110 | foreach ($file->attributes('mext', 1) as $attribute => $value) { |
| 111 | 111 | $singleFile[$attribute] = $value; |
| 112 | 112 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | $xPath = '//slub:info/slub:vgwortOpenKey'; |
| 129 | 129 | $vgwortOpenKey = $this->doc->mets->xpath($xPath)[0]; |
| 130 | 130 | |
| 131 | - if (!empty($vgwortOpenKey) or $vgwortOpenKey != FALSE ) { |
|
| 131 | + if (!empty($vgwortOpenKey) or $vgwortOpenKey != FALSE) { |
|
| 132 | 132 | if (GeneralUtility::getIndpEnv('TYPO3_SSL')) { |
| 133 | 133 | $vgwortserver = 'https://ssl-vg03.met.vgwort.de/na/'; |
| 134 | 134 | } else { |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | foreach ($relatedItems as $key => $value) { |
| 72 | 72 | // set link |
| 73 | 73 | if ($value['type'] == 'local') { |
| 74 | - $confApi = array( |
|
| 74 | + $confApi = array ( |
|
| 75 | 75 | 'useCacheHash' => 0, |
| 76 | 76 | 'parameter' => $this->conf['apiPid'], |
| 77 | 77 | 'additionalParams' => '&tx_dpf[qid]=' . $value['docId'] . '&tx_dpf[action]=mets', |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | ); |
| 80 | 80 | |
| 81 | 81 | $metsApiUrl = urlencode($this->cObj->typoLink_URL($confApi)); |
| 82 | - $conf = array( |
|
| 82 | + $conf = array ( |
|
| 83 | 83 | 'useCacheHash' => 1, |
| 84 | 84 | 'parameter' => $GLOBALS['TSFE']->page['uid'], |
| 85 | 85 | 'additionalParams' => '&tx_dlf[id]=' . $metsApiUrl, |
@@ -87,13 +87,13 @@ discard block |
||
| 87 | 87 | ); |
| 88 | 88 | } elseif ($value['type'] == 'urn') { |
| 89 | 89 | // use urn link |
| 90 | - $conf = array( |
|
| 90 | + $conf = array ( |
|
| 91 | 91 | 'useCacheHash' => 0, |
| 92 | 92 | 'parameter' => 'https://nbn-resolving.de/' . $value['docId'], |
| 93 | 93 | 'forceAbsoluteUrl' => true, |
| 94 | 94 | ); |
| 95 | 95 | } else { |
| 96 | - $conf = array( |
|
| 96 | + $conf = array ( |
|
| 97 | 97 | 'useCacheHash' => 0, |
| 98 | 98 | 'forceAbsoluteUrl' => true, |
| 99 | 99 | ); |
@@ -109,8 +109,8 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | private function compareByOrderVolumeTitle($a, $b) |
| 111 | 111 | { |
| 112 | - $s1 = join(' ', array($a['order'], $a['volume'], $a['title'])); |
|
| 113 | - $s2 = join(' ', array($b['order'], $b['volume'], $b['title'])); |
|
| 112 | + $s1 = join(' ', array ($a['order'], $a['volume'], $a['title'])); |
|
| 113 | + $s2 = join(' ', array ($b['order'], $b['volume'], $b['title'])); |
|
| 114 | 114 | return strnatcmp($s1, $s2); |
| 115 | 115 | } |
| 116 | 116 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | { |
| 119 | 119 | $xPath = '//mods:relatedItem[@type="constituent"]'; |
| 120 | 120 | $items = $this->doc->mets->xpath($xPath); |
| 121 | - $relatedItems = array(); |
|
| 121 | + $relatedItems = array (); |
|
| 122 | 122 | |
| 123 | 123 | foreach ($items as $index => $relatedItemXmlElement) { |
| 124 | 124 | $relatedItemXmlElement->registerXPathNamespace('mods', 'http://www.loc.gov/mods/v3'); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $order = (string) $relatedItemXmlElement->xpath('mods:extension/slub:info/slub:sortingKey')[0]; |
| 131 | 131 | $volume = (string) $relatedItemXmlElement->xpath('mods:part[@type="volume" or @type="issue"]/mods:detail/mods:number')[0]; |
| 132 | 132 | |
| 133 | - $element = array(); |
|
| 133 | + $element = array (); |
|
| 134 | 134 | $element['type'] = $type; |
| 135 | 135 | $element['title'] = $title; |
| 136 | 136 | $element['docId'] = $docId; |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | $relatedItems[$index] = $element; |
| 141 | 141 | } |
| 142 | - usort($relatedItems, array('EWW\Dpf\Plugins\RelatedListTool\RelatedListTool', 'compareByOrderVolumeTitle')); |
|
| 142 | + usort($relatedItems, array ('EWW\Dpf\Plugins\RelatedListTool\RelatedListTool', 'compareByOrderVolumeTitle')); |
|
| 143 | 143 | return $relatedItems; |
| 144 | 144 | } |
| 145 | 145 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - $metadata = array(); |
|
| 74 | + $metadata = array (); |
|
| 75 | 75 | $metadata = $this->doc->getTitleData($this->conf['pages']); |
| 76 | 76 | |
| 77 | 77 | // Collect files from download file group |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | case 'title': |
| 127 | 127 | if (is_array($values)) { |
| 128 | 128 | $outArray['citation_title'][] = $values[0]; |
| 129 | - $GLOBALS['TSFE']->page['title'] = $values[0]; |
|
| 129 | + $GLOBALS['TSFE']->page['title'] = $values[0]; |
|
| 130 | 130 | } |
| 131 | 131 | break; |
| 132 | 132 | |
@@ -148,8 +148,8 @@ discard block |
||
| 148 | 148 | break; |
| 149 | 149 | |
| 150 | 150 | case 'attachments': |
| 151 | - foreach($values as $attachment) { |
|
| 152 | - $conf = array( |
|
| 151 | + foreach ($values as $attachment) { |
|
| 152 | + $conf = array ( |
|
| 153 | 153 | 'useCacheHash' => 0, |
| 154 | 154 | 'parameter' => $this->conf['apiPid'], |
| 155 | 155 | 'additionalParams' => '&tx_dpf[qid]=' . $this->doc->recordId . '&tx_dpf[action]=attachment&tx_dpf[attachment]=' . $attachment['ID'], |
@@ -209,14 +209,14 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | protected function getAttachments() |
| 211 | 211 | { |
| 212 | - $attachments = array(); |
|
| 212 | + $attachments = array (); |
|
| 213 | 213 | |
| 214 | 214 | $xPath = 'mets:fileSec/mets:fileGrp[@USE="' . $this->conf['fileGrpDownload'] . '"]/mets:file'; |
| 215 | 215 | $files = $this->doc->mets->xpath($xPath); |
| 216 | 216 | |
| 217 | 217 | if (is_array($files)) { |
| 218 | 218 | foreach ($files as $key => $file) { |
| 219 | - $singleFile = array(); |
|
| 219 | + $singleFile = array (); |
|
| 220 | 220 | foreach ($file->attributes('mext', 1) as $attribute => $value) { |
| 221 | 221 | $singleFile[$attribute] = $value; |
| 222 | 222 | } |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * Extension Manager/Repository config file for ext: "dpf" |
| 17 | 17 | ***************************************************************/ |
| 18 | 18 | |
| 19 | -$EM_CONF[$_EXTKEY] = array( |
|
| 19 | +$EM_CONF[$_EXTKEY] = array ( |
|
| 20 | 20 | 'title' => 'Kitodo.Publication', |
| 21 | 21 | 'description' => '', |
| 22 | 22 | 'category' => 'plugin', |
@@ -28,13 +28,13 @@ discard block |
||
| 28 | 28 | 'createDirs' => 'uploads/tx_dpf', |
| 29 | 29 | 'clearCacheOnLoad' => 0, |
| 30 | 30 | 'version' => '5.0.0', |
| 31 | - 'constraints' => array( |
|
| 32 | - 'depends' => array( |
|
| 31 | + 'constraints' => array ( |
|
| 32 | + 'depends' => array ( |
|
| 33 | 33 | 'typo3' => '9.5.0-9.5.99', |
| 34 | 34 | ), |
| 35 | - 'conflicts' => array( |
|
| 35 | + 'conflicts' => array ( |
|
| 36 | 36 | ), |
| 37 | - 'suggests' => array( |
|
| 37 | + 'suggests' => array ( |
|
| 38 | 38 | ), |
| 39 | 39 | ), |
| 40 | 40 | ); |