first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-06-08 17:09:23 -04:00
commit df3a033196
17887 changed files with 8637778 additions and 0 deletions
@@ -0,0 +1,23 @@
{**
* plugins/generic/lensGalley/articleGalley.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Embedded viewing of a JATS XML galley.
*}
{include file="frontend/components/header.tpl" pageTitleTranslated=$article->getLocalizedTitle()|escape}
<div class="page">
{capture assign="xmlUrl"}{strip}
{if $isLatestPublication}
{url op="download" path=$bestId|to_array:$galley->getBestGalleyId($currentJournal):$galleyFile->getId() escape=false}
{else}
{url op="download" path=$bestId|to_array:'version':$galleyPublication->getId():$galley->getBestGalleyId($currentJournal):$galleyFile->getId() escape=false}
{/if}
{/strip}{/capture}
{include file=$displayTemplatePath xmlUrl=$xmlUrl}
</div>
{include file="frontend/components/footer.tpl"}
@@ -0,0 +1,28 @@
{**
* plugins/generic/lensGalley/display.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Embedded viewing of a JATS XML galley.
*}
<script src="{$jQueryUrl}"></script>
<script src="{$pluginLensPath}/lens.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript">{literal}
var linkElement = document.createElement("link");
linkElement.rel = "stylesheet";
linkElement.href = "{/literal}{$pluginLensPath|escape:"javascript"}{literal}/lens.css"; //Replace here
document.head.appendChild(linkElement);
$(document).ready(function(){
var app = new Lens({
document_url: "{/literal}{$xmlUrl|escape:'javascript'}{literal}"
});
app.start();
window.app = app;
});
{/literal}</script>
@@ -0,0 +1,17 @@
{**
* plugins/generic/lensGalley/issueGalley.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Embedded viewing of a JATS XML galley.
*}
{include file="frontend/components/header.tpl" pageTitleTranslated=$issue->getIssueSeries()|escape}
<div class="page">
{capture assign="xmlUrl"}{url op="download" path=$issue->getBestIssueId($currentJournal)|to_array:$galley->getBestGalleyId($currentJournal) escape=false}{/capture}
{include file=$displayTemplateResource xmlUrl=$xmlUrl}
</div>
{include file="frontend/components/footer.tpl"}