Skip to content

Commit 49e7a4f

Browse files
Kajetan Dvoracekbeatrycze-volk
authored andcommitted
Fetch prerendererd metadata dynamically
1 parent 4728677 commit 49e7a4f

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

Configuration/TypoScript/Plugins/kitodo.typoscript

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,20 @@ plugin.tx_dlf_metadata {
122122
}
123123
}
124124

125+
plugin.tx_dlf_metadata_prerender < plugin.tx_dlf_metadata
126+
plugin.tx_dlf_metadata_prerender {
127+
settings {
128+
prerenderAllSections = 1
129+
}
130+
}
131+
125132
# --------------------------------------------------------------------------------------------------------------------
126133
# document
127134
# --------------------------------------------------------------------------------------------------------------------
128135
plugin.tx_dlf_document < tt_content.list.20.dlf_document
129136
plugin.tx_dlf_document {
130137
settings {
138+
targetPidMetadata = {$config.prerenderMetadataPid}
131139
}
132140
}
133141

Configuration/TypoScript/constants.typoscript

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ plugin.tx_dfgviewer {
1212
# cat=plugin.tx_dfgviewer/links/040; type=int+; label=Kitodo Page View
1313
kitodoPageView =
1414

15+
# cat=plugin.tx_dfgviewer/links/051; type=int+; label=PID for Pre-rendered Metadata
16+
prerenderMetadataPid =
17+
1518
matomo {
1619
# cat=plugin.tx_dfgviewer/matomo/010; type=string; label=Matomo Hostname
1720
hostname =
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<f:cObject typoscriptObjectPath="plugin.tx_dlf_metadata_prerender" />

0 commit comments

Comments
 (0)