Skip to content

Commit

Permalink
Merge pull request #1789 from bozana/10726
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10726 consider all existing submission metadata langauges
  • Loading branch information
bozana authored Jan 9, 2025
2 parents 7582a77 + 008b2b6 commit 38cfbb8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plugins/generic/citationStyleLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,16 @@ public function extractMetadataFromDataObject(&$publicationFormat)
}

// Subject
$supportedLocales = array_keys(Locale::getSupportedFormLocales());
$subjects = array_merge_recursive(
Repo::controlledVocab()->getBySymbolic(
ControlledVocab::CONTROLLED_VOCAB_SUBMISSION_KEYWORD,
Application::ASSOC_TYPE_PUBLICATION,
$publication->getId(),
$supportedLocales
$publication->getId()
),
Repo::controlledVocab()->getBySymbolic(
ControlledVocab::CONTROLLED_VOCAB_SUBMISSION_SUBJECT,
Application::ASSOC_TYPE_PUBLICATION,
$publication->getId(),
$supportedLocales
$publication->getId()
)
);
$this->_addLocalizedElements($dc11Description, 'dc:subject', $subjects);
Expand Down

0 comments on commit 38cfbb8

Please sign in to comment.