Skip to content
Open
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: 2 additions & 0 deletions CrossrefReferenceLinkingInfoSender.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function executeActions() {
$journals = $this->_getJournals();

foreach ($journals as $journal) {
// load pubIds for this journal
PluginRegistry::loadCategory('pubIds', true, $journal->getId());
// Call the plugin register function, in order to be able to save the new article and citation settings in the DB
$plugin->register('generic', $plugin->getPluginPath(), $journal->getId());
// Get published articles to check
Expand Down
6 changes: 6 additions & 0 deletions tools/checkCrossrefReferencesDOIs.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function execute() {
case 'all':
$contexts = $contextDao->getAll();
while ($context = $contexts->next()) {
// load pubIds for this journal
PluginRegistry::loadCategory('pubIds', true, $context->getId());
$plugin = PluginRegistry::loadPlugin('generic', 'crossrefReferenceLinking', $context->getId());
// Get published articles to check
$submissionsToCheck = $plugin->getSubmissionsToCheck($context);
Expand All @@ -69,6 +71,8 @@ function execute() {
printf("Error: Skipping $contextId. Unknown context.\n");
continue;
}
// load pubIds for this journal
PluginRegistry::loadCategory('pubIds', true, $context->getId());
$plugin = PluginRegistry::loadPlugin('generic', 'crossrefReferenceLinking', $context->getId());
// Get published articles to check
$submissionsToCheck = $plugin->getSubmissionsToCheck($context);
Expand All @@ -84,6 +88,8 @@ function execute() {
printf("Error: Skipping $submissionId. Unknown submission.\n");
continue;
}
// load pubIds for this journal
PluginRegistry::loadCategory('pubIds', true, $submission->getContextId());
$plugin = PluginRegistry::loadPlugin('generic', 'crossrefReferenceLinking', $submission->getContextId());
$plugin->getCrossrefReferencesDOIs($submission->getCurrentPublication());
}
Expand Down