Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CrossrefReferenceLinkingPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function crossrefCredentials($contextId) {
function citationsEnabled($contextId) {
$contextDao = Application::getContextDAO();
$context = $contextDao->getById($contextId);
return $context->getSetting('citations') == 'enable';
return !empty($context->getSetting('citations'));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions CrossrefReferenceLinkingSettingsForm.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function readInputData() {
/**
* @copydoc Form::fetch()
*/
function fetch($request) {
function fetch($request, $template = NULL, $display = false) {
$plugin = $this->_getPlugin();
$contextId = $request->getContext()->getId();
$dispatcher = $request->getDispatcher();
Expand Down Expand Up @@ -132,7 +132,7 @@ function fetch($request) {
/**
* @copydoc Form::execute()
*/
function execute($object = null) {
function execute(...$functionArgs) {
$plugin = $this->_getPlugin();
$contextId = $this->_getContextId();
foreach($this->getFormFields() as $fieldName => $fieldType) {
Expand Down
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<version>
<application>crossrefReferenceLinking</application>
<type>plugins.generic</type>
<release>1.0.2.0</release>
<date>2021-02-16</date>
<release>1.0.2.1</release>
<date>2021-03-27</date>
<lazy-load>1</lazy-load>
<sitewide>1</sitewide>
<class>CrossrefReferenceLinkingPlugin</class>
Expand Down