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 Dec 17, 2024
1 parent 2fb914a commit 3a1ea62
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugins/metadata/dc11/filter/Dc11SchemaPreprintAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
use APP\plugins\PubIdPlugin;
use APP\submission\Submission;
use PKP\db\DAORegistry;
use PKP\facades\Locale;
use PKP\metadata\MetadataDataObjectAdapter;
use PKP\metadata\MetadataDescription;
use PKP\plugins\Hook;
Expand Down Expand Up @@ -92,10 +91,9 @@ public function &extractMetadataFromDataObject(&$submission)
$submissionKeywordDao = DAORegistry::getDAO('SubmissionKeywordDAO');
/** @var SubmissionSubjectDAO */
$submissionSubjectDao = DAORegistry::getDAO('SubmissionSubjectDAO');
$supportedLocales = array_keys(Locale::getSupportedFormLocales());
$subjects = array_merge_recursive(
(array) $submissionKeywordDao->getKeywords($publication->getId(), $supportedLocales),
(array) $submissionSubjectDao->getSubjects($publication->getId(), $supportedLocales)
(array) $submissionKeywordDao->getKeywords($publication->getId()),
(array) $submissionSubjectDao->getSubjects($publication->getId())
);
$this->_addLocalizedElements($dc11Description, 'dc:subject', $subjects);

Expand Down

0 comments on commit 3a1ea62

Please sign in to comment.