.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../Includes.txt .. _configuration: ################ Plugin Reference ################ .. contents:: :local: :depth: 4 Kitodo Plugin Reference ======================= Common Settings --------------- .. _fluidplugins: 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 Basket ------ :typoscript:`plugin.tx_dlf_basket.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default - :Property: pregeneration :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: pdfgenerate :Data Type: :ref:`t3tsref:data-type-string` :Default: - :Property: pdfdownload :Data Type: :ref:`t3tsref:data-type-string` :Default: - :Property: pdfprint :Data Type: :ref:`t3tsref:data-type-string` :Default: - :Property: pdfparams :Data Type: :ref:`t3tsref:data-type-string` :Default: ##docId##,##startpage##,##endpage##,##startx##,##starty##,##endx##,##endy##,##rotation## - :Property: pdfparamseparator :Data Type: :ref:`t3tsref:data-type-string` :Default: `*` - :Property: basketGoToButton :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: targetBasket :Data Type: `t3tsref:data-type-page-id` :Default: 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({$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({$plugin.tx_dlf.persistence.storagePid}) === 'year'] page.10.variables { isNewspaper = TEXT isNewspaper.value = newspaper_year } [END] [getDocumentType({$plugin.tx_dlf.persistence.storagePid}) === 'issue'] page.10.variables { isNewspaper = TEXT isNewspaper.value = newspaper_issue } [END] The `{$plugin.tx_dlf.persistence.storagePid}` 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. :typoscript:`plugin.tx_dlf_calendar.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default - :Property: initialDocument :Data Type: :ref:`t3tsref:data-type-integer` :Default: - :Property: showEmptyYears :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: showEmptyMonths :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 1 Collection ---------- The collection plugin shows one collection, all collections or selected collections. It can be used to display the list of collections or the contents of a single collection. The plugin is configured in the TypoScript and in the FlexForm. TypoScript Configuration ^^^^^^^^^^^^^^^^^^^^^^^^ :typoscript:`plugin.tx_dlf_collection.settings.list.paginate` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default :Description: Description - :Property: itemsPerPage :Data Type: :ref:`t3tsref:data-type-integer` :Default: 25 - :Property: insertAbove :Data Type: :ref:`t3tsref:data-type-integer` :Default: 1 - :Property: insertBelow :Data Type: :ref:`t3tsref:data-type-integer` :Default: 1 - :Property: maximumNumberOfLinks :Data Type: :ref:`t3tsref:data-type-integer` :Default: 10 - :Property: section :Data Type: :ref:`t3tsref:data-type-string` :Default: showResults FlexForm Configuration ^^^^^^^^^^^^^^^^^^^^^^ .. t3-field-list-table:: :header-rows: 1 - :Property: collections :Data Type: `t3tsref:data-type-list` :Default: - :Property: solrcore :Data Type: `t3tsref:data-type-list` :Default: - :Property: show_userdefined :Data Type: :ref:`t3tsref:data-type-integer` :Default: - :Property: dont_show_single :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: randomize :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: targetPid :Data Type: `t3tsref:data-type-page-id` :Default: - :Property: targetFeed :Data Type: `t3tsref:data-type-page-id` :Default: Embedded 3D Viewer ------------------ The embedded3dviewer plugin renders an iFrame in which the configured 3D viewer displays the model. :typoscript:`plugin.tx_dlf_embedded3dviewer.settings.` FlexForm Configuration ^^^^^^^^^^^^^^^^^^^^^^ .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Description: Description - :Property: document :Data Type: :ref:`t3tsref:data-type-string` :Description: The URL of the XML document which contains the model. - :Property: model :Data Type: :ref:`t3tsref:data-type-string` :Description: The URL of the 3D model. - :Property: viewer :Data Type: :ref:`t3tsref:data-type-string` :Description: Override the default viewer from the extension configuration (see :ref:`Embedded 3D Viewer 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. :typoscript:`plugin.tx_dlf_feeds.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default - :Property: collections :Data Type: `t3tsref:data-type-list` :Default: - :Property: excludeOtherCollections :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: library :Data Type: :ref:`t3tsref:data-type-integer` :Default: - :Property: limit :Data Type: :ref:`t3tsref:data-type-integer` :Default: 50 - :Property: prependSuperiorTitle :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: targetPid :Data Type: `t3tsref:data-type-page-id` :Default: - :Property: title :Data Type: :ref:`t3tsref:data-type-string` :Default: - :Property: description :Data Type: :ref:`t3tsref:data-type-string` :Default: List View --------- TypoScript Configuration ^^^^^^^^^^^^^^^^^^^^^^^^ :typoscript:`plugin.tx_dlf_listview.settings.list.paginate` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default - :Property: itemsPerPage :Data Type: :ref:`t3tsref:data-type-integer` :Default: 25 - :Property: insertAbove :Data Type: :ref:`t3tsref:data-type-integer` :Default: 1 - :Property: insertBelow :Data Type: :ref:`t3tsref:data-type-integer` :Default: 1 - :Property: maximumNumberOfLinks :Data Type: :ref:`t3tsref:data-type-integer` :Default: 10 - :Property: section :Data Type: :ref:`t3tsref:data-type-string` :Default: showResults FlexForm Configuration ^^^^^^^^^^^^^^^^^^^^^^ .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default - :Property: limit :Data Type: :ref:`t3tsref:data-type-integer` :Default: 25 - :Property: targetPid :Data Type: `t3tsref:data-type-page-id` :Default: - :Property: getTitle :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: getStructurePath :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: basketButton :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: targetBasket :Data Type: `t3tsref:data-type-page-id` :Default: Media Player ------------ The MediaPlayer plugin is only active if the selected document has valid audio or video file use groups (useGroupsAudio, useGroupsVideo). :typoscript:`plugin.tx_dlf_mediaplayer.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default :Description: Description - :Property: excludeOther :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 1 :Description: Show only documents from the selected page. - :Property: elementId :Data Type: :ref:`t3tsref:data-type-string` :Default: tx-dlf-media :Description: ID value of the HTML element for the media player. Metadata -------- :typoscript:`plugin.tx_dlf_metadata.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default :Description: Description - :Property: excludeOther :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 1 :Description: Show only documents from the selected page. - :Property: linkTitle :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 1 :Description: - :Property: targetPid :Data Type: `t3tsref:data-type-page-id` :Default: :Description: - :Property: getTitle :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 1 :Description: - :Property: showFull :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 1 :Description: - :Property: rootline :Data Type: :ref:`t3tsref:data-type-integer` :Default: 0 :Description: - :Property: separator :Data Type: :ref:`t3tsref:data-type-string` :Default: `#` :Description: Navigation ---------- This plugin adds a navigation to the page view for navigating through the pages of a document. The navigation buttons are displayed in the order included in configuration. Features `pagesBackward` and `pagesForward` offer adding multiple navigation buttons grouped together. TypoScript Configuration ^^^^^^^^^^^^^^^^^^^^^^^^ :typoscript:`plugin.tx_dlf_navigation.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default :Values: Values - :Property: features :Data Type: :ref:`t3tsref:data-type-string` :Default: By default all features are activated. The selection is stored as comma separated list. doublePage,pageFirst,pageBack,pageStepBack,pageSelect,pageForward,pageStepForward,pageLast,listView,measureForward,measureBack :Values: * doublePage * listView * measureBack * measureForward * pageBack * pageFirst * pageForward * pageLast * pageSelect * pageStepBack * pageStepForward * pagesBackward * pagesForward - :Property: pageStep :Data Type: :ref:`t3tsref:data-type-integer` :Default: 5 - :Property: targetPid :Data Type: `t3tsref:data-type-page-id` :Default: OAI-PMH ------- TypoScript Configuration ^^^^^^^^^^^^^^^^^^^^^^^^ :typoscript:`plugin.tx_dlf_oaipmh.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default - :Property: library :Data Type: :ref:`t3tsref:data-type-integer` :Default: - :Property: limit :Data Type: :ref:`t3tsref:data-type-integer` :Default: 5 - :Property: expired :Data Type: :ref:`t3tsref:data-type-integer` :Default: 1800 - :Property: show_userdefined :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: stylesheet :Data Type: :ref:`t3tsref:data-type-resource` :Default: 0 Page Grid --------- TypoScript Configuration ^^^^^^^^^^^^^^^^^^^^^^^^ :typoscript:`plugin.tx_dlf_pagegrid.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default - :Property: paginate.itemsPerPage :Data Type: :ref:`t3tsref:data-type-integer` :Default: 24 - :Property: placeholder :Data Type: :ref:`t3tsref:data-type-resource` :Default: Navigation.tmpl - :Property: targetPid :Data Type: `t3tsref:data-type-page-id` :Default: Page View --------- TypoScript Configuration ^^^^^^^^^^^^^^^^^^^^^^^^ :typoscript:`plugin.tx_dlf_pageview.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default :Description: Description - :Property: excludeOther :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 1 :Description: Show only documents from the selected page. - :Property: features :Data Type: `t3tsref:data-type-list` :Default: :Description: - :Property: elementId :Data Type: :ref:`t3tsref:data-type-string` :Default: tx-dlf-map :Description: ID value of the HTML element for the document images. - :Property: progressElementId :Data Type: :ref:`t3tsref:data-type-string` :Default: tx-dlf-page-progress :Description: ID value of the HTML element for the page progress bar. - :Property: crop :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 :Description: - :Property: useInternalProxy :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 :Description: - :Property: magnifier :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 :Description: - :Property: basketButton :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 :Description: - :Property: targetBasket :Data Type: `t3tsref:data-type-page-id` :Default: :Description: Search ------ TypoScript Configuration ^^^^^^^^^^^^^^^^^^^^^^^^ :typoscript:`plugin.tx_dlf_search.settings.list.paginate` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default - :Property: itemsPerPage :Data Type: :ref:`t3tsref:data-type-integer` :Default: 25 - :Property: insertAbove :Data Type: :ref:`t3tsref:data-type-integer` :Default: 1 - :Property: insertBelow :Data Type: :ref:`t3tsref:data-type-integer` :Default: 1 - :Property: maximumNumberOfLinks :Data Type: :ref:`t3tsref:data-type-integer` :Default: 10 - :Property: section :Data Type: :ref:`t3tsref:data-type-string` :Default: showResults FlexForm Configuration ^^^^^^^^^^^^^^^^^^^^^^ .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default - :Property: fulltext :Data Type: :ref:`t3tsref:data-type-boolean` :Default: - :Property: fulltextPreselect :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: datesearch :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: solrcore :Data Type: :ref:`t3tsref:data-type-integer` :Default: - :Property: limit :Data Type: :ref:`t3tsref:data-type-integer` :Default: 50000 - :Property: extendedSlotCount :Data Type: :ref:`t3tsref:data-type-integer` :Default: 0 - :Property: extendedFields :Data Type: :ref:`t3tsref:data-type-integer` :Default: 0 - :Property: searchIn :Data Type: :ref:`t3tsref:data-type-string` :Default: - :Property: collections :Data Type: `t3tsref:data-type-list` :Default: - :Property: facets :Data Type: `t3tsref:data-type-list` :Default: - :Property: limitFacets :Data Type: :ref:`t3tsref:data-type-integer` :Default: 15 - :Property: resetFacets :Data Type: :ref:`t3tsref:data-type-boolean` :Default: - :Property: sortingFacets :Data Type: :ref:`t3tsref:data-type-string` :Default: - :Property: suggest :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 1 - :Property: showSingleResult :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: targetPid :Data Type: `t3tsref:data-type-page-id` :Default: - :Property: targetPidPageView :Data Type: `t3tsref:data-type-page-id` :Default: 1 Statistics ---------- TypoScript Configuration ^^^^^^^^^^^^^^^^^^^^^^^^ :typoscript:`plugin.tx_dlf_statistics.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default - :Property: collections :Data Type: `t3tsref:data-type-list` :Default: - :Property: description :Data Type: :ref:`t3tsref:data-type-string` :Default: Table Of Contents ----------------- Table of Contents plugin renders a table of contents for the current document. The table of contents is generated based on the structure of the document. TypoScript Configuration ^^^^^^^^^^^^^^^^^^^^^^^^ :typoscript:`plugin.tx_dlf_tableofcontents.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default :Description: Description - :Property: excludeOther :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 1 :Description: Show only documents from the selected page. - :Property: basketButton :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: showFull :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 - :Property: targetBasket :Data Type: `t3tsref:data-type-page-id` :Default: - :Property: targetPid :Data Type: `t3tsref:data-type-page-id` :Default: - :Property: titleReplacement :Data Type: `t3tsref:data-type-list` :Default: 0 { type = issue fields = type,year } 1 { type = volume fields = type,volume } :Description: List containing types for which title should be replaced when the label is empty. The defined fields are used for replacement. Toolbox ------- Toolbox Plugin is a plugin which can be used to display a selection of tools for the current page. The available tools are configured in the TypoScript. 'tools' is a required property which must contain at least one of the supported tools. The plugin will only be rendered if at least one tool is configured and supported for the current page. TypoScript Configuration ^^^^^^^^^^^^^^^^^^^^^^^^ :typoscript:`plugin.tx_dlf_toolbox.settings.` .. t3-field-list-table:: :header-rows: 1 - :Property: Property :Data Type: Data type :Default: Default :Values: Values - :Property: tools :Data Type: `t3tsref:data-type-string` :Default: :Values: * annotationTool * audioVideoTool * fulltextDownloadTool * fulltextTool * imageDownloadTool * imageManipulationTool * modelDownloadTool * multiViewAddSourceTool * pdfDownloadTool * rotationtTool * searchIndocumentTool * scoreTool * zooomTool - :Property: showAsList :Data Type: :ref:`t3tsref:data-type-boolean` :Default: 0 :Values: 0: show tools as single
  • elements 1: show tools as list inside the