This adds the function getPubDate() to book.php, which

returns either the publication year, or "", if the value is null or
"Undefined". By "Undefined", I mean the value Calibre sets as pubdate when
you choose "Undefined" in the GUI. which is 1 Jan 0100, or -58979926800.
This commit is contained in:
Tyler J. Wagner 2013-02-20 21:06:37 +01:00
parent 977e669805
commit 46c0de5c66
3 changed files with 29 additions and 1 deletions

View file

@ -87,6 +87,15 @@ $book->getLinkArray ();
</div>
<?php echo str_format (localize ("content.series.data"), $book->seriesIndex, htmlspecialchars ($serie->name)) ?>
</div>
<?php
}
if ($book->getPubDate() != "")
{
?>
<div class="entrySection">
<span><?php echo localize("pubdate.title") ?></span>
<?php echo $book->getPubDate() ?>
</div>
<?php
}
?>