* 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;
|
return $tagList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getComment () {
|
public function getComment ($withSerie = true) {
|
||||||
$addition = "";
|
$addition = "";
|
||||||
$se = $this->getSerie ();
|
$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";
|
$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))
|
if (preg_match ("/<\/(div|p|a)>/", $this->comment))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?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)
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
* @author Sébastien Lucas <sebastien@slucas.fr>
|
* @author Sébastien Lucas <sebastien@slucas.fr>
|
||||||
|
@ -53,6 +53,6 @@ $tags = $book->getTags ();
|
||||||
<div class="clearer" />
|
<div class="clearer" />
|
||||||
<hr />
|
<hr />
|
||||||
<div><?php echo localize("content.summary") ?></div>
|
<div><?php echo localize("content.summary") ?></div>
|
||||||
<?php echo $book->getComment () ?>
|
<?php echo $book->getComment (false) ?>
|
||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?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)
|
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||||
* @author Sébastien Lucas <sebastien@slucas.fr>
|
* @author Sébastien Lucas <sebastien@slucas.fr>
|
||||||
|
|
Loading…
Reference in a new issue