Skip to content

Commit

Permalink
pkp/pkp-lib#10726 consider all existing submission metadata langauges
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Jan 9, 2025
1 parent 7582a77 commit 9a1d350
Showing 1 changed file with 2 additions and 5 deletions.
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 9a1d350

Please sign in to comment.