Plugin Reference
Kitodo Plugin Reference
Common Settings
Fluid Template Configuration
As of Kitodo.Presentation 4.0 the Fluid rendering engine is used. The former marker templates for plugins are not supported anymore.
Now, all HTML markup is done in Fluid. To use different templates, you have to overload the templates by the common TYPO3 way.
The following TypoScript defines additional paths inside an "example" extension:
plugin.tx_dlf {
view {
templateRootPaths {
10 = EXT:example/Resources/Private/Plugins/Kitodo/Templates
}
partialRootPaths {
10 = EXT:example/Resources/Private/Plugins/Kitodo/Partials
}
}
}
In this example, you place the customized fluid template into this file:
EXT:example/Resources/Private/Plugins/Kitodo/Partials/Navigation/Main.html
Audioplayer
The audioplayer plugin is only active if the selected document has a valid audio filegroup (fileGrpAudio).
Properties
plugin.
Property |
Data type |
Default |
---|---|---|
1 | ||
tx-dlf-audio |
excludeOther
Show only documents from the selected page.
elementId
ID value of the HTML element for the audio player.
Basket
plugin.
Calendar
The calendar plugin may be used with newspaper and ephemeras (periodical published media). The plugin shows itself an overview of all available years or all issues in a calendar view of a selected year.
You can't place the plugin together with the pageview plugin on one page. But you can use TypoScript conditions on this page to select the proper plugin e.g by setting some specific FLUID variables.
This is an example usage of the TypoScript condition ("getDocumentType"):
[getDocumentType({$config.storagePid}) === 'ephemera' or getDocumentType({$config.storagePid}) === 'newspaper']
page.10.variables {
isNewspaper = TEXT
isNewspaper.value = newspaper_anchor
}
[END]
[getDocumentType({$config.storagePid}) === 'year']
page.10.variables {
isNewspaper = TEXT
isNewspaper.value = newspaper_year
}
[END]
[getDocumentType({$config.storagePid}) === 'issue']
page.10.variables {
isNewspaper = TEXT
isNewspaper.value = newspaper_issue
}
[END]
The {$config.
is a TypoScript constant holding the Kitodo.Presentation storage pid.
This way, the FLUID variable "isNewspaper" is set according to the given value. Inside the FLUID template it's possible to switch to the right plugin now.
plugin.
Collection
The collection plugin shows one collection, all collections or selected collections.
plugin.
Embedded 3D Viewer
The embedded3dviewer plugin renders an iFrame in which the configured 3D viewer displays the model.
plugin.
Property |
Data type |
Description |
---|---|---|
document |
The URL of the XML document which contains the model. | |
model |
The URL of the 3D model. | |
viewer |
Override the default viewer from the extension configuration (see Configuration) with a supported viewer (from the "dlf_3d_viewers" directory). |
Feeds
The feeds plugin renders a RSS 2.0 feed of last updated documents of all or a specific collection.
The following steps are necessary to activate the plugin:
a. Create a new page "Feed" with slug "feed". b. Create an extension template on this page and include the TypoScript template of the feeds plugin. c. Place the "Kitodo Feeds" plugin on it and configure it for your needs.
The TypoScript part is necessary to switch the page rendering to a different page object.
plugin.
List View
plugin.
Metadata
plugin.
OAI-PMH
plugin.
Page Grid
plugin.
Page View
plugin.
Search
plugin.
Property |
Data type |
Default |
Description |
---|---|---|---|
fulltext | |||
fulltextPreselect | |||
datesearch | |||
solrcore | |||
limit |
50000 | ||
extendedSlotCount | |||
extendedFields | |||
searchIn | |||
collections |
| ||
facets |
| ||
limitFacets |
15 | ||
resetFacets | |||
sortingFacets | |||
suggest |
1 | ||
showSingleResult | |||
targetPid |
| ||
targetPidPageView |
|
Statistics
plugin.
Property |
Data type |
Default |
---|---|---|
collections |
| |
description |
Table Of Contents
plugin.
Property |
Data type |
Default |
Description |
---|---|---|---|
1 | |||
basketButton | |||
targetBasket |
| ||
targetPid |
| ||
titleReplacement |
|
List containing types for which title should be replaced when the label is empty. The defined fields are used for replacement. Example data: 0 { type = issue fields = type,year } 1 { type = volume fields = type,volume } |
Toolbox
plugin.
Property |
Data type |
Default |
Values |
---|---|---|---|
tools |
|
| |
solrcore | |||
fileGrpsImageDownload |
|
MIN,DEFAULT,MAX |
Fulltext Tool
This plugin adds an activation link for fulltext to the toolbox. If no fulltext is available for the current page, a span-tag is rendered instead.
The default behavior is to show the fulltext after click on the toggle link. There is a TypoScript configuration to show the fulltext initially.
plugin.
Property |
Data type |
Default |
Values |
---|---|---|---|
activateFullTextInitially |
0: show fulltext after click on toggle link 1: show fulltext on document load | ||
fullTextScrollElement |
html, body |
The fulltext is fetched and rendered by JavaScript into the <div id="tx-
of the pageview plugin.
Please note: To allow JavaScript fetching the fulltext, the CORS headers must be configured appropriate on the providing webserver.
Search in Document Tool
This plugin adds an possibility to search all appearances of the phrase in currently displayed document
plugin.
Property |
Data type |
Default |
Values |
---|---|---|---|
searchUrl | |||
documentIdUrlSchema |
empty |
https://host.de/items/id/record - example value | |
idInputName |
tx_dlf[id] | ||
queryInputName |
tx_dlf[query] | ||
startInputName |
tx_dlf[start] | ||
pageInputName |
tx_dlf[page] | ||
highlightWordInputName |
tx_dlf[highlight_word] | ||
encryptedInputName |
tx_dlf[encrypted] |