Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update conditional TypoScript for TYPO3 v12 #352

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

stweil
Copy link
Contributor

@stweil stweil commented Mar 7, 2025

No description provided.

@stweil
Copy link
Contributor Author

stweil commented Mar 7, 2025

See also related issue #351 and related PR kitodo/kitodo-presentation#1514.

Another (maybe better?) solution would assert that request is always valid.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
@@ -3,17 +3,17 @@
# ------------------------------------

# map set[mets] --> tx_dlf[id]
[like(traverse(request.getQueryParams(), 'set/mets'), 'http*')]
[request?.getQueryParams()?['set']?['mets'] =~ /http.*/]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[request?.getQueryParams()?['set']?['mets'] =~ /http.*/]
like(request?.getQueryParams()?['set']?['mets'], 'http*')]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am afraid that more tests are needed to find a solution which does not break different use cases.

@stweil stweil marked this pull request as draft March 14, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant