diff --git a/src/components/Play.jsx b/src/components/Play.jsx index cde819c..f9527f5 100644 --- a/src/components/Play.jsx +++ b/src/components/Play.jsx @@ -13,6 +13,7 @@ import NetworkGraph from './NetworkGraph'; import RelationsGraph from './RelationsGraph'; import SpeechDistribution, {SpeechDistributionNav} from './SpeechDistribution'; import TEIPanel from './TEIPanel'; +import ToolsTab from './ToolsTab'; import PlayMetrics from './PlayMetrics'; import Segments from './Segments'; @@ -36,6 +37,7 @@ const navItems = [ {name: 'speech', label: 'Speech distribution'}, {name: 'text', label: 'Full text'}, {name: 'downloads', label: 'Downloads'}, + {name: 'tools', label: 'Tools'}, ]; const tabNames = new Set(navItems.map((item) => item.name)); @@ -155,6 +157,14 @@ const PlayInfo = ({corpusId, playId}) => { .
); + } else if (tab === 'tools') { + tabContent =+ This tab provides links to third-party tools. The selected text layer + will be loaded from the DraCor API for external analysis. +
+ ); } else { tabContent =+ The connected DraCor API does not seem to + be publicly accessible. The external tools need to be able to access + the respective endpoints of the API. +
+ )} + + {isAccessible && ( + <> ++ Text layer for analysis:{' '} + {' '} + {' '} + +
+