-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c62691
commit 2b78aa7
Showing
8 changed files
with
505 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
73 changes: 73 additions & 0 deletions
73
Resources/Private/Plugins/Kitodo/Partials/TableOfContents/Children.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<f:comment> | ||
<!-- | ||
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org> | ||
* | ||
* This file is part of the Kitodo and TYPO3 projects. | ||
* | ||
* @license GNU General Public License version 3 or later. | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
--> | ||
</f:comment> | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<f:for each="{children}" as="child"> | ||
<f:switch expression="{child.ITEM_STATE}"> | ||
<f:case value="ACT"> | ||
<li class="tx-dlf-toc-act"> | ||
</f:case> | ||
<f:case value="CUR"> | ||
<li class="tx-dlf-toc-cur"> | ||
</f:case> | ||
<f:case value="ACTIFSUB"> | ||
<li class="tx-dlf-toc-act tx-dlf-toc-ifsub"> | ||
</f:case> | ||
<f:case value="CURIFSUB"> | ||
<li class="tx-dlf-toc-cur tx-dlf-toc-ifsub"> | ||
</f:case> | ||
<f:case value="IFSUB"> | ||
<li class="tx-dlf-toc-no tx-dlf-toc-ifsub"> | ||
</f:case> | ||
<f:defaultCase> | ||
<li class="tx-dlf-toc-no"> | ||
</f:defaultCase> | ||
</f:switch> | ||
|
||
<f:if condition="{child.doNotLinkIt}"> | ||
<f:then> | ||
<f:render partial="TableOfContents/Title" arguments="{child: child}"/> | ||
</f:then> | ||
<f:else> | ||
<f:link.action | ||
action="main" | ||
pageUid="{settings.targetPid}" | ||
additionalParams="{f:if(condition:'{child.id}', then:'{\'tx_dlf[id]\':child.id, \'tx_dlf[page]\':child.page}', else: '{\'tx_dlf[page]\':child.page}')}" | ||
addQueryString="1" | ||
title="{f:if(condition:'{child.title}', then: '{child.title}', else: '{child.type}')}"> | ||
<f:render partial="TableOfContents/Title" arguments="{child: child}"/> | ||
</f:link.action> | ||
</f:else> | ||
</f:if> | ||
|
||
<f:if condition="{settings.basketButton} && {settings.targetBasket}"> | ||
<span class="tx-dlf-basket-button"> | ||
<f:link.action | ||
pageUid="{settings.targetBasket}" | ||
action="main" | ||
controller="Basket" | ||
additionalParams="{'tx_dlf[addToBasket]':'toc', 'tx_dlf[logId]':child.basketButton.logId, 'tx_dlf[startpage]':child.basketButton.startpage, 'tx_dlf_basket[action]':'add', 'tx_dlf_basket[controller]':'Basket'}" | ||
addQueryString="1"> | ||
<f:translate key="AddToBasket" /> | ||
</f:link.action> | ||
</span> | ||
</f:if> | ||
|
||
<f:if condition="{child._SUB_MENU} && ({child.ITEM_STATE} == 'IFSUB' || {child.ITEM_STATE} == 'ACTIFSUB' || {child.ITEM_STATE} == 'CURIFSUB')"> | ||
<ul> | ||
<f:render partial="TableOfContents/Children" arguments="{children: child._SUB_MENU}"/> | ||
</ul> | ||
</f:if> | ||
|
||
</li> | ||
</f:for> |
17 changes: 17 additions & 0 deletions
17
Resources/Private/Plugins/Kitodo/Partials/TableOfContents/Filter.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<f:comment> | ||
<!-- | ||
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org> | ||
* | ||
* This file is part of the Kitodo and TYPO3 projects. | ||
* | ||
* @license GNU General Public License version 3 or later. | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
--> | ||
</f:comment> | ||
<f:form action="filter" controller="TableOfContents" name="filterParameter" method="get" class="tx-dlf-filter-form"> | ||
<label for="tx-dlf-filter-title"> | ||
Title | ||
</label> | ||
<f:form.textfield id="tx-dlf-filter-title" name="title" /> | ||
</f:form> |
25 changes: 25 additions & 0 deletions
25
Resources/Private/Plugins/Kitodo/Partials/TableOfContents/Model.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<f:comment> | ||
<!-- | ||
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org> | ||
* | ||
* This file is part of the Kitodo and TYPO3 projects. | ||
* | ||
* @license GNU General Public License version 3 or later. | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
--> | ||
</f:comment> | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<div class="tx-dlf-toc-preview-item"> | ||
<f:link.page | ||
pageUid="{settings.targetPid}" | ||
additionalParams="{'id': model.urlId, 'tx_dlf[id]': model.urlXml}" | ||
title="{f:if(condition:'{model.title}', then: '{model.title}', else: '{model.type}')}"> | ||
<span class="tx-dlf-toc-title">{model.title}</span> | ||
<br> | ||
<img class="tx-dlf-toc-preview-image" src="{model.image}" alt="{model.title}"> | ||
<span class="tx-dlf-toc-description">{model.description}</span> | ||
</f:link.page> | ||
</div> |
31 changes: 31 additions & 0 deletions
31
Resources/Private/Plugins/Kitodo/Partials/TableOfContents/Models.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<f:comment> | ||
<!-- | ||
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org> | ||
* | ||
* This file is part of the Kitodo and TYPO3 projects. | ||
* | ||
* @license GNU General Public License version 3 or later. | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
--> | ||
</f:comment> | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<f:for each="{models}" as="model"> | ||
<f:if condition="{model._SUB_MENU} && ({model.ITEM_STATE} == 'HEADER')"> | ||
<f:then> | ||
<h2> | ||
<f:render partial="TableOfContents/Title" arguments="{child: model}"/> | ||
</h2> | ||
<f:render partial="TableOfContents/Filter"/> | ||
<div class="tx-dlf-toc-preview-items"> | ||
<f:render partial="TableOfContents/Models" arguments="{models: model._SUB_MENU}"/> | ||
</div> | ||
</f:then> | ||
<f:else> | ||
<f:render partial="TableOfContents/Model" arguments="{model: model}"/> | ||
</f:else> | ||
</f:if> | ||
|
||
</f:for> |
26 changes: 26 additions & 0 deletions
26
Resources/Private/Plugins/Kitodo/Partials/TableOfContents/Title.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<f:comment> | ||
<!-- | ||
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org> | ||
* | ||
* This file is part of the Kitodo and TYPO3 projects. | ||
* | ||
* @license GNU General Public License version 3 or later. | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
--> | ||
</f:comment> | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<span class="tx-dlf-toc-title"> | ||
<f:if condition="{child.title}"> | ||
<f:then> | ||
<f:format.crop maxCharacters="55" append=" ..."><f:format.htmlspecialchars doubleEncode="false">{child.title}</f:format.htmlspecialchars></f:format.crop> | ||
</f:then> | ||
<f:else> | ||
<f:format.crop maxCharacters="55" append=" ..."><f:format.htmlspecialchars doubleEncode="false">{child.type}</f:format.htmlspecialchars><f:if condition="{entry.volume}"> <f:format.htmlspecialchars doubleEncode="false">{child.volume}</f:format.htmlspecialchars></f:if></f:format.crop> | ||
</f:else> | ||
</f:if> | ||
</span> | ||
|
||
<span class="tx-dlf-toc-pagination"><f:format.htmlspecialchars doubleEncode="false">{child.pagination}</f:format.htmlspecialchars></span> |
28 changes: 28 additions & 0 deletions
28
Resources/Private/Plugins/Kitodo/Templates/TableOfContents/Main.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<f:comment> | ||
<!-- | ||
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org> | ||
* | ||
* This file is part of the Kitodo and TYPO3 projects. | ||
* | ||
* @license GNU General Public License version 3 or later. | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
--> | ||
</f:comment> | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<f:if condition="{type} == 'collection'"> | ||
<f:then> | ||
<div class="tx-dlf-toc-preview"> | ||
<f:render partial="TableOfContents/Models" arguments="{models: toc}"/> | ||
</div> | ||
</f:then> | ||
<f:else> | ||
<div class="tx-dlf-tableofcontents"> | ||
<ul> | ||
<f:render partial="TableOfContents/Children" arguments="{children: toc}"/> | ||
</ul> | ||
</div> | ||
</f:else> | ||
</f:if> |