Skip to content

Commit

Permalink
pkp/pkp-lib#3691 Fix HTML galley display and support default HTML gal…
Browse files Browse the repository at this point in the history
…ley styles
  • Loading branch information
NateWr committed Jan 31, 2019
1 parent 25a2c3d commit b574831
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function viewCallback($hookName, $params) {
'publicationFormat' => $publicationFormat,
'downloadFile' => $submissionFile,
));
$templateMgr->display($this->getTemplatePath() . '/display.tpl');
$templateMgr->display($this->getTemplateResource('display.tpl'));
return true;
}

Expand Down Expand Up @@ -166,6 +166,9 @@ function _getHTMLContents($request, $monograph, $publicationFormat, $submissionF
$contents
);

$templateMgr = TemplateManager::getManager($request);
$contents = $templateMgr->loadHtmlGalleyStyles($contents, $embeddableFiles);

// Perform variable replacement for press, publication format, site info
$press = $request->getPress();
$site = $request->getSite();
Expand Down Expand Up @@ -224,5 +227,3 @@ function _handleOmpUrl($matchArray) {
return $matchArray[1] . $url . $matchArray[3];
}
}


0 comments on commit b574831

Please sign in to comment.