We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -160,11 +160,14 @@ discard block |
||
| 160 | 160 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
| 161 | 161 | ]; |
| 162 | 162 | $value = $this->cObj->typoLink(htmlspecialchars($value), $conf); |
| 163 | - } elseif ($index_name == 'owner' && !empty($value)) { // Translate name of holding library. |
|
| 163 | + } elseif ($index_name == 'owner' && !empty($value)) { |
|
| 164 | +// Translate name of holding library. |
|
| 164 | 165 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_libraries', $this->conf['pages'])); |
| 165 | - } elseif ($index_name == 'type' && !empty($value)) { // Translate document type. |
|
| 166 | + } elseif ($index_name == 'type' && !empty($value)) { |
|
| 167 | +// Translate document type. |
|
| 166 | 168 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_structures', $this->conf['pages'])); |
| 167 | - } elseif ($index_name == 'language' && !empty($value)) { // Translate ISO 639 language code. |
|
| 169 | + } elseif ($index_name == 'language' && !empty($value)) { |
|
| 170 | +// Translate ISO 639 language code. |
|
| 168 | 171 | $value = htmlspecialchars(Helper::getLanguageName($value)); |
| 169 | 172 | } elseif (!empty($value)) { |
| 170 | 173 | $value = htmlspecialchars($value); |
@@ -325,16 +328,19 @@ discard block |
||
| 325 | 328 | 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE) |
| 326 | 329 | ]; |
| 327 | 330 | $value = $this->cObj->typoLink(htmlspecialchars($value), $conf); |
| 328 | - } elseif ($index_name == 'owner' && !empty($value)) { // Translate name of holding library. |
|
| 331 | + } elseif ($index_name == 'owner' && !empty($value)) { |
|
| 332 | +// Translate name of holding library. |
|
| 329 | 333 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_libraries', $this->conf['pages'])); |
| 330 | - } elseif ($index_name == 'type' && !empty($value)) { // Translate document type. |
|
| 334 | + } elseif ($index_name == 'type' && !empty($value)) { |
|
| 335 | +// Translate document type. |
|
| 331 | 336 | $_value = $value; |
| 332 | 337 | $value = htmlspecialchars(Helper::translate($value, 'tx_dlf_structures', $this->conf['pages'])); |
| 333 | 338 | // Add page number for single pages. |
| 334 | 339 | if ($_value == 'page') { |
| 335 | 340 | $value .= ' '.intval($subpart['page']); |
| 336 | 341 | } |
| 337 | - } elseif ($index_name == 'language' && !empty($value)) { // Translate ISO 639 language code. |
|
| 342 | + } elseif ($index_name == 'language' && !empty($value)) { |
|
| 343 | +// Translate ISO 639 language code. |
|
| 338 | 344 | $value = htmlspecialchars(Helper::getLanguageName($value)); |
| 339 | 345 | } elseif (!empty($value)) { |
| 340 | 346 | $value = htmlspecialchars($value); |
@@ -537,14 +537,16 @@ |
||
| 537 | 537 | // Yes. Get the file reference. |
| 538 | 538 | $details['points'] = (string) $structure->children('http://www.loc.gov/METS/')->mptr[0]->attributes('http://www.w3.org/1999/xlink')->href; |
| 539 | 539 | } elseif (!empty($this->physicalStructure) |
| 540 | - && array_key_exists($details['id'], $this->smLinks['l2p'])) { // Are there any physical elements and is this logical unit linked to at least one of them? |
|
| 540 | + && array_key_exists($details['id'], $this->smLinks['l2p'])) { |
|
| 541 | +// Are there any physical elements and is this logical unit linked to at least one of them? |
|
| 541 | 542 | $details['points'] = max(intval(array_search($this->smLinks['l2p'][$details['id']][0], $this->physicalStructure, TRUE)), 1); |
| 542 | 543 | if (!empty($this->physicalStructureInfo[$this->smLinks['l2p'][$details['id']][0]]['files'][$extConf['fileGrpThumbs']])) { |
| 543 | 544 | $details['thumbnailId'] = $this->physicalStructureInfo[$this->smLinks['l2p'][$details['id']][0]]['files'][$extConf['fileGrpThumbs']]; |
| 544 | 545 | } |
| 545 | 546 | // Get page/track number of the first page/track related to this structure element. |
| 546 | 547 | $details['pagination'] = $this->physicalStructureInfo[$this->smLinks['l2p'][$details['id']][0]]['orderlabel']; |
| 547 | - } elseif ($details['id'] == $this->_getToplevelId()) { // Is this the toplevel structure element? |
|
| 548 | + } elseif ($details['id'] == $this->_getToplevelId()) { |
|
| 549 | +// Is this the toplevel structure element? |
|
| 548 | 550 | // Yes. Point to itself. |
| 549 | 551 | $details['points'] = 1; |
| 550 | 552 | if (!empty($this->physicalStructure) |