Skip to content

Commit 0b33891

Browse files
[BUGFIX] Move fulltext container placed inside the map container (kitodo#1890)
Co-authored-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
1 parent 42b6fcd commit 0b33891

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

Documentation/Plugins/Index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ The default behavior is to show the fulltext after click on the toggle link. The
12771277
:Default:
12781278
html, body
12791279

1280-
The fulltext is fetched and rendered by JavaScript into the `<div id="tx-dlf-fulltextselection">` of the pageview plugin.
1280+
The fulltext is fetched and rendered by JavaScript into the `<div id="tx-dlf-toolbox-fulltext-selection">` of the pageview plugin.
12811281

12821282
**Please note**: To allow JavaScript fetching the fulltext, the `CORS headers <https://en.wikipedia.org/wiki/Cross-origin_resource_sharing>`_ must be configured appropriate on the providing webserver.
12831283

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
2+
xmlns:kitodo="http://typo3.org/ns/Kitodo/Dlf/ViewHelpers"
3+
data-namespace-typo3-fluid="true">
4+
5+
<f:comment>
6+
<!--
7+
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
8+
*
9+
* This file is part of the Kitodo and TYPO3 projects.
10+
*
11+
* @license GNU General Public License version 3 or later.
12+
* For the full copyright and license information, please read the
13+
* LICENSE.txt file that was distributed with this source code.
14+
-->
15+
</f:comment>
16+
17+
<div class="tx-dlf-toolbox-fulltext-container">
18+
<div id="tx-dlf-toolbox-fulltext-selection"></div>
19+
</div>
20+
21+
</html>

Resources/Private/Templates/PageView/Main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
data-namespace-typo3-fluid="true">
1515

1616
<div id="tx-dlf-map" class="tx-dlf-map" data-dic="overview-map:{f:translate(key: 'pageview.overview-map')}">
17-
<div id="tx-dlf-fulltextselection"></div>
1817
<div id="tx-dlf-annotationselection"></div>
1918
</div>
2019
<div id="ov_map"></div>
20+
<f:render partial="PageView/FulltextContainer" arguments="{_all}" />
2121

2222
<f:if condition="{settings.basketButton} && {settings.targetBasket}">
2323
<f:if condition="{settings.basket.crop}">

Resources/Public/JavaScript/PageView/FulltextControl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var dlfViewerFullTextControl = function(map) {
9393
'fulltext-on':'Activate Fulltext',
9494
'fulltext-off':'Deactivate Fulltext',
9595
'activate-full-text-initially':'0',
96-
'full-text-scroll-element':'#tx-dlf-fulltextselection'};
96+
'full-text-scroll-element':'#tx-dlf-toolbox-fulltext-selection'};
9797

9898
/**
9999
* @private

0 commit comments

Comments
 (0)