From: Vincent Vanwaelscappel Date: Thu, 7 Sep 2023 14:19:04 +0000 (+0200) Subject: wip #6188 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fa8be29cb925bdd69ef2f07e77d2863b26bf03c8;p=fluidbook-toolbox.git wip #6188 --- diff --git a/app/Models/FluidbookDocument.php b/app/Models/FluidbookDocument.php index 75a309c8f..7ec5a3927 100644 --- a/app/Models/FluidbookDocument.php +++ b/app/Models/FluidbookDocument.php @@ -380,7 +380,8 @@ class FluidbookDocument extends ToolboxModel public function _getHightlightFilePath($page, $mode = 'standard') { - return $this->path('texts/p' . $page . '.fby'); + $dir = $mode !== 'standard' ? '/' . $mode : ''; + return $this->path('texts' . $dir . '/p' . $page . '.fby'); } public function _getTextPath($page, $type = self::TEXT_PLAIN, $mode = 'standard', $extractionMethod = 'fluidbook', $ignoreSeparators = '') @@ -391,7 +392,8 @@ class FluidbookDocument extends ToolboxModel } $prefix = self::_getTextFilePrefix($extractionMethod); - return $this->path('texts/' . $sepFolder . $prefix . $type . $page . '.txt'); + $dir = $mode !== 'standard' ? '/' . $mode : ''; + return $this->path('texts/' . $dir . $sepFolder . $prefix . $type . $page . '.txt'); } public function getPDFSource($type = 'crop'): string