Skip to content

Commit dce0a8c

Browse files
committed
Remove PHP close tags; documentation; code conventions cleanup
1 parent f88f4b6 commit dce0a8c

8 files changed

+27
-29
lines changed

CrossrefReferenceLinkingInfoSender.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ function _getJournals() {
8585
return $journals;
8686
}
8787
}
88-
?>
88+

CrossrefReferenceLinkingPlugin.inc.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,4 +503,3 @@ function _getResolvedRefs($doi, $contextId) {
503503

504504
}
505505

506-
?>

CrossrefReferenceLinkingSettingsForm.inc.php

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,18 @@
1313
* @brief Form for journal managers to setup the reference linking plugin
1414
*/
1515

16-
1716
import('lib.pkp.classes.form.Form');
1817

1918
class CrossrefReferenceLinkingSettingsForm extends Form {
20-
2119
//
2220
// Private properties
2321
//
2422
/** @var integer */
2523
var $_contextId;
2624

27-
/**
28-
* Get the context ID.
29-
* @return integer
30-
*/
31-
function _getContextId() {
32-
return $this->_contextId;
33-
}
34-
3525
/** @var CrossrefReferenceLinkingPlugin */
3626
var $_plugin;
3727

38-
/**
39-
* Get the plugin.
40-
* @return CrossrefReferenceLinkingPlugin
41-
*/
42-
function _getPlugin() {
43-
return $this->_plugin;
44-
}
45-
46-
4728
//
4829
// Constructor
4930
//
@@ -65,6 +46,24 @@ function __construct($plugin, $contextId) {
6546
$this->addCheck(new FormValidatorCSRF($this));
6647
}
6748

49+
//
50+
// Public methods
51+
//
52+
/**
53+
* Get the context ID.
54+
* @return integer
55+
*/
56+
function _getContextId() {
57+
return $this->_contextId;
58+
}
59+
60+
/**
61+
* Get the plugin.
62+
* @return CrossrefReferenceLinkingPlugin
63+
*/
64+
function _getPlugin() {
65+
return $this->_plugin;
66+
}
6867

6968
//
7069
// Implement template methods from Form
@@ -165,7 +164,5 @@ function getFormFields() {
165164
function isOptional($settingName) {
166165
return in_array($settingName, array('automaticRegistration', 'testMode'));
167166
}
168-
169167
}
170168

171-
?>

README

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ OJS 3.1.2
2020

2121
Installation
2222
------------
23+
There are three ways of installing the plugin:
24+
* Plugin Gallery
25+
* Access your journal's plugin gallery as Site Administrator and install the plugin there.
26+
* Manual installation (not recommended)
2327
* Copy the release source or unpack the release package into the OJS plugins/generic/crossrefReferenceLinking/ folder.
2428
* Run `php tools/upgrade.php upgrade` from the OJS folder.
2529
* Go to Settings -> Website -> Plugins -> Generic Plugin -> Crossref Reference Linking Plugin and enable the plugin.
@@ -35,4 +39,4 @@ Crossref provides funding to support the development of the version 1.0 of this
3539
Contact/Support
3640
---------------
3741
Documentation, bug listings, and updates can be found on this plugin's homepage
38-
at <http://github.com/pkp/crossrefReferenceLinkign>.
42+
at <http://github.com/pkp/crossrefReferenceLinkign>.

index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@
1919

2020
return new CrossrefReferenceLinkingPlugin();
2121

22-
?>

templates/settingsForm.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
<p>{translate key="plugins.generic.crossrefReferenceLinking.settings.form.requirements.ok"}</p>
2626
{/if}
2727
</div>
28-
</form>
28+

tools/checkCrossrefReferencesDOIs.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,3 @@ function execute() {
9797

9898
$tool = new CrossrefReferencesDOIsTool(isset($argv) ? $argv : array());
9999
$tool->execute();
100-
?>

version.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<application>crossrefReferenceLinking</application>
1515
<type>plugins.generic</type>
1616
<release>1.0.0.0</release>
17-
<date>2019-01-22</date>
17+
<date>2019-03-27</date>
1818
<lazy-load>1</lazy-load>
1919
<sitewide>1</sitewide>
2020
<class>CrossrefReferenceLinkingPlugin</class>
21-
</version>
21+
</version>

0 commit comments

Comments
 (0)