diff --git a/Classes/Common/IiifManifest.php b/Classes/Common/IiifManifest.php index 22679363..b86ecbb8 100644 --- a/Classes/Common/IiifManifest.php +++ b/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; diff --git a/Classes/Plugin/PageGrid.php b/Classes/Plugin/PageGrid.php index 7e2eebd9..a8e8c390 100644 --- a/Classes/Plugin/PageGrid.php +++ b/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;