Skip to content

Commit

Permalink
Merge pull request #829 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 d3ee033 + 3960783 commit 449fede
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugins/generic/citationStyleLanguage
8 changes: 2 additions & 6 deletions plugins/metadata/dc11/filter/Dc11SchemaPreprintAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use APP\submission\Submission;
use PKP\controlledVocab\ControlledVocab;
use PKP\db\DAORegistry;
use PKP\facades\Locale;
use PKP\metadata\MetadataDataObjectAdapter;
use PKP\metadata\MetadataDescription;
use PKP\plugins\Hook;
Expand Down Expand Up @@ -87,19 +86,16 @@ public function &extractMetadataFromDataObject(&$submission)
}

// 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 449fede

Please sign in to comment.