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

[MAINTENANCE] Replace config.storagePid with storagePid config from tx_dlf plugin #315

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Configuration/TypoScript/Plugins/dfgviewer.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

plugin.tx_dfgviewer {
persistence {
storagePid = {$config.storagePid}
storagePid = {$plugin.tx_dlf.persistence.storagePid}
}
view {
partialRootPaths {
Expand Down
14 changes: 7 additions & 7 deletions Configuration/TypoScript/Plugins/kitodo.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ plugin.tx_dlf._DEFAULT_PI_VARS.double.stdWrap.data = GP:set|double

plugin.tx_dlf {
persistence {
storagePid = {$config.storagePid}
storagePid = {$plugin.tx_dlf.persistence.storagePid}
}
settings {
storagePid = {$config.storagePid}
storagePid = {$plugin.tx_dlf.persistence.storagePid}
}
view {
partialRootPaths {
Expand Down Expand Up @@ -138,7 +138,7 @@ lib.kitodo.navigation.pagecontrol {
lib.kitodo.navigation.viewfunction < tt_content.list.20.dlf_navigation
lib.kitodo.navigation.viewfunction {
settings {
pages = {$config.kitodo.storagePid}
pages = {$plugin.tx_dlf.persistence.storagePid}
features = pageselect,rotation,zoom
}
}
Expand Down Expand Up @@ -210,7 +210,7 @@ plugin.tx_dlf_audioplayer {
# --------------------------------------------------------------------------------------------------------------------
# 3d object
# --------------------------------------------------------------------------------------------------------------------
[getDocumentType({$config.storagePid}) == "object"]
[getDocumentType({$plugin.tx_dlf.persistence.storagePid}) == "object"]
page.10.variables {
is3dObject = TEXT
is3dObject.value = 1
Expand All @@ -220,21 +220,21 @@ plugin.tx_dlf_audioplayer {
# --------------------------------------------------------------------------------------------------------------------
# newspaper navigation
# --------------------------------------------------------------------------------------------------------------------
[getDocumentType({$config.storagePid}) == "ephemera" or getDocumentType({$config.storagePid}) == "newspaper"]
[getDocumentType({$plugin.tx_dlf.persistence.storagePid}) == "ephemera" or getDocumentType({$plugin.tx_dlf.persistence.storagePid}) == "newspaper"]
page.10.variables {
isNewspaper = TEXT
isNewspaper.value = newspaper_anchor
}
[END]

[getDocumentType({$config.storagePid}) == "year"]
[getDocumentType({$plugin.tx_dlf.persistence.storagePid}) == "year"]
page.10.variables {
isNewspaper = TEXT
isNewspaper.value = newspaper_year
}
[END]

[getDocumentType({$config.storagePid}) == "issue"]
[getDocumentType({$plugin.tx_dlf.persistence.storagePid}) == "issue"]
page.10.variables {
isNewspaper = TEXT
isNewspaper.value = newspaper_issue
Expand Down
1 change: 0 additions & 1 deletion Initialisation/data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4194,7 +4194,6 @@
<field index="include_static_file">EXT:fluid_styled_content/Configuration/TypoScript/,EXT:dlf/Configuration/TypoScript/,EXT:dfgviewer/Configuration/TypoScript</field>
<field index="constants"># Please set at least the following constants via the TypoScript Constant Editor
plugin.tx_dlf.persistence.storagePid = 3
config.storagePid = 3
config.rootPid = 1
config.headNavPid = 0
config.kitodoPageView = 2</field>
Expand Down
Loading