Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Configuration/TypoScript/Plugins/kitodo.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -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.

plugin.tx_dlf._DEFAULT_PI_VARS.id.stdWrap.data = GP:set|mets
[END]

# map set[image] --> tx_dlf[page]
[traverse(request.getQueryParams(), 'set/image')]
[request?.getQueryParams()?['set']?['image']]
plugin.tx_dlf._DEFAULT_PI_VARS.page.stdWrap.data = GP:set|image
[END]

# map set[double] --> tx_dlf[double]
[traverse(request.getQueryParams(), 'set/double') > 0]
[request?.getQueryParams()?['set']?['double'] > 0]
plugin.tx_dlf._DEFAULT_PI_VARS.double.stdWrap.data = GP:set|double
[END]

Expand Down