Skip to content

Commit ff77e0f

Browse files
authored
Merge pull request #7 from bozana/i6071
pkp/pkp-lib#6071 fix copyright year, readme, function description, ve…
2 parents 8aa8248 + 5577467 commit ff77e0f

11 files changed

+30
-25
lines changed

CrossrefReferenceLinkingInfoSender.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/**
44
* @file CrossrefReferenceLinkingInfoSender.php
55
*
6-
* Copyright (c) 2013-2020 Simon Fraser University
7-
* Copyright (c) 2003-2020 John Willinsky
6+
* Copyright (c) 2013-2021 Simon Fraser University
7+
* Copyright (c) 2003-2021 John Willinsky
88
* Distributed under the GNU GPL v3. For full terms see the file LICENSE.
99
*
1010
* @class CrossrefReferenceLinkingInfoSender

CrossrefReferenceLinkingPlugin.inc.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/**
44
* @file CrossrefReferenceLinkingPlugin.inc.php
55
*
6-
* Copyright (c) 2013-2020 Simon Fraser University
7-
* Copyright (c) 2003-2020 John Willinsky
6+
* Copyright (c) 2013-2021 Simon Fraser University
7+
* Copyright (c) 2003-2021 John Willinsky
88
* Distributed under the GNU GPL v3. For full terms see the file LICENSE.
99
*
1010
* @class CrossrefReferenceLinkingPlugin
@@ -333,6 +333,11 @@ function citationsChanged($hookName, $params) {
333333
/**
334334
* A certain submission is being checked for reference linking
335335
* Used every time the publication is being published.
336+
* This only applies/makes sense when:
337+
* 1) the publication is published
338+
* 2) Crossref DOIs for the article deposited
339+
* 3) the publication unpublished and then published again.
340+
*
336341
* @param $hookName string Publication::publish
337342
* @param $params array [
338343
* @option Publication The newPublication after it's published

CrossrefReferenceLinkingSettingsForm.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/**
44
* @file CrossrefReferenceLinkingSettingsForm.inc.php
55
*
6-
* Copyright (c) 2014-2020 Simon Fraser University
7-
* Copyright (c) 2003-2020 John Willinsky
6+
* Copyright (c) 2014-2021 Simon Fraser University
7+
* Copyright (c) 2003-2021 John Willinsky
88
* Distributed under the GNU GPL v3. For full terms see the file LICENSE.
99
*
1010
* @class CrossrefReferenceLinkingSettingsForm

README

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
=============================================================
22
=== CrossrefReferenceLinking plugin
3-
=== Version: 1.0.1
3+
=== Version: 1.0.2
44
=============================================================
55

66

77
About
88
-----
9-
This plugin will automatically add the extracted article references to the DOI registration with Crossref. Crossref will then automatically check if any DOIs can be found for the submitted references. Shortly after that, the user can use the plugin to check for the found references DOIs. If article references change once they are registered, the article DOI with the new references will have to be registered anew. Then the check for the found references DOIs will be done again.
9+
This plugin will automatically add the extracted article references to the DOI registration with Crossref. Crossref will then automatically check if any DOIs can be found for the submitted references. Shortly after that, using the scheduled task, the plugin will check for the found references DOIs. If article references change once they are registered, the article DOI with the new references will have to be registered anew. Then the check for the found references DOIs will be done again.
1010
This plugin requires Crossref DOIs to be assigned to articles, article references to be separately entered and extracted, as well as article DOIs to be deposited to Crossref from within OJS. It uses the Crossref Export/Registration plugin settings: Crossref credentials (username and password), as well as the setting for the testing mode.
1111

1212
License
@@ -16,13 +16,13 @@ LICENSE for the complete terms of this license.
1616

1717
System Requirements
1818
-------------------
19-
OJS 3.2
19+
OJS 3.3
2020

2121
Installation
2222
------------
2323
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.
24+
* Plugin Gallery:
25+
* Access your journal's plugin gallery as Site Administrator and install the plugin there.
2626
* Manual installation (not recommended):
2727
* Copy the release source or unpack the release package into the OJS plugins/generic/crossrefReferenceLinking/ folder.
2828
* Run `php tools/upgrade.php upgrade` from the OJS folder.

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
/**
88
* @file index.php
99
*
10-
* Copyright (c) 2013-2020 Simon Fraser University
11-
* Copyright (c) 2003-2020 John Willinsky
10+
* Copyright (c) 2013-2021 Simon Fraser University
11+
* Copyright (c) 2003-2021 John Willinsky
1212
* Distributed under the GNU GPL v3. For full terms see the file LICENSE.
1313
*
1414
* @ingroup plugins_generic_crossrefReferenceLinking

locale/en_US/locale.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ msgid "plugins.generic.crossrefReferenceLinking.description"
1818
msgstr "This plugin submits article references to Crossref when a DOI is registered and automatically displays DOIs for references found in Crossref's database."
1919

2020
msgid "plugins.generic.crossrefReferenceLinking.description.long"
21-
msgstr "This plugin will automatically add the extracted article references to the DOI registration with Crossref. Crossref will then automatically check if any DOIs can be found for the submitted references. Shortly after that, you can use the plugin to check for the found references DOIs"
21+
msgstr "This plugin will automatically add the extracted article references to the DOI registration with Crossref. Crossref will then automatically check if any DOIs can be found for the submitted references. Using the scheduled task the plugin will then check for the found references DOIs."
2222

2323
msgid "plugins.generic.crossrefReferenceLinking.description.note"
2424
msgstr "If you change an article's references after registering the DOI, you will need to register the article's DOI again and check again for the article references' DOIs."

scheduledTasks.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<!--
44
* scheduledTasks.xml
55
*
6-
* Copyright (c) 2013-2020 Simon Fraser University
7-
* Copyright (c) 2003-2020 John Willinsky
6+
* Copyright (c) 2013-2021 Simon Fraser University
7+
* Copyright (c) 2003-2021 John Willinsky
88
* Distributed under the GNU GPL v3. For full terms see the file LICENSE.
99
*
1010
* CrossrefReferenceLinking Plugin scheduled task

templates/displayDOI.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{**
22
* templates/displayDOI.tpl
33
*
4-
* Copyright (c) 2014-2020 Simon Fraser University
5-
* Copyright (c) 2003-2020 John Willinsky
4+
* Copyright (c) 2014-2021 Simon Fraser University
5+
* Copyright (c) 2003-2021 John Willinsky
66
* Distributed under the GNU GPL v3. For full terms see the file LICENSE.
77
*
88
* Display reference DOI on the article metadata (backend) and article view page (frontend)

templates/settingsForm.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{**
22
* templates/settingsForm.tpl
33
*
4-
* Copyright (c) 2014-2020 Simon Fraser University
5-
* Copyright (c) 2003-2020 John Willinsky
4+
* Copyright (c) 2014-2021 Simon Fraser University
5+
* Copyright (c) 2003-2021 John Willinsky
66
* Distributed under the GNU GPL v3. For full terms see the file LICENSE.
77
*
88
* CrossrefReferenceLinking plugin settings

tools/checkCrossrefReferencesDOIs.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/**
44
* @file tools/checkCrossrefReferencesDOIs.php
55
*
6-
* Copyright (c) 2014-2020 Simon Fraser University
7-
* Copyright (c) 2003-2020 John Willinsky
6+
* Copyright (c) 2014-2021 Simon Fraser University
7+
* Copyright (c) 2003-2021 John Willinsky
88
* Distributed under the GNU GPL v3. For full terms see the file LICENSE.
99
*
1010
* @class CrossrefReferencesDOIsTool
@@ -85,7 +85,7 @@ function execute() {
8585
continue;
8686
}
8787
$plugin = PluginRegistry::loadPlugin('generic', 'crossrefReferenceLinking', $submission->getContextId());
88-
$plugin->getCrossrefReferencesDOIs($submission);
88+
$plugin->getCrossrefReferencesDOIs($submission->getCurrentPublication());
8989
}
9090
break;
9191
default:

0 commit comments

Comments
 (0)