Skip to content

Commit bb944f8

Browse files
committed
Merge branch 'fix_keywords_load-i1181' into 'main'
Fixes keyword loading See merge request softwares-pkp/plugins_ojs/keywordCloud!14
2 parents f4b9908 + f00d17a commit bb944f8

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

KeywordCloudBlockPlugin.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414

1515
namespace APP\plugins\blocks\keywordCloud;
1616

17+
use APP\core\Application;
1718
use APP\facades\Repo;
18-
use PKP\controlledVocab\ControlledVocab;
1919
use APP\submission\Submission;
20-
use PKP\context\Context;
2120
use Illuminate\Support\Facades\Cache;
22-
use PKP\db\DAORegistry;
21+
use PKP\context\Context;
22+
use PKP\controlledVocab\ControlledVocab;
2323
use PKP\facades\Locale;
2424
use PKP\plugins\BlockPlugin;
25-
use APP\core\Application;
2625

2726
class KeywordCloudBlockPlugin extends BlockPlugin
2827
{
@@ -107,7 +106,7 @@ private function getJournalKeywords(int $journalId, string $locale): string
107106
$keywords = array_merge($keywords, $publicationKeywords[$locale] ?? []);
108107
}
109108

110-
$uniqueKeywords = array_unique(array_map('strtolower', $keywords));
109+
$uniqueKeywords = array_unique(array_map('strtolower', array_column($keywords, 'name')));
111110
$countKeywords = array_count_values($uniqueKeywords);
112111
arsort($countKeywords, SORT_NUMERIC);
113112

version.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<version>
1414
<application>keywordCloud</application>
1515
<type>plugins.blocks</type>
16-
<release>3.0.0.1</release>
17-
<date>2025-11-11</date>
16+
<release>3.0.0.2</release>
17+
<date>2026-04-29</date>
1818
<lazy-load>1</lazy-load>
1919
<class>KeywordCloudBlockPlugin</class>
2020
</version>

0 commit comments

Comments
 (0)