| Server IP : 195.134.90.114 / Your IP : 216.73.217.79 Web Server : Apache/2.4.58 System : Linux nepub 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/public_html/plugins/generic/pdfJsViewer/templates/ |
Upload File : |
{**
* plugins/generic/pdfJsViewer/templates/display.tpl
*
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Embedded viewing of a PDF galley.
*}
<!DOCTYPE html>
<html lang="{$currentLocale|replace:"_":"-"}" xml:lang="{$currentLocale|replace:"_":"-"}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$defaultCharset|escape}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{translate key="article.pageTitle" title=$title|escape}</title>
{load_header context="frontend" headers=$headers}
{load_stylesheet context="frontend" stylesheets=$stylesheets}
{load_script context="frontend" scripts=$scripts}
</head>
<body class="pkp_page_{$requestedPage|escape} pkp_op_{$requestedOp|escape}">
{* Header wrapper *}
<header class="header_view">
<a href="{$parentUrl}" class="return">
<span class="pkp_screen_reader">
{if $parent instanceOf Issue}
{translate key="issue.return"}
{else}
{translate key="article.return"}
{/if}
</span>
</a>
<a href="{$parentUrl}" class="title">
{$title|escape}
</a>
<a href="{$pdfUrl}" class="download" download>
<span class="label">
{translate key="common.download"}
</span>
<span class="pkp_screen_reader">
{translate key="common.downloadPdf"}
</span>
</a>
</header>
<script type="text/javascript">
// Creating iframe's src in JS instead of Smarty so that EZProxy-using sites can find our domain in $pdfUrl and do their rewrites on it.
$(document).ready(function() {ldelim}
var urlBase = "{$pluginUrl}/pdf.js/web/viewer.html?file=";
var pdfUrl = {$pdfUrl|json_encode:JSON_UNESCAPED_SLASHES};
$("#pdfCanvasContainer > iframe").attr("src", urlBase + encodeURIComponent(pdfUrl));
{rdelim});
</script>
<div id="pdfCanvasContainer" class="galley_view{if !$isLatestPublication} galley_view_with_notice{/if}">
{if !$isLatestPublication}
<div class="galley_view_notice">
<div class="galley_view_notice_message" role="alert">
{$datePublished}
</div>
</div>
{/if}
<iframe src="" width="100%" height="100%" style="min-height: 500px;" title="{$galleyTitle}" allow="fullscreen" webkitallowfullscreen="webkitallowfullscreen"></iframe>
</div>
{call_hook name="Templates::Common::Footer::PageFooter"}
</body>
</html>