* Minor header change

* Fixed the comment for HTML catalog
This commit is contained in:
Sébastien Lucas 2012-06-12 22:52:39 +02:00
parent 2de35f9897
commit 8cec112721
3 changed files with 5 additions and 5 deletions

View File

@ -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))

View File

@ -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>

View File

@ -1,6 +1,6 @@
<?php
/**
* COPS (Calibre OPDS PHP Server) main script
* COPS (Calibre OPDS PHP Server) HTML main script
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Sébastien Lucas <sebastien@slucas.fr>