Skip to content

Commit d65cc42

Browse files
authored
Merge pull request #9 from bozana/6886
pkp/pkp-lib#6886 consider all journal references settings
2 parents e756c2b + bcad57c commit d65cc42

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CrossrefReferenceLinkingPlugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function crossrefCredentials($contextId) {
7575
function citationsEnabled($contextId) {
7676
$contextDao = Application::getContextDAO();
7777
$context = $contextDao->getById($contextId);
78-
return $context->getSetting('citations') == 'enable';
78+
return !empty($context->getSetting('citations'));
7979
}
8080

8181
/**

CrossrefReferenceLinkingSettingsForm.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function readInputData() {
8989
/**
9090
* @copydoc Form::fetch()
9191
*/
92-
function fetch($request) {
92+
function fetch($request, $template = NULL, $display = false) {
9393
$plugin = $this->_getPlugin();
9494
$contextId = $request->getContext()->getId();
9595
$dispatcher = $request->getDispatcher();
@@ -132,7 +132,7 @@ function fetch($request) {
132132
/**
133133
* @copydoc Form::execute()
134134
*/
135-
function execute($object = null) {
135+
function execute(...$functionArgs) {
136136
$plugin = $this->_getPlugin();
137137
$contextId = $this->_getContextId();
138138
foreach($this->getFormFields() as $fieldName => $fieldType) {

version.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<version>
1414
<application>crossrefReferenceLinking</application>
1515
<type>plugins.generic</type>
16-
<release>1.0.2.0</release>
17-
<date>2021-02-16</date>
16+
<release>1.0.2.1</release>
17+
<date>2021-03-27</date>
1818
<lazy-load>1</lazy-load>
1919
<sitewide>1</sitewide>
2020
<class>CrossrefReferenceLinkingPlugin</class>

0 commit comments

Comments
 (0)