From 3c85b9df831bc19fbf849a6a51aef2e28b338ee8 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Mon, 1 Feb 2021 08:29:58 -0800 Subject: [PATCH] Update version, copyright, and formatting --- AuthorRequirementsPlugin.inc.php | 4 ++-- AuthorRequirementsSettingsForm.inc.php | 12 ++++++------ README.md | 2 +- index.php | 8 ++++---- templates/common/userDetails.tpl | 4 ++-- .../grid/users/author/form/authorForm.tpl | 4 ++-- templates/settingsForm.tpl | 4 ++-- version.xml | 8 ++++---- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/AuthorRequirementsPlugin.inc.php b/AuthorRequirementsPlugin.inc.php index 05a9a82..28e30ca 100644 --- a/AuthorRequirementsPlugin.inc.php +++ b/AuthorRequirementsPlugin.inc.php @@ -3,8 +3,8 @@ /** * @file plugins/generic/authorRequirements/authorRequirementsPlugin.inc.php * - * Copyright (c) 2014-2020 Simon Fraser University - * Copyright (c) 2003-2020 John Willinsky + * 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. * * @class authorRequirementsPlugin diff --git a/AuthorRequirementsSettingsForm.inc.php b/AuthorRequirementsSettingsForm.inc.php index cbc5cfb..4c3edd1 100644 --- a/AuthorRequirementsSettingsForm.inc.php +++ b/AuthorRequirementsSettingsForm.inc.php @@ -3,8 +3,8 @@ /** * @file plugins/generic/authorRequirements/AuthorRequirementsSettingsForm.inc.php * - * Copyright (c) 2014-2020 Simon Fraser University - * Copyright (c) 2003-2020 John Willinsky + * 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. * * @class AuthorRequirementsSettingsForm @@ -43,7 +43,7 @@ function __construct($plugin, $contextId) { public function initData() { $contextId = $this->_contextId; $plugin = $this->_plugin; - + $this->setData('emailOptional', $plugin->getSetting($contextId, 'emailOptional')); parent::initData(); } @@ -73,8 +73,8 @@ public function fetch($request) { public function execute() { $plugin = $this->_plugin; $contextId = $this->_contextId; - + $plugin->updateSetting($contextId, 'emailOptional', $this->getData('emailOptional'), 'bool'); return parent::execute(); - } -} \ No newline at end of file + } +} diff --git a/README.md b/README.md index fd590ae..c02af72 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Install this as a "generic" plugin in OJS or OMP. The preferred installation met ## Configuration -The plugin allows certain author fields that are normally required to be optional. Optional fields may be selected on the plugin settings page. Currently author emails are the only field that can be made optional using this plugin. Others may be added in the future. +The plugin allows certain author fields that are normally required to be optional. Optional fields may be selected on the plugin settings page. Currently, author emails are the only field that can be made optional using this plugin. Others may be added in the future. ## Usage diff --git a/index.php b/index.php index e5cd0b7..b2dbfd4 100644 --- a/index.php +++ b/index.php @@ -3,12 +3,12 @@ /** * @defgroup plugins_generic_authorRequirements Author Requirements Plugin */ - + /** * @file plugins/generic/authorRequirements/index.php * - * Copyright (c) 2014-2020 Simon Fraser University - * Copyright (c) 2003-2020 John Willinsky + * 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. * * @ingroup plugins_generic_authorRequirements @@ -17,4 +17,4 @@ */ require_once('AuthorRequirementsPlugin.inc.php'); -return new AuthorRequirementsPlugin(); \ No newline at end of file +return new AuthorRequirementsPlugin(); diff --git a/templates/common/userDetails.tpl b/templates/common/userDetails.tpl index 8bf3df6..889bd8b 100644 --- a/templates/common/userDetails.tpl +++ b/templates/common/userDetails.tpl @@ -1,8 +1,8 @@ {** * plugins/generic/authorRequirements/templates/common/userDetails.tpl * - * Copyright (c) 2014-2020 Simon Fraser University - * Copyright (c) 2003-2020 John Willinsky + * 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. * * Common user details form. diff --git a/templates/controllers/grid/users/author/form/authorForm.tpl b/templates/controllers/grid/users/author/form/authorForm.tpl index de665c6..8d73a63 100644 --- a/templates/controllers/grid/users/author/form/authorForm.tpl +++ b/templates/controllers/grid/users/author/form/authorForm.tpl @@ -1,8 +1,8 @@ {** * plugins/generic/authorRequirements/templates/controllers/grid/users/author/form/authorForm.tpl * - * Copyright (c) 2014-2020 Simon Fraser University - * Copyright (c) 2003-2020 John Willinsky + * 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. * * Submission Contributor grid form diff --git a/templates/settingsForm.tpl b/templates/settingsForm.tpl index 9df9889..b1da5d9 100644 --- a/templates/settingsForm.tpl +++ b/templates/settingsForm.tpl @@ -1,8 +1,8 @@ {** * plugins/generic/authorRequirements/templates/settingsForm.tpl * - * Copyright (c) 2014-2020 Simon Fraser University - * Copyright (c) 2003-2020 John Willinsky + * 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. * * Author requirements plugin settings diff --git a/version.xml b/version.xml index 1e81f1c..ac8c2d4 100644 --- a/version.xml +++ b/version.xml @@ -3,8 +3,8 @@