* Minor header change
* Fixed the comment for HTML catalog
This commit is contained in:
parent
2de35f9897
commit
8cec112721
4
book.php
4
book.php
|
@ -118,10 +118,10 @@ class Book extends Base {
|
|||
return $tagList;
|
||||
}
|
||||
|
||||
public function getComment () {
|
||||
public function getComment ($withSerie = true) {
|
||||
$addition = "";
|
||||
$se = $this->getSerie ();
|
||||
if (!is_null ($se)) {
|
||||
if (!is_null ($se) && $withSerie) {
|
||||
$addition = $addition . "<strong>" . localize("content.series") . "</strong>" . str_format (localize ("content.series.data"), $this->seriesIndex, $se->name) . "<br />\n";
|
||||
}
|
||||
if (preg_match ("/<\/(div|p|a)>/", $this->comment))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* COPS (Calibre OPDS PHP Server) main script
|
||||
* COPS (Calibre OPDS PHP Server) book detail script
|
||||
*
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
* @author Sébastien Lucas <sebastien@slucas.fr>
|
||||
|
@ -53,6 +53,6 @@ $tags = $book->getTags ();
|
|||
<div class="clearer" />
|
||||
<hr />
|
||||
<div><?php echo localize("content.summary") ?></div>
|
||||
<?php echo $book->getComment () ?>
|
||||
<?php echo $book->getComment (false) ?>
|
||||
<hr />
|
||||
</div>
|
Loading…
Reference in a new issue