Skip to content

Commit

Permalink
pkp#114 Create Publication date and Publication History for article m…
Browse files Browse the repository at this point in the history
…etadata
  • Loading branch information
withanage committed Sep 14, 2022
1 parent a0b7d49 commit bb3096b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions classes/JATS.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,12 @@ public static function getJournalMetaPubDate(DOMDocument $origDocument, $context
$year = $origDocument->createElement('year', date('Y', $timestamp));
$pubDate->appendChild($year);


$issue = $issueDao->getBySubmissionId($submission->getId(), $context->getId());
$volume = $origDocument->createElement('volume', $issue->getVolume());
$pubDate->appendChild($volume);
if($issue) {
$volume = $origDocument->createElement('volume', $issue->getVolume());
$pubDate->appendChild($volume);
}

if ($firstPage) {
$pubDate->appendChild($origDocument->createElement('fpage',$firstPage));
Expand Down

0 comments on commit bb3096b

Please sign in to comment.