From 984ae1a82f2fa55a84eb0dda81ee1536344aea9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=B6lzel?= Date: Tue, 10 Dec 2024 16:23:46 +0100 Subject: [PATCH] Remove TypoScript option addQueryString.method Regarding to TYPO3 v12 Deprecations. Change addQueryString to untrusted as successor to 1. See: #93041, #98488 --- .../Partials/TableOfContents/Children.html | 5 ++-- .../Kitodo/Templates/Navigation/Main.html | 24 +++++++++---------- .../SingleCollection/Partials/Pagination.html | 10 ++++---- 3 files changed, 19 insertions(+), 20 deletions(-) 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}