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,32 @@
{**
* plugins/importexport/native/templates/innerResults.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.
*
* Result of operations this plugin performed
*}
{if $key == 'warnings'}
{assign var=translateTitleKey value="plugins.importexport.common.warningsEncountered"}
{elseif $key == 'errors'}
{assign var=translateTitleKey value="plugins.importexport.common.errorsOccured"}
{/if}
{if array_key_exists($key, $errorsAndWarnings) && $errorsAndWarnings.$key|@count > 0}
<h2>{translate key=$translateTitleKey}</h2>
{foreach from=$errorsAndWarnings.$key item=allRelatedTypes key=relatedTypeName}
{foreach from=$allRelatedTypes item=thisTypeIds key=thisTypeId}
{if $thisTypeIds|@count > 0}
<p>{$relatedTypeName|escape} {if $thisTypeId > 0} {translate key='plugins.importexport.common.id' id=$thisTypeId} {/if}</p>
<ul>
{foreach from=$thisTypeIds item=idRelatedItems}
{foreach from=$idRelatedItems item=relatedItemMessage}
<li>{$relatedItemMessage|escape}</li>
{/foreach}
{/foreach}
</ul>
{/if}
{/foreach}
{/foreach}
{/if}
@@ -0,0 +1,44 @@
{**
* plugins/importexport/native/templates/resultsExport.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.
*
* Result of operations this plugin performed
*}
{if $errorsFound}
{translate key="plugins.importexport.native.processFailed"}
{else}
{translate key="plugins.importexport.native.export.completed"}
{translate key="plugins.importexport.native.export.completed.downloadFile"}
{assign var="uuid" value=""|uniqid|escape}
<div id="exportIssues-tab-{$uuid}">
<script type="text/javascript">
$(function() {ldelim}
// Attach the form handler.
$('#exportIssuesXmlFormDownload-{$uuid}').pkpHandler('$.pkp.controllers.form.FormHandler');
{rdelim});
</script>
<form id="exportIssuesXmlFormDownload-{$uuid}" class="pkp_form" action="{plugin_url path="downloadExportFile"}" method="post">
{csrf}
<input type="hidden" name="exportedFileDatePart" id="exportedFileDatePart-{$uuid}" value="{$exportedFileDatePart|escape}" />
<input type="hidden" name="exportedFileContentNamePart" id="exportedFileContentNamePart-{$uuid}" value="{$exportedFileContentNamePart|escape}" />
{fbvFormArea id="issuesXmlForm-{$uuid}"}
{fbvFormButtons submitText="plugins.importexport.native.export.download.results" hideCancel="true"}
{/fbvFormArea}
</form>
</div>
{/if}
{include file='core:plugins/importexport/innerResults.tpl' key='warnings' errorsAndWarnings=$errorsAndWarnings}
{include file='core:plugins/importexport/innerResults.tpl' key='errors' errorsAndWarnings=$errorsAndWarnings}
{if $validationErrors}
<h2>{translate key="plugins.importexport.common.validationErrors"}</h2>
<ul>
{foreach from=$validationErrors item=validationError}
<li>{$validationError->message|escape}</li>
{/foreach}
</ul>
{/if}
@@ -0,0 +1,38 @@
{**
* plugins/importexport/native/templates/resultsImport.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.
*
* Result of operations this plugin performed
*}
{if $errorsFound}
{translate key="plugins.importexport.native.processFailed"}
{else}
{translate key="plugins.importexport.native.importComplete"}
<ul>
{foreach from=$importedRootObjects item=contentItemArrays key=contentItemName}
<b>{$contentItemName|escape}</b>
{foreach from=$contentItemArrays item=contentItemArray}
{foreach from=$contentItemArray item=contentItem}
<li>
{$contentItem->getUIDisplayString()|escape}
</li>
{/foreach}
{/foreach}
{/foreach}
</ul>
{/if}
{include file='core:plugins/importexport/innerResults.tpl' key='warnings' errorsAndWarnings=$errorsAndWarnings}
{include file='core:plugins/importexport/innerResults.tpl' key='errors' errorsAndWarnings=$errorsAndWarnings}
{if $validationErrors}
<h2>{translate key="plugins.importexport.common.validationErrors"}</h2>
<ul>
{foreach from=$validationErrors item=validationError}
<li>{$validationError->message|escape}</li>
{/foreach}
</ul>
{/if}