Skip to content

Commit

Permalink
Update version, copyright, and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhanson committed Feb 1, 2021
1 parent 2e70f8f commit 3c85b9d
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions AuthorRequirementsPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions AuthorRequirementsSettingsForm.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();
}
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,4 +17,4 @@
*/

require_once('AuthorRequirementsPlugin.inc.php');
return new AuthorRequirementsPlugin();
return new AuthorRequirementsPlugin();
4 changes: 2 additions & 2 deletions templates/common/userDetails.tpl
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions templates/controllers/grid/users/author/form/authorForm.tpl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions templates/settingsForm.tpl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<!--
* plugins/generic/authorRequirements/version.xml
*
* 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.
*
* Plugin version information.
Expand All @@ -13,8 +13,8 @@
<version>
<application>authorRequirements</application>
<type>plugins.generic</type>
<release>1.0.0.1</release>
<date>2020-02-26</date>
<release>1.0.1.0</release>
<date>2021-02-01</date>
<lazy-load>1</lazy-load>
<class>AuthorRequirementsPlugin</class>
</version>

0 comments on commit 3c85b9d

Please sign in to comment.