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:
parent
977e669805
commit
46c0de5c66
3 changed files with 29 additions and 1 deletions
12
index.php
12
index.php
|
@ -237,7 +237,17 @@
|
|||
</div>
|
||||
<div class="bookdetail">
|
||||
<a class="navigation" href="<?php echo $entry->book->getDetailUrl () ?>" />
|
||||
<div class="entryTitle st"><?php echo htmlspecialchars ($entry->title) ?> <span class="sp">(<?php echo date ('Y', $entry->book->pubdate) ?>)</span> <span class="sr"><?php echo $entry->book->getRating () ?></span></div>
|
||||
<div class="entryTitle st"><?php echo htmlspecialchars ($entry->title) ?>
|
||||
<?php
|
||||
if ($entry->book->getPubDate() != "")
|
||||
{
|
||||
?>
|
||||
<span class="sp">(<?php echo $entry->book->getPubDate() ?>)</span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<span class="sr"><?php echo $entry->book->getRating () ?></span>
|
||||
</div>
|
||||
<div class="entryContent sa"><?php echo localize("authors.title") . " : " . htmlspecialchars ($entry->book->getAuthorsName ()) ?></div>
|
||||
<div class="entryContent"><?php echo localize("tags.title") . " : " . htmlspecialchars ($entry->book->getTagsName ()) ?></div>
|
||||
<?php
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue