Skip to content

Commit

Permalink
Merge pull request #8664 from jonasraoni/bugfix/stable-3_3_0/8663-dro…
Browse files Browse the repository at this point in the history
…p-language-attribute

#8663 Dropped language attribute from publications at the …
  • Loading branch information
jonasraoni committed Feb 28, 2023
2 parents 907e085 + 48267b4 commit 0318f52
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 0318f52

Please sign in to comment.