Browse Source

Fix small typos

pull/592/head
Sebastian Meyer 9 months ago
parent
commit
52d6d2cef1
  1. 4
      Classes/Common/IiifManifest.php
  2. 6
      Classes/Plugin/PageGrid.php

4
Classes/Common/IiifManifest.php

@ -800,9 +800,9 @@ final class IiifManifest extends Document
$this->_getPhysicalStructure();
// ... and extension configuration.
$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][self::$extKey]);
$fileGrpFulltexts = GeneralUtility::trimExplode(',', $extConf['fileGrpDownload']);
$fileGrpsFulltext = GeneralUtility::trimExplode(',', $extConf['fileGrpFulltext']);
if (!empty($this->physicalStructureInfo[$id])) {
while ($fileGrpFulltext = array_shift($fileGrpFulltexts)) {
while ($fileGrpFulltext = array_shift($fileGrpsFulltext)) {
if (!empty($this->physicalStructureInfo[$id]['files'][$fileGrpFulltext])) {
$rawText = parent::getRawTextFromXml($id);
break;

6
Classes/Plugin/PageGrid.php

@ -54,9 +54,9 @@ class PageGrid extends \Kitodo\Dlf\Common\AbstractPlugin
// Set pagination.
$markerArray['###PAGINATION###'] = htmlspecialchars($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$number]]['orderlabel']);
// Get thumbnail or placeholder.
$fileGrpThumbs = GeneralUtility::trimExplode(',', $this->onf['fileGrpThumbs']);
if (array_intersect($fileGrpThumbs, array_keys($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$number]]['files'])) !== [] ) {
while ($fileGrpThumb = array_shift($fileGrpThumbs)) {
$fileGrpsThumb = GeneralUtility::trimExplode(',', $this->conf['fileGrpThumbs']);
if (array_intersect($fileGrpsThumb, array_keys($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$number]]['files'])) !== [] ) {
while ($fileGrpThumb = array_shift($fileGrpsThumb)) {
if (!empty($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$number]]['files'][$fileGrpThumb])) {
$thumbnailFile = $this->doc->getFileLocation($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$number]]['files'][$fileGrpThumb]);
break;

Loading…
Cancel
Save