first commit
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
{**
|
||||
* @file plugins/importexport/doaj/index.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.
|
||||
*
|
||||
* List of operations this plugin can perform
|
||||
*}
|
||||
{extends file="layouts/backend.tpl"}
|
||||
|
||||
{block name="page"}
|
||||
<h1 class="app__pageHeading">
|
||||
{$pageTitle}
|
||||
</h1>
|
||||
|
||||
{if !empty($configurationErrors)}
|
||||
{assign var="allowExport" value=false}
|
||||
{else}
|
||||
{assign var="allowExport" value=true}
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
// Attach the JS file tab handler.
|
||||
$(function() {ldelim}
|
||||
$('#importExportTabs').pkpHandler('$.pkp.controllers.TabHandler');
|
||||
{rdelim});
|
||||
</script>
|
||||
<div id="importExportTabs">
|
||||
<ul>
|
||||
<li><a href="#settings-tab">{translate key="plugins.importexport.common.settings"}</a></li>
|
||||
{if $allowExport}
|
||||
<li><a href="#exportSubmissions-tab">{translate key="plugins.importexport.common.export.articles"}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
<div id="settings-tab">
|
||||
{if !$allowExport}
|
||||
<div class="pkp_notification" id="dataciteConfigurationErrors">
|
||||
{foreach from=$configurationErrors item=configurationError}
|
||||
{if $configurationError == $smarty.const.EXPORT_CONFIG_ERROR_SETTINGS}
|
||||
{include file="controllers/notification/inPlaceNotificationContent.tpl" notificationId=doajConfigurationErrors notificationStyleClass="notifyWarning" notificationTitle="plugins.importexport.common.missingRequirements"|translate notificationContents="plugins.importexport.common.error.pluginNotConfigured"|translate}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
<p><a href="http://www.doaj.org/application/new" target="_blank">{translate key="plugins.importexport.doaj.export.contact"}</a></p>
|
||||
{capture assign=doajSettingsGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.settings.plugins.settingsPluginGridHandler" op="manage" plugin="DOAJExportPlugin" category="importexport" verb="index" escape=false}{/capture}
|
||||
{load_url_in_div id="doajSettingsGridContainer" url=$doajSettingsGridUrl}
|
||||
</div>
|
||||
{if $allowExport}
|
||||
<div id="exportSubmissions-tab">
|
||||
<script type="text/javascript">
|
||||
$(function() {ldelim}
|
||||
// Attach the form handler.
|
||||
$('#exportSubmissionXmlForm').pkpHandler('$.pkp.controllers.form.FormHandler');
|
||||
{rdelim});
|
||||
</script>
|
||||
<form id="exportSubmissionXmlForm" class="pkp_form" action="{plugin_url path="exportSubmissions"}" method="post">
|
||||
{csrf}
|
||||
<input type="hidden" name="tab" value="exportSubmissions-tab" />
|
||||
{fbvFormArea id="submissionsXmlForm"}
|
||||
{capture assign=submissionsListGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.submissions.ExportPublishedSubmissionsListGridHandler" op="fetchGrid" plugin="doaj" category="importexport" escape=false}{/capture}
|
||||
{load_url_in_div id="submissionsListGridContainer" url=$submissionsListGridUrl}
|
||||
{fbvFormSection list="true"}
|
||||
{fbvElement type="checkbox" id="validation" label="plugins.importexport.common.validation" checked=$validation|default:true}
|
||||
{/fbvFormSection}
|
||||
{if !empty($actionNames)}
|
||||
{fbvFormSection}
|
||||
<ul class="export_actions">
|
||||
{foreach from=$actionNames key=action item=actionName}
|
||||
<li class="export_action">
|
||||
{fbvElement type="submit" label="$actionName" id="$action" name="$action" value="1" class="$action" translate=false inline=true}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/fbvFormSection}
|
||||
{/if}
|
||||
{/fbvFormArea}
|
||||
</form>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
@@ -0,0 +1,34 @@
|
||||
{**
|
||||
* plugins/importexport/doaj/templates/settingsForm.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.
|
||||
*
|
||||
* DOAJ plugin settings
|
||||
*
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
$(function() {ldelim}
|
||||
// Attach the form handler.
|
||||
$('#doajSettingsForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
|
||||
{rdelim});
|
||||
</script>
|
||||
<form class="pkp_form" id="doajSettingsForm" method="post" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="manage" plugin="DOAJExportPlugin" category="importexport" verb="save"}">
|
||||
{csrf}
|
||||
{fbvFormArea id="doajSettingsFormArea"}
|
||||
{fbvFormSection}
|
||||
<p class="pkp_help">{translate key="plugins.importexport.doaj.registrationIntro"}</p>
|
||||
{fbvElement type="text" id="apiKey" value=$apiKey label="plugins.importexport.doaj.settings.form.apiKey" maxlength="50" size=$fbvStyles.size.MEDIUM}
|
||||
<span class="instruct">{translate key="plugins.importexport.doaj.settings.form.apiKey.description"}</span><br/>
|
||||
{/fbvFormSection}
|
||||
{fbvFormSection list="true"}
|
||||
{fbvElement type="checkbox" id="automaticRegistration" label="plugins.importexport.doaj.settings.form.automaticRegistration.description" checked=$automaticRegistration|compare:true}
|
||||
{/fbvFormSection}
|
||||
{fbvFormSection list="true"}
|
||||
{fbvElement type="checkbox" id="testMode" label="plugins.importexport.doaj.settings.form.testMode.description" checked=$testMode|compare:true}
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
{fbvFormButtons submitText="common.save"}
|
||||
<p><span class="formRequired">{translate key="common.requiredField"}</span></p>
|
||||
</form>
|
||||
Reference in New Issue
Block a user