diff --git a/Classes/ViewHelpers/ProviderLogoCachedViewHelper.php b/Classes/ViewHelpers/ProviderLogoCachedViewHelper.php index 325850b..2261d07 100644 --- a/Classes/ViewHelpers/ProviderLogoCachedViewHelper.php +++ b/Classes/ViewHelpers/ProviderLogoCachedViewHelper.php @@ -55,7 +55,7 @@ public static function renderStatic( ) { $logoUrl = $arguments['logo']; // is valid uri? - if (GeneralUtility::isValidUrl($logoUrl)) { + if (isset($logoUrl) && GeneralUtility::isValidUrl($logoUrl)) { // calculate cache identifier $logoInfo = pathinfo($logoUrl); $cacheIdentifier = md5($logoUrl) . '.' . $logoInfo['extension']; diff --git a/Classes/ViewHelpers/XpathViewHelper.php b/Classes/ViewHelpers/XpathViewHelper.php index 672240f..b4ec3ca 100644 --- a/Classes/ViewHelpers/XpathViewHelper.php +++ b/Classes/ViewHelpers/XpathViewHelper.php @@ -25,7 +25,6 @@ ***************************************************************/ use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\MathUtility; -use TYPO3\CMS\Extbase\Object\ObjectManager; use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; @@ -144,10 +143,7 @@ public static function renderStatic( private static function getDocumentRepository() { if (null === static::$documentRepository) { - $objectManager = GeneralUtility::makeInstance(ObjectManager::class); - static::$documentRepository = $objectManager->get( - DocumentRepository::class - ); + static::$documentRepository = GeneralUtility::makeInstance(DocumentRepository::class); } return static::$documentRepository; diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php index b9cdbd7..6ba75fa 100644 --- a/Configuration/TCA/Overrides/pages.php +++ b/Configuration/TCA/Overrides/pages.php @@ -1,5 +1,5 @@ +@import 'EXT:slub_digitalcollections/Configuration/TsConfig/Mod/WebLayout/BackendLayouts/*.tsconfig' +@import 'EXT:slub_digitalcollections/Configuration/TsConfig/Mod/Wizards/NewContentElement/*.tsconfig' diff --git a/Configuration/TypoScript/Plugin/Kitodo/setup.typoscript b/Configuration/TypoScript/Plugin/Kitodo/setup.typoscript index 9cd45d4..b110c95 100644 --- a/Configuration/TypoScript/Plugin/Kitodo/setup.typoscript +++ b/Configuration/TypoScript/Plugin/Kitodo/setup.typoscript @@ -1,4 +1,4 @@ - +@import 'EXT:slub_digitalcollections/Configuration/TypoScript/Plugin/Kitodo/common.typoscript' plugin.tx_dlf { persistence { diff --git a/Configuration/TypoScript/SitePackage/setup.typoscript b/Configuration/TypoScript/SitePackage/setup.typoscript index a00a763..c2df5b3 100644 --- a/Configuration/TypoScript/SitePackage/setup.typoscript +++ b/Configuration/TypoScript/SitePackage/setup.typoscript @@ -66,4 +66,4 @@ page { } - +@import 'EXT:slub_digitalcollections/Configuration/TypoScript/SitePackage/navigation.typoscript' diff --git a/Configuration/TypoScript/setup.typoscript b/Configuration/TypoScript/setup.typoscript index 5e539ff..179358b 100644 --- a/Configuration/TypoScript/setup.typoscript +++ b/Configuration/TypoScript/setup.typoscript @@ -142,18 +142,16 @@ page { # -------------------------------------------------------------------------------------------------------------------- # The condition is necessary because you cannot nest TypoScript conditions. But inside the included TypoScript files, # more conditions appear. - - - - +@import 'EXT:slub_digitalcollections/Configuration/TypoScript/Plugin/Kitodo/setup.typoscript' +@import 'EXT:slub_digitalcollections/Configuration/TypoScript/Plugin/singleCollection.typoscript' # -------------------------------------------------------------------------------------------------------------------- # body class overrides # -------------------------------------------------------------------------------------------------------------------- -[getTSFE().id == {$config.collectionView}] +[getTSFE() && getTSFE().id == {$config.collectionView}] page.bodyTag = # render content parts only [END] -[getTSFE().id == {$config.listView}] +[getTSFE() && getTSFE().id == {$config.listView}] page.bodyTag = [END] diff --git a/Resources/Private/Plugins/Kitodo/Partials/TableOfContents/Children.html b/Resources/Private/Plugins/Kitodo/Partials/TableOfContents/Children.html index 2783fd9..da67693 100644 --- a/Resources/Private/Plugins/Kitodo/Partials/TableOfContents/Children.html +++ b/Resources/Private/Plugins/Kitodo/Partials/TableOfContents/Children.html @@ -46,8 +46,7 @@ pageUid="{settings.targetPid}" additionalParams="{f:if(condition:'{child.id}', then:'{\'tx_dlf[id]\':child.id, \'tx_dlf[page]\':child.page}', else: '{\'tx_dlf[page]\':child.page}')}" argumentsToBeExcludedFromQueryString="{0: 'tx_dlf[measure]'}" - addQueryString="1" - addQueryStringMethod="GET" + addQueryString="untrusted" title="{f:if(condition:'{child.title}', then: '{child.title}', else: '{child.type}')}"> @@ -61,7 +60,7 @@ action="main" controller="Basket" additionalParams="{'tx_dlf[addToBasket]':'toc', 'tx_dlf[logId]':child.basketButton.logId, 'tx_dlf[startpage]':child.basketButton.startpage, 'tx_dlf_basket[action]':'add', 'tx_dlf_basket[controller]':'Basket'}" - addQueryString="1"> + addQueryString="untrusted"> diff --git a/Resources/Private/Plugins/Kitodo/Templates/Navigation/Main.html b/Resources/Private/Plugins/Kitodo/Templates/Navigation/Main.html index a162425..5cbf153 100644 --- a/Resources/Private/Plugins/Kitodo/Templates/Navigation/Main.html +++ b/Resources/Private/Plugins/Kitodo/Templates/Navigation/Main.html @@ -25,7 +25,7 @@
- @@ -33,7 +33,7 @@
- @@ -47,7 +47,7 @@
- @@ -69,7 +69,7 @@ - @@ -87,7 +87,7 @@ - @@ -105,7 +105,7 @@ - @@ -149,7 +149,7 @@ - @@ -167,7 +167,7 @@ - @@ -185,7 +185,7 @@ - @@ -244,7 +244,7 @@ - + @@ -270,13 +270,13 @@ - + + addQueryString="untrusted" additionalParams="{'tx_dlf[measure]':'1', 'tx_dlf[page]':'{measurePages.1}'}"> diff --git a/Resources/Private/Plugins/SingleCollection/Partials/Pagination.html b/Resources/Private/Plugins/SingleCollection/Partials/Pagination.html index e68d71a..8c05724 100644 --- a/Resources/Private/Plugins/SingleCollection/Partials/Pagination.html +++ b/Resources/Private/Plugins/SingleCollection/Partials/Pagination.html @@ -3,10 +3,10 @@
  • - 1 + 1
  • @@ -43,7 +43,7 @@
  • - {page.label} + {page.label}
  • @@ -53,10 +53,10 @@
  • - {pagination.lastPageNumber} + {pagination.lastPageNumber}
  • diff --git a/Resources/Public/Icons/Extension.png b/Resources/Public/Icons/Extension.png new file mode 100644 index 0000000..ad4f7a7 Binary files /dev/null and b/Resources/Public/Icons/Extension.png differ diff --git a/composer.json b/composer.json index baff0bf..f38d344 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "license": "GPL-3.0-or-later", "require": { "php": "7.4 - 8.3", - "typo3/cms-core": "^10.4|^11.5", + "typo3/cms-core": "^11.5.40|^12.4.21", "kitodo/presentation": "^5.0|dev-main" }, "require-dev": { diff --git a/ext_emconf.php b/ext_emconf.php index bdf4d29..f84f333 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -19,8 +19,9 @@ 'lockType' => '', 'version' => '4.0.0', 'constraints' => array( - 'depends' => array( - 'typo3' => '10.4.99-11.5.99', - ), + 'depends' => [ + 'php' => '7.4.0-8.3.99', + 'typo3' => '11.5.0-12.4.99' + ], ), ); diff --git a/ext_localconf.php b/ext_localconf.php index ae55d11..6ac64ed 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -1,5 +1,5 @@