Skip to content

Commit 841c384

Browse files
[MAINTENANCE] Split Toolbox templates (kitodo#1807)
Co-authored-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
1 parent 1cd4fb8 commit 841c384

13 files changed

+425
-229
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<f:comment>
2+
<!--
3+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
4+
*
5+
* This file is part of the Kitodo and TYPO3 projects.
6+
*
7+
* @license GNU General Public License version 3 or later.
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
-->
11+
</f:comment>
12+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
13+
data-namespace-typo3-fluid="true">
14+
15+
<li>
16+
<span class="tx-dlf-tools-annotations">
17+
<f:if condition="{annotationTool}">
18+
<f:then>
19+
<a class="select switchoff" id="tx-dlf-tools-annotations" title="" data-dic="annotations-on:{f:translate(key: 'tools.annotation.on')};annotations-off:{f:translate(key: 'tools.annotation.off')}">
20+
<f:format.html>&nbsp;</f:format.html>
21+
</a>
22+
</f:then>
23+
<f:else>
24+
<span class="no-annotations">
25+
<f:translate key="tools.annotation.not-available"/>
26+
</span>
27+
</f:else>
28+
</f:if>
29+
</span>
30+
</li>
31+
32+
</html>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<f:comment>
2+
<!--
3+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
4+
*
5+
* This file is part of the Kitodo and TYPO3 projects.
6+
*
7+
* @license GNU General Public License version 3 or later.
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
-->
11+
</f:comment>
12+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
13+
data-namespace-typo3-fluid="true">
14+
15+
<f:if condition="{settings.isVideo} == 1">
16+
<li class="tx_dlf_audiovideotool tx-dlf-tools-videomediaplayer" id="tx-dlf-tools-videomediaplayer" data-tool="videomediaplayer">
17+
<a href="#" class="button-videomediaplayer" title="{f:translate(key: 'tools.audiovideotool.videomediaplayer')}">
18+
<f:translate key="tools.audiovideotool.videomediaplayer"/>
19+
</a>
20+
</li>
21+
</f:if>
22+
<f:if condition="{settings.constants.showAudioLabelImage} == 1 && {settings.isAudio} == 1 && {hasAudioLabelImage}">
23+
<li class="tx_dlf_audiovideotool tx-dlf-tools-audiolabelimage" id="tx-dlf-tools-audiolabelimage" data-tool="audiolabelimage">
24+
<a href="#" class="button-audiolabelimage" title="{f:translate(key: 'tools.audiovideotool.audiolabelimage')}">
25+
<f:translate key="tools.audiovideotool.audiolabelimage"/>
26+
</a>
27+
</li>
28+
</f:if>
29+
<li class="tx_dlf_audiovideotool tx-dlf-tools-equalizer" id="tx-dlf-tools-equalizer" data-tool="equalizer">
30+
<a href="#" class="button-equalizer" title="{f:translate(key: 'tools.audiovideotool.equalizer')}">
31+
<f:translate key="tools.audiovideotool.equalizer"/>
32+
</a>
33+
</li>
34+
<li class="tx_dlf_audiovideotool tx-dlf-tools-markertable" id="tx-dlf-tools-markertable" data-tool="markertable">
35+
<a href="#" class="button-markertable" title="{f:translate(key: 'tools.audiovideotool.markertable')}">
36+
<f:translate key="tools.audiovideotool.markertable"/>
37+
</a>
38+
</li>
39+
40+
</html>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<f:comment>
2+
<!--
3+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
4+
*
5+
* This file is part of the Kitodo and TYPO3 projects.
6+
*
7+
* @license GNU General Public License version 3 or later.
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
-->
11+
</f:comment>
12+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
13+
data-namespace-typo3-fluid="true">
14+
15+
<li>
16+
<span class="tx-dlf-tools-fulltextdownload">
17+
<f:if condition="{fulltextDownload}">
18+
<f:then>
19+
<a href="#" id="tx-dlf-tools-fulltextdownload" title="{f:translate(key: 'tools.fulltextdownload.download-current-page')}">
20+
<f:translate key="tools.fulltextdownload.download-current-page"/>
21+
</a>
22+
</f:then>
23+
<f:else>
24+
<span class="no-fulltext">
25+
<f:translate key="tools.fulltext.not-available"/>
26+
</span>
27+
</f:else>
28+
</f:if>
29+
</span>
30+
</li>
31+
32+
</html>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<f:comment>
2+
<!--
3+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
4+
*
5+
* This file is part of the Kitodo and TYPO3 projects.
6+
*
7+
* @license GNU General Public License version 3 or later.
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
-->
11+
</f:comment>
12+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
13+
data-namespace-typo3-fluid="true">
14+
15+
<li>
16+
<span class="tx-dlf-tools-fulltext">
17+
<f:if condition="{fulltext}">
18+
<f:then>
19+
<a class="select switchoff" id="tx-dlf-tools-fulltext" title=""
20+
data-dic="fulltext:{f:translate(key: 'tools.fulltext')};fulltext-loading:{f:translate(key: 'tools.fulltext.loading')};fulltext-on:{f:translate(key: 'tools.fulltext.on')};fulltext-off:{f:translate(key: 'tools.fulltext.off')};activate-full-text-initially:{activateFullTextInitially};full-text-scroll-element:{settings.fullTextScrollElement};search-hl-parameters:{settings.searchHlParameters}">
21+
&nbsp;
22+
</a>
23+
</f:then>
24+
<f:else>
25+
<span class="no-fulltext">
26+
<f:translate key="tools.fulltext.not-available"/>
27+
</span>
28+
</f:else>
29+
</f:if>
30+
</span>
31+
</li>
32+
33+
</html>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<f:comment>
2+
<!--
3+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
4+
*
5+
* This file is part of the Kitodo and TYPO3 projects.
6+
*
7+
* @license GNU General Public License version 3 or later.
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
-->
11+
</f:comment>
12+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
13+
data-namespace-typo3-fluid="true">
14+
15+
<li>
16+
<span class="tx-dlf-tools-imagedownload">
17+
<f:if condition="{double} === 0">
18+
<f:then>
19+
<f:link.external uri="{imageDownload.0.url}">
20+
<f:translate key="downloadSinglePage" /> {imageDownload.0.mimetypeLabel}
21+
</f:link.external>
22+
</f:then>
23+
<f:else>
24+
<f:link.external uri="{imageDownload.0.url}">
25+
<f:translate key="downloadLeftPage" /> {imageDownload.0.mimetypeLabel}
26+
</f:link.external>
27+
<f:if condition="{imageDownload.1}">
28+
<f:then>
29+
<span class="tx-dlf-tools-imagedownload">
30+
<f:link.external uri="{imageDownload.1.url}">
31+
<f:translate key="downloadRightPage" /> {imageDownload.1.mimetypeLabel}
32+
</f:link.external>
33+
</span>
34+
</f:then>
35+
</f:if>
36+
</f:else>
37+
</f:if>
38+
</span>
39+
</li>
40+
41+
</html>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<f:comment>
2+
<!--
3+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
4+
*
5+
* This file is part of the Kitodo and TYPO3 projects.
6+
*
7+
* @license GNU General Public License version 3 or later.
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
-->
11+
</f:comment>
12+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
13+
data-namespace-typo3-fluid="true">
14+
15+
<li>
16+
<span class="tx-dlf-tools-imagetools" id="tx-dlf-tools-imagetools" data-dic="imagemanipulation-on:{f:translate(key: 'tools.imagemanipulation.on')};imagemanipulation-off:{f:translate(key: 'tools.imagemanipulation.off')};reset:{f:translate(key: 'tools.imagemanipulation.reset')};saturation:{f:translate(key: 'tools.imagemanipulation.saturation')};hue:{f:translate(key: 'tools.imagemanipulation.hue')};contrast:{f:translate(key: 'tools.imagemanipulation.contrast')};brightness:{f:translate(key: 'tools.imagemanipulation.brightness')};invert:{f:translate(key: 'tools.imagemanipulation.invert')};parentContainer:{parentContainer}" title="{f:translate(key: 'tools.imagemanipulation.no-support')}">
17+
</span>
18+
</li>
19+
20+
</html>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<f:comment>
2+
<!--
3+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
4+
*
5+
* This file is part of the Kitodo and TYPO3 projects.
6+
*
7+
* @license GNU General Public License version 3 or later.
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
-->
11+
</f:comment>
12+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
13+
data-namespace-typo3-fluid="true">
14+
15+
<li>
16+
<span class="tx-dlf-tools-modeldownload">
17+
<f:link.external uri="{modelUrl}">
18+
<f:translate key="downloadModel"/>
19+
</f:link.external>
20+
</span>
21+
</li>
22+
23+
</html>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<f:comment>
2+
<!--
3+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
4+
*
5+
* This file is part of the Kitodo and TYPO3 projects.
6+
*
7+
* @license GNU General Public License version 3 or later.
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
-->
11+
</f:comment>
12+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
13+
data-namespace-typo3-fluid="true">
14+
15+
<a href="#" title="{f:translate(key:'tools.multiviewaddsource.label', extensionName:'dlf')}">{f:translate(key:'tools.multiviewaddsource.label', extensionName:'dlf')}</a>
16+
<form class="multiViewAddSource" >
17+
<p class="add-document-description">{f:translate(key:'tools.multiviewaddsource.description', extensionName:'dlf')}</p>
18+
<label for="location-field">{f:translate(key:'tools.multiviewaddsource.label', extensionName:'dlf')}</label>
19+
<f:form.textfield property="location" id="location-field" placeholder="{f:translate(key:'tools.multiviewaddsource.placeholder', extensionName:'dlf')}" required="required" />
20+
<f:form.button>{f:translate(key:'tools.multiviewaddsource.submit', extensionName:'dlf')}</f:form.button>
21+
</form>
22+
23+
</html>
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<f:comment>
2+
<!--
3+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
4+
*
5+
* This file is part of the Kitodo and TYPO3 projects.
6+
*
7+
* @license GNU General Public License version 3 or later.
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
-->
11+
</f:comment>
12+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
13+
data-namespace-typo3-fluid="true">
14+
15+
<li>
16+
<span class="tx-dlf-tools-pdf-page">
17+
<f:if condition="{double} === 0">
18+
<f:then>
19+
<f:link.external uri="{pageLinks.0}">
20+
<f:translate key="downloadSinglePage" /> (PDF)
21+
</f:link.external>
22+
</f:then>
23+
<f:else>
24+
<f:link.external uri="{pageLinks.0}">
25+
<f:translate key="downloadLeftPage" /> (PDF)
26+
</f:link.external>
27+
<f:if condition="{pageLinks.1}">
28+
<f:then>
29+
<f:link.external uri="{pageLinks.1}">
30+
<f:translate key="downloadRightPage" /> (PDF)
31+
</f:link.external>
32+
</f:then>
33+
</f:if>
34+
</f:else>
35+
</f:if>
36+
</span>
37+
<span class="tx-dlf-tools-pdf-work">
38+
<f:if condition="{workLink}">
39+
<f:then>
40+
<f:link.external uri="{workLink}">
41+
<f:translate key="downloadWork"/> (PDF)
42+
</f:link.external>
43+
</f:then>
44+
</f:if>
45+
</span>
46+
<span class="tx-dlf-tools-score">
47+
<f:if condition="{scoreLinks}">
48+
<f:then>
49+
<a href="#" id="tx-dlf-score-midi-download" class="download-document">
50+
<f:translate key="mididownload"/>
51+
(MIDI)
52+
</a>
53+
<a href="#" id="tx-dlf-score-download" class="download-document">
54+
<f:translate key="scoredownload"/>
55+
(PDF)
56+
</a>
57+
</f:then>
58+
</f:if>
59+
</span>
60+
</li>
61+
62+
</html>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<f:comment>
2+
<!--
3+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
4+
*
5+
* This file is part of the Kitodo and TYPO3 projects.
6+
*
7+
* @license GNU General Public License version 3 or later.
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
-->
11+
</f:comment>
12+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
13+
data-namespace-typo3-fluid="true">
14+
15+
<li class="score">
16+
<a class="select switchoff" id="tx-dlf-tools-score-0" title="">
17+
<f:translate key="tools.score"/>
18+
</a>
19+
</li>
20+
<li class="score">
21+
<a id="tx-dlf-tools-score-midi" <f:if condition="{scoreMidiPlayerSoundFont}">data-midi-player-sound-font="{scoreMidiPlayerSoundFont}"</f:if>>
22+
<f:translate key="tools.score.player"/>
23+
</a>
24+
</li>
25+
26+
</html>

0 commit comments

Comments
 (0)