Skip to content

Commit

Permalink
pkp#8663 Dropped language attribute from publications at the Native X…
Browse files Browse the repository at this point in the history
…ML plugin
  • Loading branch information
jonasraoni committed Feb 20, 2023
1 parent 4b64ae0 commit b89cb37
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ function createEntityNode($doc, $entity) {
$isPublished = $entity->getData('status') === STATUS_PUBLISHED;
$isPublished ? $entityNode->setAttribute('seq', (int) $entity->getData('seq')) : $entityNode->setAttribute('seq', '0');

$entityLanguages = $entity->getData('languages');
if ($entityLanguages) {
$entityNode->setAttribute('language', $entityLanguages);
}

if ($datePublished = $entity->getData('datePublished')) {
$entityNode->setAttribute('date_published', strftime('%Y-%m-%d', strtotime($datePublished)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ function createSubmissionNode($doc, $submission) {
$workflowStageDao = DAORegistry::getDAO('WorkflowStageDAO'); /** @var $workflowStageDao WorkflowStageDAO */
$submissionNode->setAttribute('stage', WorkflowStageDAO::getPathFromId($submission->getData('stageId')));

// FIXME: language attribute (from old DTD). Necessary? Data migration needed?
$this->addIdentifiers($doc, $submissionNode, $submission);
$this->addFiles($doc, $submissionNode, $submission);
$this->addPublications($doc, $submissionNode, $submission);
Expand Down

0 comments on commit b89cb37

Please sign in to comment.