Skip to content

Commit

Permalink
#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 bb06717 commit eec13bb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
use APP\plugins\importexport\native\NativeImportExportDeployment;
use APP\publication\Publication;
use Exception;
use PKP\controlledVocab\ControlledVocab;
use PKP\citation\CitationDAO;
use PKP\controlledVocab\ControlledVocab;
use PKP\db\DAORegistry;
use PKP\filter\FilterGroup;
use PKP\plugins\importexport\PKPImportExportFilter;
Expand Down Expand Up @@ -215,16 +215,14 @@ public function addMetadata($doc, $entityNode, $entity)

// add controlled vocabularies
// get the supported locale keys
$supportedLocales = $deployment->getContext()->getSupportedFormLocales();
$controlledVocabulariesMapping = $this->_getControlledVocabulariesMappings();
foreach ($controlledVocabulariesMapping as $controlledVocabulariesNodeName => $mappings) {
$symbolic = $mappings[0];
$controlledVocabularyNodeName = $mappings[1];
$controlledVocabulary = Repo::controlledVocab()->getBySymbolic(
$symbolic,
Application::ASSOC_TYPE_PUBLICATION,
$entity->getId(),
$supportedLocales
$entity->getId()
);
$this->addControlledVocabulary($doc, $entityNode, $controlledVocabulariesNodeName, $controlledVocabularyNodeName, $controlledVocabulary);
}
Expand Down

0 comments on commit eec13bb

Please sign in to comment.