Set sequence of article in table of contents.
public setSequence ( $seq ) | ||
$seq | float |
/** * Class-specific methods for published submissions. * @param PublishedArticle $submission * @param DOMElement $node * @return PublishedArticle */ function populatePublishedSubmission($submission, $node) { $deployment = $this->getDeployment(); $issue = $deployment->getIssue(); $submission->setSequence($node->getAttribute('seq')); $submission->setAccessStatus($node->getAttribute('access_status')); $submission->setIssueId($issue->getId()); return $submission; }
/** * Class-specific methods for published submissions. * @param PublishedArticle $submission * @param DOMElement $node * @return PublishedArticle */ function populatePublishedSubmission($submission, $node) { $deployment = $this->getDeployment(); $issue = $deployment->getIssue(); if (empty($issue)) { $issueIdentificationNodes = $node->getElementsByTagName('issue_identification'); if ($issueIdentificationNodes->length != 1) { $titleNodes = $node->getElementsByTagName('title'); $deployment->addError(ASSOC_TYPE_SUBMISSION, $submission->getId(), __('plugins.importexport.native.import.error.issueIdentificationMissing', array('articleTitle' => $titleNodes->item(0)->textContent))); } else { $issueIdentificationNode = $issueIdentificationNodes->item(0); $issue = $this->parseIssueIdentification($issueIdentificationNode); } } $submission->setSequence($node->getAttribute('seq')); $submission->setAccessStatus($node->getAttribute('access_status')); if ($issue) { $submission->setIssueId($issue->getId()); } return $submission; }