Skip to content

Commit

Permalink
pkp/pkp-lib#10292 removed extended vocab classes
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Aug 26, 2024
1 parent e78a892 commit 76c807f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions classes/ArticleFront.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
use APP\submission\Submission;
use PKP\plugins\PluginRegistry;
use APP\publication\Publication;
use PKP\controlledVocab\ControlledVocab;
use PKP\submissionFile\SubmissionFile;
use PKP\submission\SubmissionKeywordVocab;

class ArticleFront extends \DOMDocument
{
Expand Down Expand Up @@ -284,7 +284,14 @@ function createArticleMeta(Submission $submission, Journal $journal, Section $se
->appendChild($this->createElement('self-uri'))
->setAttribute('xlink:href', $url);

foreach (SubmissionKeywordVocab::getKeywords($publication->getId(), $journal->getSupportedSubmissionLocales()) as $locale => $keywords) {
$keywordVocabs = Repo::controlledVocab()->getBySymbolic(
ControlledVocab::CONTROLLED_VOCAB_SUBMISSION_KEYWORD,
Application::ASSOC_TYPE_PUBLICATION,
$publication->getId(),
$journal->getSupportedSubmissionLocales()
);

foreach ($keywordVocabs as $locale => $keywords) {
if (empty($keywords)) continue;

$kwdGroupElement = $articleMetaElement
Expand Down

0 comments on commit 76c807f

Please sign in to comment.