diff --git a/Classes/Controller/PageViewController.php b/Classes/Controller/PageViewController.php index 2d9122216..8fe4a01e8 100644 --- a/Classes/Controller/PageViewController.php +++ b/Classes/Controller/PageViewController.php @@ -493,20 +493,22 @@ protected function addViewerJS(): void $currentMeasureId = $docMeasures['measureCounterToMeasureId'][$this->requestData['docMeasure'][$i]]; } - $jsViewer .= 'tx_dlf_viewer[' . $i . '] = new dlfViewer({ - controls: ["' . implode('", "', $this->controls) . '"], - div: "tx-dfgviewer-map-' . $i . '", - progressElementId: "' . $this->settings['progressElementId'] . '", - counter: "' . $i . '", - images: ' . json_encode($docImage) . ', - fulltexts: ' . json_encode($docFulltext) . ', - score: ' . json_encode($docScore) . ', - annotationContainers: ' . json_encode($docAnnotationContainers) . ', - measureCoords: ' . json_encode($docMeasures['measureCoordsCurrentSite']) . ', - useInternalProxy: ' . ($this->settings['useInternalProxy'] ? 1 : 0) . ', - currentMeasureId: "' . $currentMeasureId . '", - measureIdLinks: ' . json_encode($docMeasures['measureLinks']) . ' - }); + $viewer = [ + 'controls' => $this->controls, + 'div' => "tx-dfgviewer-map-' . $i . '", + 'progressElementId' => $this->settings['progressElementId'], + 'counter' => $i, + 'images' => $docImage, + 'fulltexts' => $docFulltext, + 'score' => $docScore, + 'annotationContainers' => $docAnnotationContainers, + 'measureCoords' => $docMeasures['measureCoordsCurrentSite'], + 'useInternalProxy' => $this->settings['useInternalProxy'] ? 1 : 0, + 'currentMeasureId' => $currentMeasureId, + 'measureIdLinks' => $docMeasures['measureLinks'] + ]; + + $jsViewer .= 'tx_dlf_viewer[' . $i . '] = new dlfViewer(' . json_encode($viewer) . '); '; $i++; } @@ -528,23 +530,25 @@ protected function addViewerJS(): void $currentMeasureId = $docMeasures['measureCounterToMeasureId'][$this->requestData['measure']]; } + $viewer = [ + 'controls' => $this->controls, + 'div' => $this->settings['elementId'], + 'progressElementId' => $this->settings['progressElementId'], + 'images' => $this->images, + 'fulltexts' => $this->fulltexts, + 'score' => $this->scores, + 'annotationContainers' => $this->annotationContainers, + 'measureCoords' => $docMeasures['measureCoordsCurrentSite'], + 'useInternalProxy' => $this->settings['useInternalProxy'] ? 1 : 0, + 'verovioAnnotations' => $this->verovioAnnotations, + 'currentMeasureId' => $currentMeasureId, + 'measureIdLinks' => $docMeasures['measureLinks'] + ]; + // Viewer configuration. $viewerConfiguration = '$(document).ready(function() { if (dlfUtils.exists(dlfViewer)) { - tx_dlf_viewer = new dlfViewer({ - controls: ["' . implode('", "', $this->controls) . '"], - div: "' . $this->settings['elementId'] . '", - progressElementId: "' . $this->settings['progressElementId'] . '", - images: ' . json_encode($this->images) . ', - fulltexts: ' . json_encode($this->fulltexts) . ', - score: ' . json_encode($this->scores) . ', - annotationContainers: ' . json_encode($this->annotationContainers) . ', - measureCoords: ' . json_encode($docMeasures['measureCoordsCurrentSite']) . ', - useInternalProxy: ' . ($this->settings['useInternalProxy'] ? 1 : 0) . ', - verovioAnnotations: ' . json_encode($this->verovioAnnotations) . ', - currentMeasureId: "' . $currentMeasureId . '", - measureIdLinks: ' . json_encode($docMeasures['measureLinks']) . ' - }); + tx_dlf_viewer = new dlfViewer(' . json_encode($viewer) . '); } });'; } diff --git a/Configuration/FlexForms/Navigation.xml b/Configuration/FlexForms/Navigation.xml index 590122943..3f98c73c0 100644 --- a/Configuration/FlexForms/Navigation.xml +++ b/Configuration/FlexForms/Navigation.xml @@ -29,8 +29,8 @@ selectMultipleSideBySide - LLL:EXT:dlf/Resources/Private/Language/locallang_be.xlf:plugins.navigation.flexform.features.doublepage - doublepage + LLL:EXT:dlf/Resources/Private/Language/locallang_be.xlf:plugins.navigation.flexform.features.doublePage + doublePage LLL:EXT:dlf/Resources/Private/Language/locallang_be.xlf:plugins.navigation.flexform.features.pageFirst @@ -45,8 +45,8 @@ pageStepBack - LLL:EXT:dlf/Resources/Private/Language/locallang_be.xlf:plugins.navigation.flexform.features.pageselect - pageselect + LLL:EXT:dlf/Resources/Private/Language/locallang_be.xlf:plugins.navigation.flexform.features.pageSelect + pageSelect LLL:EXT:dlf/Resources/Private/Language/locallang_be.xlf:plugins.navigation.flexform.features.pageForward @@ -61,8 +61,8 @@ pageLast - LLL:EXT:dlf/Resources/Private/Language/locallang_be.xlf:plugins.navigation.flexform.features.listview - listview + LLL:EXT:dlf/Resources/Private/Language/locallang_be.xlf:plugins.navigation.flexform.features.listView + listView LLL:EXT:dlf/Resources/Private/Language/locallang_be.xlf:plugins.navigation.flexform.features.zoom @@ -81,7 +81,7 @@ measureBack - doublepage,pageFirst,pageBack,pageStepBack,pageselect,pageForward,pageStepForward,pageLast,listview,zoom,rotation,measureForward,measureBack + doublePage,pageFirst,pageBack,pageStepBack,pageSelect,pageForward,pageStepForward,pageLast,listView,zoom,rotation,measureForward,measureBack 1 @@ -89,7 +89,6 @@ 1 - FIELD:settings.features:IN:pagestep input @@ -101,7 +100,7 @@ 1 - FIELD:settings.features:IN:listview + FIELD:settings.features:IN:listView group diff --git a/Configuration/TypoScript/setup.typoscript b/Configuration/TypoScript/setup.typoscript index f97651ea9..120789456 100644 --- a/Configuration/TypoScript/setup.typoscript +++ b/Configuration/TypoScript/setup.typoscript @@ -5,7 +5,6 @@ plugin.tx_dlf { } settings { storagePid = {$plugin.tx_dlf.persistence.storagePid} - useInternalProxy = 1 } } diff --git a/Documentation/Plugins/Index.rst b/Documentation/Plugins/Index.rst index 6095d0723..b2b898218 100644 --- a/Documentation/Plugins/Index.rst +++ b/Documentation/Plugins/Index.rst @@ -542,7 +542,7 @@ Navigation :Default: By default all features are activated. The selection is stored as comma separated list. - doublepage,pageFirst,pageBack,pageStepBack,pageselect,pageForward,pageStepForward,pageLast,listview,zoom,rotation,measureForward,measureBack + doublePage,pageFirst,pageBack,pageStepBack,pageSelect,pageForward,pageStepForward,pageLast,litView,zoom,rotation,measureForward,measureBack - :Property: pageStep diff --git a/Resources/Private/Language/de.locallang_be.xlf b/Resources/Private/Language/de.locallang_be.xlf index a7f8a6415..779d0d3f4 100644 --- a/Resources/Private/Language/de.locallang_be.xlf +++ b/Resources/Private/Language/de.locallang_be.xlf @@ -253,11 +253,11 @@ - + - + @@ -285,7 +285,7 @@ - + diff --git a/Resources/Private/Language/locallang_be.xlf b/Resources/Private/Language/locallang_be.xlf index 421003682..7b215dcf1 100644 --- a/Resources/Private/Language/locallang_be.xlf +++ b/Resources/Private/Language/locallang_be.xlf @@ -197,13 +197,13 @@ - + - + - + diff --git a/Resources/Private/Templates/Navigation/Main.html b/Resources/Private/Templates/Navigation/Main.html index 224f3a844..3b1020388 100644 --- a/Resources/Private/Templates/Navigation/Main.html +++ b/Resources/Private/Templates/Navigation/Main.html @@ -20,7 +20,7 @@ One section for each feature. - + @@ -122,7 +122,7 @@ - +
  • @@ -200,7 +200,7 @@ - +